[pgRouting] Require a specific major version for postgresql-server (BZ#1181158)
Volker Fröhlich
volter at fedoraproject.org
Sat Feb 14 00:20:38 UTC 2015
commit bceb3d413d7896ad10c6db66c540d92c1aa02b86
Author: Volker Fröhlich <volker27 at gmx.at>
Date: Sat Feb 14 01:20:08 2015 +0100
Require a specific major version for postgresql-server (BZ#1181158)
pgRouting.spec | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/pgRouting.spec b/pgRouting.spec
index 711a4e9..44738d3 100644
--- a/pgRouting.spec
+++ b/pgRouting.spec
@@ -1,6 +1,6 @@
Name: pgRouting
Version: 2.0.0
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Provides routing functionality to PostGIS/PostgreSQL
Group: Applications/Databases
License: GPLv2+
@@ -17,12 +17,16 @@ BuildRequires: postgresql-devel
BuildRequires: proj-devel
Requires: postgis
-# Postgis possibly should require postgresql-server already.
+# Postgis possibly should require postgresql-server already. But because we
+# provide a PostgreSQL plugin, we need to rebuild for any major PostgreSQL server
+# update (e.g. from 9.4 to 9.5). This guards against incompatible
+# postgresql-server updates in future.
+
# Quite the only component of postgis that would serve a purpose without the
# server on the same machine, is the shape loader. Suse requires postgresql-
# server on postgis and seemingly got no complaints
-# Putting it in here for now:
-Requires: postgresql-server
+Requires: postgresql-server(:MODULE_COMPAT_%{postgresql_major})
+
%global _privatelibs librouting.*\.so.*
%global __provides_exclude ^(%{_privatelibs})$
@@ -38,6 +42,7 @@ geospatial routing functionality.
# Correct FSF address
# https://github.com/pgRouting/pgrouting/issues/63
+# Solved for releases after 2.0.0
find . \( -name *.cpp -o -name *.c -o -name *.h -o -name *.sql \) -print | xargs -i \
sed -i 's/59 Temple Place\(, \| - \)Suite 330/51 Franklin Street, Fifth Floor/;s/02111-1307/02110-1301/' {}
@@ -62,6 +67,9 @@ make -C build install DESTDIR=%{buildroot}
%{_datadir}/pgsql/extension/*
%changelog
+* Sat Feb 14 2015 Volker Fröhlich <volker27 at gmx.at> - 2.0.0-6
+- Require a specific major version for postgresql-server (BZ#1181158)
+
* Tue Jan 27 2015 Petr Machata <pmachata at redhat.com> - 2.0.0-5
- Rebuild for boost 1.57.0
More information about the scm-commits
mailing list