From 0e65d6d96221573854a672fb79e8eecd47bfecf2 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 --- postgis.spec | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/postgis.spec b/postgis.spec index 449ce8b..3b162a3 100644 --- a/postgis.spec +++ b/postgis.spec @@ -19,7 +19,7 @@ Name: postgis Version: 3.5.3 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Geographic Information Systems Extensions to PostgreSQL License: GPL-2.0-or-later @@ -317,8 +317,15 @@ strip %{buildroot}/%{_libdir}/gcj/%{name}/*.jar.so %endif %if %utils +pushd utils install -d %{buildroot}%{_datadir}/%{name} -install -m 755 utils/*.pl %{buildroot}%{_datadir}/%{name} +install -m 755 create_*.pl repo_revision.pl \ + %{name}_restore.pl read_scripts_version.pl \ +%if 0%{?fedora} + profile_intersects.pl test_*.pl \ +%endif + %{buildroot}%{_datadir}/%{name} +popd %endif find %buildroot \( -name '*.la' -or -name '*.a' \) -delete @@ -444,16 +451,19 @@ fi %doc utils/README %dir %{_datadir}/%{name}/ %doc %{_datadir}/doc/pgsql/extension/README.address_standardizer -%{_datadir}/%{name}/test_estimation.pl -%{_datadir}/%{name}/profile_intersects.pl -%{_datadir}/%{name}/test_joinestimation.pl %{_datadir}/%{name}/create_extension_unpackage.pl -%{_datadir}/%{name}/%{name}_restore.pl -%{_datadir}/%{name}/read_scripts_version.pl -%{_datadir}/%{name}/test_geography_estimation.pl -%{_datadir}/%{name}/test_geography_joinestimation.pl %{_datadir}/%{name}/create_or_replace_to_create.pl %{_datadir}/%{name}/create_upgrade.pl +%{_datadir}/%{name}/%{name}_restore.pl +%{_datadir}/%{name}/read_scripts_version.pl +%if 0%{?fedora} +# requires perl(Pg) +%{_datadir}/%{name}/profile_intersects.pl +%{_datadir}/%{name}/test_estimation.pl +%{_datadir}/%{name}/test_geography_estimation.pl +%{_datadir}/%{name}/test_geography_joinestimation.pl +%{_datadir}/%{name}/test_joinestimation.pl +%endif %endif @@ -462,6 +472,10 @@ fi %changelog +* 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 + * Tue Jul 29 2025 Sandro Mani - 3.5.3-3 - Rebuild (gdal)