[ELGIS] RFC: Move PostGIS client applications into separate package

Peter Hopfgartner peter.hopfgartner at r3-gis.com
Thu Oct 13 05:48:46 EDT 2011


Attached is a patch, which separates the PostGIS client applications, 
shp2pgsql and pgsql2shp and shp2pgsql-gtk, from the PostGIS server side.
In our scenanrio, the machine, which imports/exports data is not always 
the machine hosting the database server.

Peter
-------------- next part --------------
Index: postgis.spec
===================================================================
--- postgis.spec	(revision 234)
+++ postgis.spec	(working copy)
@@ -5,7 +5,7 @@
 Summary:	Geographic Information Systems Extensions to PostgreSQL
 Name:		postgis
 Version:	1.5.3
-Release:	2%{?dist}
+Release:	3%{?dist}
 License:	GPLv2+
 Group:		Applications/Databases
 Source0:	http://postgis.refractions.net/download/%{name}-%{version}.tar.gz
@@ -33,6 +33,12 @@
 follows the OpenGIS "Simple Features Specification for SQL" and has been 
 certified as compliant with the "Types and Functions" profile.
 
+%package client
+Summary:	Client programs for importing and exporting data to/from PostGIS 
+Group:		Applications/Databases
+%description client
+The postgis-client package includes shp2pgsql, shp2pgsql.gui and pgsql2shp, in order to allow the import of Shapefiles to PostGIS and the export in Shapefile format.
+
 %package docs
 Summary:	Extra documentation for PostGIS
 Group:		Applications/Databases
@@ -140,12 +146,16 @@
 
 %files
 %defattr(-,root,root)
-%doc COPYING CREDITS NEWS TODO README.%{name} doc/html loader/README.* doc/%{name}.xml doc/ZMSgeoms.txt 
-%attr(755,root,root) %{_bindir}/*
+%doc COPYING CREDITS NEWS TODO README.%{name} doc/html doc/%{name}.xml doc/ZMSgeoms.txt 
 %attr(755,root,root) %{_libdir}/pgsql/postgis-*.so
 %{_datadir}/pgsql/contrib/*.sql
 %{_datadir}/postgis/*.pl
 
+%files client
+%defattr(-,root,root)
+%doc loader/README.* 
+%attr(755,root,root) %{_bindir}/*
+
 %if %javabuild
 %files jdbc
 %defattr(-,root,root)
@@ -177,6 +187,9 @@
 %doc postgis*.pdf
 
 %changelog
+* Thu Oct 13 2011 Peter Hopfgartner <cwpeter.hopfgartner at r3-gis.com> - 1.5.3-3
+- Move client applications into a separate package 
+
 * Wed Jul 6 2011 Mathieu Baudier <mbaudier at argeo.org> - 1.5.3-2
 - Adapt to EL6
 


More information about the el mailing list