From 468e2b1dc324c972ec6ba1294527809e119f0442 Mon Sep 17 00:00:00 2001 From: Nikola Davidova Date: Wed, 12 Nov 2025 11:42:09 +0100 Subject: [PATCH] Avoid perl(Pg) dependency disable parallel build Resolves: RHEL-90852 --- postgis.spec | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/postgis.spec b/postgis.spec index fe78570..3460183 100644 --- a/postgis.spec +++ b/postgis.spec @@ -7,7 +7,6 @@ %{!?llvmjit:%global llvmjit 0} %{!?raster:%global raster 0} -%global __requires_exclude ^perl\\(Pg\\)$ %global majorversion 3.6 %global soversion 3 @@ -15,12 +14,15 @@ %global prevversion %{prevmajorversion}.5 %global so_files postgis postgis_topology rtpostgis %global configure_opts --disable-rpath --enable-raster +%if ! %raster +%global configure_opts --disable-rpath --enable-raster --without-raster +%endif %global __provides_exclude_from %{_libdir}/pgsql Name: postgis Version: 3.6.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Geographic Information Systems Extensions to PostgreSQL License: GPL-2.0-or-later @@ -194,9 +196,6 @@ cd %{name}-%{prevversion} %build %configure %configure_opts --with-pgconfig=%{_bindir}/pg_server_config \ -%if ! %raster - --without-raster \ -%endif %if %llvmjit --with-llvm \ %endif @@ -211,7 +210,7 @@ sed -i 's| -fstack-clash-protection | |' topology/Makefile sed -i 's| -fstack-clash-protection | |' extensions/address_standardizer/Makefile sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool -%make_build +%make_build -j1 %if %javabuild export BUILDXML_DIR=%{_builddir}/%{name}-%{version}/java/jdbc @@ -246,7 +245,7 @@ sed -i 's| -fstack-clash-protection | |' postgis/Makefile sed -i 's| -fstack-clash-protection | |' raster/rt_pg/Makefile sed -i 's| -fstack-clash-protection | |' topology/Makefile sed -i 's| -fstack-clash-protection | |' extensions/address_standardizer/Makefile -%make_build +%make_build -j1 ) %if %upgrade_prev @@ -259,7 +258,7 @@ sed -i 's| -fstack-clash-protection | |' postgis/Makefile sed -i 's| -fstack-clash-protection | |' raster/rt_pg/Makefile sed -i 's| -fstack-clash-protection | |' topology/Makefile sed -i 's| -fstack-clash-protection | |' extensions/address_standardizer/Makefile -%make_build +%make_build -j1 mkdir ../compat-build for so in %so_files; do find -name $so.so -exec cp {} ../compat-build/$so-%{prevmajorversion}.so \; @@ -278,7 +277,7 @@ sed -i 's| -fstack-clash-protection | |' postgis/Makefile sed -i 's| -fstack-clash-protection | |' raster/rt_pg/Makefile sed -i 's| -fstack-clash-protection | |' topology/Makefile sed -i 's| -fstack-clash-protection | |' extensions/address_standardizer/Makefile -%make_build +%make_build -j1 ) %endif %endif @@ -485,10 +484,7 @@ fi * Tue Nov 18 2025 Filip Janus - 3.6.1-1 - Update to 3.6.1 - Initial import for postgresql18 - -* Wed Nov 12 2025 Nikola Davidova - 3.5.3-4 -- Avoid perl(Pg) dependency on RHEL, - from the Fedora spec change from yselkowi@redhat.com +- Avoid perl(Pg) dependency on RHEL * Tue Jul 29 2025 Sandro Mani - 3.5.3-3 - Rebuild (gdal)