GeOS 3.14: Initial packaging of 3.14.X for the PostgreSQL RPM Repository https:/...
authorDevrim Gunduz <devrim@gunduz.org>
Sat, 23 Aug 2025 11:45:40 +0000 (14:45 +0300)
committerDevrim Gunduz <devrim@gunduz.org>
Sat, 23 Aug 2025 11:45:40 +0000 (14:45 +0300)
14 files changed:
rpm/redhat/main/common/geos314/EL-10/Makefile [new file with mode: 0644]
rpm/redhat/main/common/geos314/EL-10/geos314.spec [new symlink]
rpm/redhat/main/common/geos314/EL-8/Makefile [new file with mode: 0644]
rpm/redhat/main/common/geos314/EL-8/geos314.spec [new symlink]
rpm/redhat/main/common/geos314/EL-9/Makefile [new file with mode: 0644]
rpm/redhat/main/common/geos314/EL-9/geos314.spec [new symlink]
rpm/redhat/main/common/geos314/F-41/Makefile [new file with mode: 0644]
rpm/redhat/main/common/geos314/F-41/geos314.spec [new symlink]
rpm/redhat/main/common/geos314/F-42/Makefile [new file with mode: 0644]
rpm/redhat/main/common/geos314/F-42/geos314.spec [new symlink]
rpm/redhat/main/common/geos314/SLES-15/Makefile [new file with mode: 0644]
rpm/redhat/main/common/geos314/SLES-15/geos314.spec [new symlink]
rpm/redhat/main/common/geos314/main/Makefile [new file with mode: 0644]
rpm/redhat/main/common/geos314/main/geos314.spec [new file with mode: 0644]

diff --git a/rpm/redhat/main/common/geos314/EL-10/Makefile b/rpm/redhat/main/common/geos314/EL-10/Makefile
new file mode 100644 (file)
index 0000000..34fc4af
--- /dev/null
@@ -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 (symlink)
index 0000000..9b67468
--- /dev/null
@@ -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 (file)
index 0000000..c980d69
--- /dev/null
@@ -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 (symlink)
index 0000000..9b67468
--- /dev/null
@@ -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 (file)
index 0000000..96c4e7a
--- /dev/null
@@ -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 (symlink)
index 0000000..9b67468
--- /dev/null
@@ -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 (file)
index 0000000..b815dbb
--- /dev/null
@@ -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 (symlink)
index 0000000..9b67468
--- /dev/null
@@ -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 (file)
index 0000000..2c09ed2
--- /dev/null
@@ -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 (symlink)
index 0000000..9b67468
--- /dev/null
@@ -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 (file)
index 0000000..e84a36d
--- /dev/null
@@ -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 (symlink)
index 0000000..9b67468
--- /dev/null
@@ -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 (file)
index 0000000..c5d9a26
--- /dev/null
@@ -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 (file)
index 0000000..00bcff7
--- /dev/null
@@ -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 <devrim@gunduz.org> - 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
+