From 127a90b3fb15f29eef577a8dd85fb99a02ac12fc Mon Sep 17 00:00:00 2001 From: Devrim Gunduz Date: Sat, 23 Aug 2025 14:45:40 +0300 Subject: [PATCH] GeOS 3.14: Initial packaging of 3.14.X for the PostgreSQL RPM Repository https://github.com/libgeos/geos/releases/tag/3.14.0 --- rpm/redhat/main/common/geos314/EL-10/Makefile | 17 +++ .../main/common/geos314/EL-10/geos314.spec | 1 + rpm/redhat/main/common/geos314/EL-8/Makefile | 17 +++ .../main/common/geos314/EL-8/geos314.spec | 1 + rpm/redhat/main/common/geos314/EL-9/Makefile | 17 +++ .../main/common/geos314/EL-9/geos314.spec | 1 + rpm/redhat/main/common/geos314/F-41/Makefile | 17 +++ .../main/common/geos314/F-41/geos314.spec | 1 + rpm/redhat/main/common/geos314/F-42/Makefile | 17 +++ .../main/common/geos314/F-42/geos314.spec | 1 + .../main/common/geos314/SLES-15/Makefile | 17 +++ .../main/common/geos314/SLES-15/geos314.spec | 1 + rpm/redhat/main/common/geos314/main/Makefile | 17 +++ .../main/common/geos314/main/geos314.spec | 107 ++++++++++++++++++ 14 files changed, 232 insertions(+) create mode 100644 rpm/redhat/main/common/geos314/EL-10/Makefile create mode 120000 rpm/redhat/main/common/geos314/EL-10/geos314.spec create mode 100644 rpm/redhat/main/common/geos314/EL-8/Makefile create mode 120000 rpm/redhat/main/common/geos314/EL-8/geos314.spec create mode 100644 rpm/redhat/main/common/geos314/EL-9/Makefile create mode 120000 rpm/redhat/main/common/geos314/EL-9/geos314.spec create mode 100644 rpm/redhat/main/common/geos314/F-41/Makefile create mode 120000 rpm/redhat/main/common/geos314/F-41/geos314.spec create mode 100644 rpm/redhat/main/common/geos314/F-42/Makefile create mode 120000 rpm/redhat/main/common/geos314/F-42/geos314.spec create mode 100644 rpm/redhat/main/common/geos314/SLES-15/Makefile create mode 120000 rpm/redhat/main/common/geos314/SLES-15/geos314.spec create mode 100644 rpm/redhat/main/common/geos314/main/Makefile create mode 100644 rpm/redhat/main/common/geos314/main/geos314.spec diff --git a/rpm/redhat/main/common/geos314/EL-10/Makefile b/rpm/redhat/main/common/geos314/EL-10/Makefile new file mode 100644 index 000000000..34fc4af1f --- /dev/null +++ b/rpm/redhat/main/common/geos314/EL-10/Makefile @@ -0,0 +1,17 @@ +################################# +# RPM-specific Makefile # +# https://yum.postgresql.org # +# # +# Devrim Gunduz # +# devrim@gunduz.org # +################################# + +# Predefined values + +ARCH=`rpm --eval "%{_arch}"` +DIR=`pwd` +DIST=.rhel10 +SPECFILE="geos314.spec" + +# Now, include global Makefile +include ../../../../global/Makefile.global diff --git a/rpm/redhat/main/common/geos314/EL-10/geos314.spec b/rpm/redhat/main/common/geos314/EL-10/geos314.spec new file mode 120000 index 000000000..9b6746870 --- /dev/null +++ b/rpm/redhat/main/common/geos314/EL-10/geos314.spec @@ -0,0 +1 @@ +../main/geos314.spec \ No newline at end of file diff --git a/rpm/redhat/main/common/geos314/EL-8/Makefile b/rpm/redhat/main/common/geos314/EL-8/Makefile new file mode 100644 index 000000000..c980d69f8 --- /dev/null +++ b/rpm/redhat/main/common/geos314/EL-8/Makefile @@ -0,0 +1,17 @@ +################################# +# RPM-specific Makefile # +# https://yum.postgresql.org # +# # +# Devrim Gunduz # +# devrim@gunduz.org # +################################# + +# Predefined values + +ARCH=`rpm --eval "%{_arch}"` +DIR=`pwd` +DIST=.rhel8 +SPECFILE="geos314.spec" + +# Now, include global Makefile +include ../../../../global/Makefile.global diff --git a/rpm/redhat/main/common/geos314/EL-8/geos314.spec b/rpm/redhat/main/common/geos314/EL-8/geos314.spec new file mode 120000 index 000000000..9b6746870 --- /dev/null +++ b/rpm/redhat/main/common/geos314/EL-8/geos314.spec @@ -0,0 +1 @@ +../main/geos314.spec \ No newline at end of file diff --git a/rpm/redhat/main/common/geos314/EL-9/Makefile b/rpm/redhat/main/common/geos314/EL-9/Makefile new file mode 100644 index 000000000..96c4e7a46 --- /dev/null +++ b/rpm/redhat/main/common/geos314/EL-9/Makefile @@ -0,0 +1,17 @@ +################################# +# RPM-specific Makefile # +# https://yum.postgresql.org # +# # +# Devrim Gunduz # +# devrim@gunduz.org # +################################# + +# Predefined values + +ARCH=`rpm --eval "%{_arch}"` +DIR=`pwd` +DIST=.rhel9 +SPECFILE="geos314.spec" + +# Now, include global Makefile +include ../../../../global/Makefile.global diff --git a/rpm/redhat/main/common/geos314/EL-9/geos314.spec b/rpm/redhat/main/common/geos314/EL-9/geos314.spec new file mode 120000 index 000000000..9b6746870 --- /dev/null +++ b/rpm/redhat/main/common/geos314/EL-9/geos314.spec @@ -0,0 +1 @@ +../main/geos314.spec \ No newline at end of file diff --git a/rpm/redhat/main/common/geos314/F-41/Makefile b/rpm/redhat/main/common/geos314/F-41/Makefile new file mode 100644 index 000000000..b815dbb60 --- /dev/null +++ b/rpm/redhat/main/common/geos314/F-41/Makefile @@ -0,0 +1,17 @@ +################################# +# RPM-specific Makefile # +# https://yum.postgresql.org # +# # +# Devrim Gunduz # +# devrim@gunduz.org # +################################# + +# Predefined values + +ARCH=`rpm --eval "%{_arch}"` +DIR=`pwd` +DIST=.f41 +SPECFILE="geos314.spec" + +# Now, include global Makefile +include ../../../../global/Makefile.global diff --git a/rpm/redhat/main/common/geos314/F-41/geos314.spec b/rpm/redhat/main/common/geos314/F-41/geos314.spec new file mode 120000 index 000000000..9b6746870 --- /dev/null +++ b/rpm/redhat/main/common/geos314/F-41/geos314.spec @@ -0,0 +1 @@ +../main/geos314.spec \ No newline at end of file diff --git a/rpm/redhat/main/common/geos314/F-42/Makefile b/rpm/redhat/main/common/geos314/F-42/Makefile new file mode 100644 index 000000000..2c09ed299 --- /dev/null +++ b/rpm/redhat/main/common/geos314/F-42/Makefile @@ -0,0 +1,17 @@ +################################# +# RPM-specific Makefile # +# https://yum.postgresql.org # +# # +# Devrim Gunduz # +# devrim@gunduz.org # +################################# + +# Predefined values + +ARCH=`rpm --eval "%{_arch}"` +DIR=`pwd` +DIST=.f42 +SPECFILE="geos314.spec" + +# Now, include global Makefile +include ../../../../global/Makefile.global diff --git a/rpm/redhat/main/common/geos314/F-42/geos314.spec b/rpm/redhat/main/common/geos314/F-42/geos314.spec new file mode 120000 index 000000000..9b6746870 --- /dev/null +++ b/rpm/redhat/main/common/geos314/F-42/geos314.spec @@ -0,0 +1 @@ +../main/geos314.spec \ No newline at end of file diff --git a/rpm/redhat/main/common/geos314/SLES-15/Makefile b/rpm/redhat/main/common/geos314/SLES-15/Makefile new file mode 100644 index 000000000..e84a36d29 --- /dev/null +++ b/rpm/redhat/main/common/geos314/SLES-15/Makefile @@ -0,0 +1,17 @@ +################################# +# RPM-specific Makefile # +# https://yum.postgresql.org # +# # +# Devrim Gunduz # +# devrim@gunduz.org # +################################# + +# Predefined values + +ARCH=`rpm --eval "%{_arch}"` +DIR=`pwd` +DIST=".sles15" +SPECFILE="geos314.spec" + +# Now, include global Makefile +include ../../../../global/Makefile.global diff --git a/rpm/redhat/main/common/geos314/SLES-15/geos314.spec b/rpm/redhat/main/common/geos314/SLES-15/geos314.spec new file mode 120000 index 000000000..9b6746870 --- /dev/null +++ b/rpm/redhat/main/common/geos314/SLES-15/geos314.spec @@ -0,0 +1 @@ +../main/geos314.spec \ No newline at end of file diff --git a/rpm/redhat/main/common/geos314/main/Makefile b/rpm/redhat/main/common/geos314/main/Makefile new file mode 100644 index 000000000..c5d9a26f2 --- /dev/null +++ b/rpm/redhat/main/common/geos314/main/Makefile @@ -0,0 +1,17 @@ +################################# +# RPM-specific Makefile # +# https://yum.postgresql.org # +# # +# Devrim Gunduz # +# devrim@gunduz.org # +################################# + +# Predefined values + +ARCH=`rpm --eval "%{_arch}"` +DIR=`pwd` +DIST=.f99 +SPECFILE="geos314.spec" + +# Now, include global Makefile +include ../../../../global/Makefile.global diff --git a/rpm/redhat/main/common/geos314/main/geos314.spec b/rpm/redhat/main/common/geos314/main/geos314.spec new file mode 100644 index 000000000..00bcff7e0 --- /dev/null +++ b/rpm/redhat/main/common/geos314/main/geos314.spec @@ -0,0 +1,107 @@ +%global _vpath_builddir . + +%global sname geos +%global _geosversion 314 +%global geosinstdir /usr/%{sname}%{_geosversion} +%global _geoslibdir lib64 + +Name: %{sname}%{_geosversion} +Version: 3.14.0 +Release: 1PGDG%{?dist} +Summary: GEOS is a C++ port of the Java Topology Suite + +License: LGPLv2 +URL: https://libgeos.org/ +Source0: http://download.osgeo.org/geos/geos-%{version}.tar.bz2 + +%if 0%{?suse_version} +BuildRequires: cmake >= 3.15 +%else +BuildRequires: cmake3 >= 3.15 +%endif +BuildRequires: libtool gcc-c++ pgdg-srpm-macros +Provides: geos%{_geosversion}-python >= %{version} + +%description +GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology +Suite (JTS). As such, it aims to contain the complete functionality of +JTS in C++. This includes all the OpenGIS "Simple Features for SQL" spatial +predicate functions and spatial operators, as well as specific JTS topology +functions such as IsValid() + +%package devel +Summary: Development files for GEOS +Requires: %{name} = %{version}-%{release} +Obsoletes: geos36 <= 3.6.4 geos37 <= 3.7.3 +Provides: geos36 <= 3.6.4 geos37 <= 3.7.3 + +%description devel +GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology +Suite (JTS). As such, it aims to contain the complete functionality of +JTS in C++. This includes all the OpenGIS "Simple Features for SQL" spatial +predicate functions and spatial operators, as well as specific JTS topology +functions such as IsValid() + +This package contains the development files to build applications that +use GEOS + +%prep +%setup -q -n %{sname}-%{version} + +%build +%if 0%{?suse_version} +%if 0%{?suse_version} >= 1499 +cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr \ +%endif +%else +%cmake3 .. \ +%endif + -DCMAKE_INSTALL_PREFIX:PATH=%{geosinstdir} -DCMAKE_BUILD_TYPE=Release .. \ + -D LIB_INSTALL_DIR=%{_lib} . + +%{__make} -C "%{_vpath_builddir}" %{?_smp_mflags} + +%install +%{__make} -C "%{_vpath_builddir}" %{?_smp_mflags} install/fast \ + DESTDIR=%{buildroot} + +# Remove files we don't ship: +%{__rm} -f %{buildroot}%{geosinstdir}/lib64/cmake/GEOS/geos-config*cmake +%{__rm} -f %{buildroot}%{geosinstdir}/lib64/cmake/GEOS/geos-targets*cmake + +# Create linker config file: +%{__mkdir} -p %{buildroot}%{_sysconfdir}/ld.so.conf.d/ +echo "%{geosinstdir}/%{_geoslibdir}/" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-pgdg-libs.conf + +%clean +%{__rm} -rf %{buildroot} + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING README.md +%{geosinstdir}/bin/geosop +%{geosinstdir}/%{_geoslibdir}/libgeos.so.%{version} +%{geosinstdir}/%{_geoslibdir}/libgeos.so +%{geosinstdir}/%{_geoslibdir}/libgeos_c.so* +%if 0%{?rhel} && 0%{?rhel} >= 7 +%exclude %{geosinstdir}/%{_geoslibdir}/*.a +%endif +%config(noreplace) %attr (644,root,root) %{_sysconfdir}/ld.so.conf.d/%{name}-pgdg-libs.conf + +%files devel +%defattr(-,root,root,-) +%{geosinstdir}/bin/geos-config +%{geosinstdir}/include/* +%{geosinstdir}/%{_geoslibdir}/pkgconfig/%{sname}.pc + +%changelog +* Sat Aug 23 2025 Devrim Gunduz - 3.14.0-1PGDG +- Initial packaging of 3.14.X for the PostgreSQL RPM Repository: + https://github.com/libgeos/geos/releases/tag/3.14.0 + -- 2.39.5