[SCM] postgis branch, master, updated. upstream/2.0.1-44-g8d5f68a

2013-06-06 Thread Markus Wanner
The following commit has been merged in the master branch:
commit 8d5f68a54b21fce89e0438469e0aeb5c5c25624d
Author: Markus Wanner mar...@bluegap.ch
Date:   Wed Jun 5 22:48:50 2013 +0200

It turned out the SQL scripts differ between Postgres
versions. So we need a per-postgres-version package of the
scripts (while still architecture independent). This relieves us
from the symlink dance. Rename the script package as appropriate
and adjust the changelog.

Move down the package description of
postgresql-PGVERSION-postgis-2.0 in debian/control.in to match
the generated file.

diff --git a/debian/changelog b/debian/changelog
index c4e1a11..136e66f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,9 +16,7 @@ postgis (2.0.3-1) UNRELEASED; urgency=low
   * Compile the postgis jdbc java library again, using maven directly. Add
 required Build-Depends-Indeps.
   * Separate large SQL scripts and perl utils. Put them in their own
-architecture independent and (hopefully) PostgreSQL version
-indepentend package: postgis-scripts2.0.3. Provide symlinks from the
-extension package.
+architecture independent indepentend package (..-scripts).
   * Separate PostGIS documentation into a postgis-doc package, register its
 contents with doc-base.
   * Append the PostGIS version to postgresql-9.1-postgis, so multiple
@@ -28,7 +26,8 @@ postgis (2.0.3-1) UNRELEASED; urgency=low
 liblwgeom2 to liblwgeom-2.0.3.
   * Add patch java-version-fix: Corrects java jdbc jar version.
   * Policy updated to 3.9.4. No changes.
-  * Add pgversions and allow generation of debian/control based on it.
+  * Add pgversions and allow generation of debian/control and various
+install files based on it.
   * Update debian/copyright a bit.
   * Update and improve watchfile.
 
diff --git a/debian/control b/debian/control
index 4c28137..a4bbb9f 100644
--- a/debian/control
+++ b/debian/control
@@ -47,21 +47,6 @@ Description: Geographic objects support for PostgreSQL -- 
documentation
  .
  This package contains the PostGIS documentation.
 
-Package: postgis-scripts2.0.3
-Architecture: all
-Depends: ${misc:Depends}
-Recommends: postgresql-9.1-postgis-2.0
-Description: Geographic objects support for PostgreSQL -- scripts
- 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 SQL scripts to upgrade from earlier PostGIS
- versions as well as Perl utility scripts.
-
 Package: libpostgis-java
 Architecture: all
 Section: java
@@ -115,8 +100,9 @@ Description: PostGIS Lightweight Geometry library - 
Development files
  the development files.
 
 Package: postgresql-9.1-postgis-2.0
-Depends: ${shlibs:Depends}, postgresql-9.1, postgis-scripts2.0.3,
- liblwgeom-2.0.3, ${misc:Depends}
+Depends: ${shlibs:Depends}, postgresql-9.1,
+ postgresql-9.1-postgis-2.0-scripts, liblwgeom-2.0.3,
+ ${misc:Depends}
 Recommends: postgis
 Breaks: postgis ( 1.2.1)
 Architecture: any
@@ -130,3 +116,18 @@ Description: Geographic objects support for PostgreSQL 9.1
  .
  This package supports PostgreSQL 9.1.
 
+Package: postgresql-9.1-postgis-2.0-scripts
+Architecture: all
+Depends: ${misc:Depends}
+Recommends: postgresql-9.1-postgis-2.0
+Description: Geographic objects support for PostgreSQL -- scripts
+ 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 SQL scripts to upgrade from earlier PostGIS
+ versions for PostgreSQL 9.1 as well as Perl utility scripts.
+
diff --git a/debian/control.in b/debian/control.in
index 8aadf88..4546148 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -18,22 +18,6 @@ Homepage: http://postgis.refractions.net/
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-grass/postgis.git
 Vcs-Git: git://anonscm.debian.org/pkg-grass/postgis.git
 
-Package: postgresql-PGVERSION-postgis-2.0
-Depends: ${shlibs:Depends}, postgresql-PGVERSION, postgis-scripts2.0.3,
- liblwgeom-2.0.3, ${misc:Depends}
-Recommends: postgis
-Breaks: postgis ( 1.2.1)
-Architecture: any
-Description: Geographic objects support for PostgreSQL PGVERSION
- 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 

[SCM] postgis branch, master, updated. upstream/2.0.1-44-g8d5f68a

2013-06-06 Thread Markus Wanner
The following commit has been merged in the master branch:
commit 5f9eaf4df3d1b53b6a4489b27226a58432368525
Author: Markus Wanner mar...@bluegap.ch
Date:   Wed Jun 5 09:14:27 2013 +0200

Auto-create required postgresql-$(PGVERSION)-postgis-2.0.install file
for the current Postgres version.

diff --git a/debian/postgresql-9.1-postgis-2.0.install 
b/debian/postgresql-9.1-postgis-2.0.install
deleted file mode 100644
index abf68bb..000
--- a/debian/postgresql-9.1-postgis-2.0.install
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/share/postgresql/9.1/extension
-usr/lib/postgresql/9.1/lib
diff --git a/debian/postgresql-generic-postgis-2.0.install.in 
b/debian/postgresql-generic-postgis-2.0.install.in
new file mode 100644
index 000..bf135b6
--- /dev/null
+++ b/debian/postgresql-generic-postgis-2.0.install.in
@@ -0,0 +1,2 @@
+usr/share/postgresql/@PGVERSION@/extension
+usr/lib/postgresql/@PGVERSION@/lib
diff --git a/debian/rules b/debian/rules
index 985be34..7d6a58a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -121,6 +121,7 @@ clean:
rm -f $(CURDIR)/debian/*.postinst $(CURDIR)/debian/*.postrm
rm -f postgis/postgis_upgrade_20_minor.sql.in 
raster/rt_pg/rtpostgis_drop.sql \
raster/rt_pg/rtpostgis_upgrade_cleanup.sql
+   rm -f $(CURDIR)/debian/postgresql-*-postgis-2.0.install
dh_clean
 
 install: install-indep install-arch
@@ -170,6 +171,11 @@ install-arch: build-arch
ln -sf 
/usr/share/postgis/$(POSTGIS_VERSION)/sql/$$BASENAME $$FILE; \
done
 
+#  Auto-create required .install file for the current Postgres version.
+   cat $(CURDIR)/debian/postgresql-generic-postgis-2.0.install.in \
+   | sed -e 's/@PGVERSION@/$(NEWEST_POSTGRES_VERSION)/' \
+
$(CURDIR)/debian/postgresql-$(NEWEST_POSTGRES_VERSION)-postgis-2.0.install
+
dh_install -s
 
 check: install-arch

-- 
PostGIS for PostgreSQL

___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel