[pgrouting] 05/11: Split SQL scripts off into separate arch:all package.

Bas Couwenberg sebastic at debian.org
Sat Jan 7 21:59:07 UTC 2017


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository pgrouting.

commit 4bc7669291ecc76432203de9af58bc08f16b256e
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sat Jan 7 21:46:07 2017 +0100

    Split SQL scripts off into separate arch:all package.
---
 debian/changelog  |  1 +
 debian/control    | 15 ++++++++++++++-
 debian/control.in | 15 ++++++++++++++-
 debian/rules      |  8 +++++++-
 4 files changed, 36 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 6d3948b..42f575e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ pgrouting (2.3.2-1) UNRELEASED; urgency=medium
   * Team upload.
   * New upstream release.
   * Update copyright file for other CC-BY-SA-3.0 documentation.
+  * Split SQL scripts off into separate arch:all package.
 
  -- Bas Couwenberg <sebastic at debian.org>  Sat, 07 Jan 2017 20:06:55 +0100
 
diff --git a/debian/control b/debian/control
index 5b324d9..3f936de 100644
--- a/debian/control
+++ b/debian/control
@@ -17,7 +17,8 @@ Homepage: http://www.pgrouting.org
 
 Package: postgresql-9.6-pgrouting
 Architecture: any
-Depends: postgresql-9.6,
+Depends: postgresql-9.6-pgrouting-scripts (>= ${source:Version}),
+         postgresql-9.6,
          postgresql-9.6-postgis-2.3,
          ${misc:Depends},
          ${shlibs:Depends}
@@ -28,6 +29,18 @@ Description: Routing functionality support for PostgreSQL/PostGIS
  .
  This package supports PostgreSQL 9.6.
 
+Package: postgresql-9.6-pgrouting-scripts
+Architecture: all
+Depends: ${misc:Depends}
+Breaks: postgresql-9.6-pgrouting-scripts (<< 2.3.2-1~)
+Replaces: postgresql-9.6-pgrouting-scripts (<< 2.3.2-1~)
+Description: Routing functionality support for PostgreSQL/PostGIS - scripts
+ pgRouting extends the PostGIS/PostgreSQL geospatial database to provide
+ geospatial routing and other network analysis functionality.
+ .
+ This package contains SQL scripts to upgrade from earlier pgRouting
+ versions for PostgreSQL 9.6.
+
 Package: postgresql-9.6-pgrouting-doc
 Architecture: all
 Section: doc
diff --git a/debian/control.in b/debian/control.in
index 23e91f2..0830c64 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -17,7 +17,8 @@ Homepage: http://www.pgrouting.org
 
 Package: postgresql-PGVERSION-pgrouting
 Architecture: any
-Depends: postgresql-PGVERSION,
+Depends: postgresql-PGVERSION-pgrouting-scripts (>= ${source:Version}),
+         postgresql-PGVERSION,
          postgresql-PGVERSION-postgis-2.3,
          ${misc:Depends},
          ${shlibs:Depends}
@@ -28,6 +29,18 @@ Description: Routing functionality support for PostgreSQL/PostGIS
  .
  This package supports PostgreSQL PGVERSION.
 
+Package: postgresql-PGVERSION-pgrouting-scripts
+Architecture: all
+Depends: ${misc:Depends}
+Breaks: postgresql-PGVERSION-pgrouting-scripts (<< 2.3.2-1~)
+Replaces: postgresql-PGVERSION-pgrouting-scripts (<< 2.3.2-1~)
+Description: Routing functionality support for PostgreSQL/PostGIS - scripts
+ pgRouting extends the PostGIS/PostgreSQL geospatial database to provide
+ geospatial routing and other network analysis functionality.
+ .
+ This package contains SQL scripts to upgrade from earlier pgRouting
+ versions for PostgreSQL PGVERSION.
+
 Package: postgresql-PGVERSION-pgrouting-doc
 Architecture: all
 Section: doc
diff --git a/debian/rules b/debian/rules
index a7720ed..71ae6f5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -40,12 +40,18 @@ override_dh_auto_install:
 		mkdir -p debian/postgresql-$$v-pgrouting-doc/usr/share/doc/postgresql-$$v-pgrouting-doc; \
 		cp -r build-$$v/doc/html debian/postgresql-$$v-pgrouting-doc/usr/share/doc/postgresql-$$v-pgrouting-doc; \
 		mkdir -p debian/postgresql-$$v-pgrouting-doc/usr/share/doc-base; \
-		sed "s,PGVERSION,$$v,g" <debian/postgresql-pgrouting-doc.doc-base.in >debian/postgresql-$$v-pgrouting-doc/usr/share/doc-base/postgresql-$$v-pgrouting-doc; \
+		sed "s,PGVERSION,$$v,g" < debian/postgresql-pgrouting-doc.doc-base.in > debian/postgresql-$$v-pgrouting-doc/usr/share/doc-base/postgresql-$$v-pgrouting-doc; \
+		mkdir -p debian/postgresql-$$v-pgrouting-scripts/usr; \
+		mv debian/postgresql-$$v-pgrouting/usr/share debian/postgresql-$$v-pgrouting-scripts/usr; \
 	done
 
 override_dh_auto_clean:
 	+pg_buildext clean build-%v
 
+override_dh_clean:
+	dh_clean debian/postgresql-*-pgrouting.install \
+	         debian/postgresql-*-pgrouting-scripts.install
+
 override_dh_sphinxdoc-indep:
 	dh_sphinxdoc -Xtheme_extras.js
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pgrouting.git



More information about the Pkg-grass-devel mailing list