Avoid perl(Pg) dependency

disable parallel build

Resolves: RHEL-90852
This commit is contained in:
Nikola Davidova 2025-11-12 11:42:09 +01:00 committed by Filip Janus
parent e80d39e220
commit 468e2b1dc3

View File

@ -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 <fjanus@redhat.com> - 3.6.1-1
- Update to 3.6.1
- Initial import for postgresql18
* Wed Nov 12 2025 Nikola Davidova <ndavidov@redhat.com> - 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 <manisandro@gmail.com> - 3.5.3-3
- Rebuild (gdal)