[postgis] 01/02: Move GUI binaries to separate postgis-gui package.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Mon May 16 19:15:41 UTC 2016


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

sebastic pushed a commit to branch master
in repository postgis.

commit c40b8a4fc98e6a026399e9c13e0598d0b4ec69b3
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Mon May 16 17:46:45 2016 +0200

    Move GUI binaries to separate postgis-gui package.
---
 debian/README.Debian                 | 12 +++++++++---
 debian/changelog                     |  1 +
 debian/control                       | 18 ++++++++++++++++++
 debian/control.in                    | 19 +++++++++++++++++++
 debian/postgis-gui.docs              |  1 +
 debian/postgis-gui.lintian-overrides |  2 ++
 debian/postgis-gui.manpages          |  1 +
 debian/postgis.manpages              |  1 -
 debian/rules                         |  4 ++++
 9 files changed, 55 insertions(+), 4 deletions(-)

diff --git a/debian/README.Debian b/debian/README.Debian
index 0119419..92bf1c4 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -41,9 +41,15 @@ postgis
   This package contains the user-oriented PostGIS utilities for
   loading data into and pulling data out of a PostGIS-enabled
   PostgreSQL database.  These utilities are: pgsql2shp, shp2pgsql,
-  shp2pgsql-gui, and raster2pgsql.  This package can be installed
-  independent of the extension and can well be used on client
-  machines.
+  and raster2pgsql.  This package can be installed independent of the
+  extension and can well be used on client machines.
+
+
+postgis-gui
+  This package contains the PostGIS GUI utility: shp2pgsql-gui.
+  The GUI has been moved to its own package to not require installation
+  on the GUI dependencies on headless servers which only run the command
+  line utilities.
 
 
 libpostgis-java
diff --git a/debian/changelog b/debian/changelog
index f743e9a..e1cd55b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ postgis (2.2.2+dfsg-2) UNRELEASED; urgency=medium
 
   * Bump Standards-Version to 3.9.8, no changes.
   * Fix duplicate words in copyright file.
+  * Move GUI binaries to separate postgis-gui package.
 
  -- Bas Couwenberg <sebastic at debian.org>  Tue, 03 May 2016 09:25:27 +0200
 
diff --git a/debian/control b/debian/control
index 4988772..6f69f06 100644
--- a/debian/control
+++ b/debian/control
@@ -22,6 +22,7 @@ Package: postgis
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Recommends: postgresql-9.5-postgis-2.2, postgis-doc
+Suggests: postgis-gui
 Description: Geographic objects support for PostgreSQL
  PostGIS adds support for geographic objects to the PostgreSQL
  object-relational database. In effect, PostGIS "spatially enables"
@@ -32,6 +33,23 @@ Description: Geographic objects support for PostgreSQL
  .
  This package contains the PostGIS userland binaries, common files.
 
+Package: postgis-gui
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: postgresql-9.5-postgis-2.2, postgis-doc
+Suggests: postgis
+Breaks: postgis (<< 2.2.2+dfsg-2~)
+Replaces: postgis (<< 2.2.2+dfsg-2~)
+Description: Geographic objects support for PostgreSQL -- GUI programs
+ PostGIS adds support for geographic objects to the PostgreSQL
+ object-relational database. In effect, PostGIS "spatially enables"
+ the PostgreSQL server, allowing it to be used as a backend spatial
+ database for geographic information systems (GIS), much like ESRI's
+ SDE or Oracle's Spatial extension. PostGIS follows the OpenGIS
+ "Simple Features Specification for SQL".
+ .
+ This package contains the PostGIS graphical userland binaries.
+
 Package: postgis-doc
 Section: doc
 Architecture: all
diff --git a/debian/control.in b/debian/control.in
index cc2d8d4..5d3af4c 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -22,6 +22,7 @@ Package: postgis
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Recommends: postgresql-NEWEST_PGVERSION-postgis-2.2, postgis-doc
+Suggests: postgis-gui
 Description: Geographic objects support for PostgreSQL
  PostGIS adds support for geographic objects to the PostgreSQL
  object-relational database. In effect, PostGIS "spatially enables"
@@ -32,6 +33,23 @@ Description: Geographic objects support for PostgreSQL
  .
  This package contains the PostGIS userland binaries, common files.
 
+Package: postgis-gui
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: postgresql-NEWEST_PGVERSION-postgis-2.2, postgis-doc
+Suggests: postgis
+Breaks: postgis (<< 2.2.2+dfsg-2~)
+Replaces: postgis (<< 2.2.2+dfsg-2~)
+Description: Geographic objects support for PostgreSQL -- GUI programs
+ PostGIS adds support for geographic objects to the PostgreSQL
+ object-relational database. In effect, PostGIS "spatially enables"
+ the PostgreSQL server, allowing it to be used as a backend spatial
+ database for geographic information systems (GIS), much like ESRI's
+ SDE or Oracle's Spatial extension. PostGIS follows the OpenGIS
+ "Simple Features Specification for SQL".
+ .
+ This package contains the PostGIS graphical userland binaries.
+
 Package: postgis-doc
 Section: doc
 Architecture: all
@@ -118,3 +136,4 @@ Description: Geographic objects support for PostgreSQL PGVERSION -- scripts
  .
  This package contains SQL scripts to upgrade from earlier PostGIS
  versions for PostgreSQL PGVERSION as well as Perl utility scripts.
+
diff --git a/debian/postgis-gui.docs b/debian/postgis-gui.docs
new file mode 100644
index 0000000..e174728
--- /dev/null
+++ b/debian/postgis-gui.docs
@@ -0,0 +1 @@
+debian/README.Debian
diff --git a/debian/postgis-gui.lintian-overrides b/debian/postgis-gui.lintian-overrides
new file mode 100644
index 0000000..ef531f6
--- /dev/null
+++ b/debian/postgis-gui.lintian-overrides
@@ -0,0 +1,2 @@
+# PIE breaks the build
+postgis-gui: hardening-no-pie *
diff --git a/debian/postgis-gui.manpages b/debian/postgis-gui.manpages
new file mode 100644
index 0000000..1b23716
--- /dev/null
+++ b/debian/postgis-gui.manpages
@@ -0,0 +1 @@
+loader/shp2pgsql-gui.1
diff --git a/debian/postgis.manpages b/debian/postgis.manpages
index dd10bf5..29711bf 100644
--- a/debian/postgis.manpages
+++ b/debian/postgis.manpages
@@ -1,4 +1,3 @@
 doc/man/pgsql2shp.1
 doc/man/shp2pgsql.1
-loader/shp2pgsql-gui.1
 debian/raster2pgsql.1
diff --git a/debian/rules b/debian/rules
index 5442f83..3b07fd6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -297,6 +297,10 @@ install-arch: build-arch
 	cp -r $(CURDIR)/debian/tmp/usr/lib/postgresql/$(NEWEST_POSTGRES_VERSION)/bin/* \
 		$(CURDIR)/debian/postgis/usr/bin/
 
+#	Move GUI binaries to 'postgis-gui' binary package
+	mkdir -p $(CURDIR)/debian/postgis-gui/usr/bin
+	mv $(CURDIR)/debian/postgis/usr/bin/*gui $(CURDIR)/debian/postgis-gui/usr/bin/
+
 	dh_install -s
 
 binary: binary-arch binary-indep

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



More information about the Pkg-grass-devel mailing list