[DebianGIS-dev] r2808 - packages/geos/trunk/debian

frankie at alioth.debian.org frankie at alioth.debian.org
Thu Apr 1 22:53:42 UTC 2010


Author: frankie
Date: 2010-04-01 22:53:40 +0000 (Thu, 01 Apr 2010)
New Revision: 2808

Modified:
   packages/geos/trunk/debian/changelog
   packages/geos/trunk/debian/control
   packages/geos/trunk/debian/control.in
   packages/geos/trunk/debian/rules
Log:
Inital python binding support and new version.


Modified: packages/geos/trunk/debian/changelog
===================================================================
--- packages/geos/trunk/debian/changelog	2010-03-31 15:32:11 UTC (rev 2807)
+++ packages/geos/trunk/debian/changelog	2010-04-01 22:53:40 UTC (rev 2808)
@@ -1,3 +1,10 @@
+geos (3.2.1-1) unstable; urgency=low
+
+  * New upstream release.
+  * Added python bindings for all versions.
+
+ -- Francesco Paolo Lovergine <frankie at debian.org>  Fri, 02 Apr 2010 00:02:16 +0200
+
 geos (3.2.0-2) unstable; urgency=low
 
   * Policy set to 3.8.4, without changes.

Modified: packages/geos/trunk/debian/control
===================================================================
--- packages/geos/trunk/debian/control	2010-03-31 15:32:11 UTC (rev 2807)
+++ packages/geos/trunk/debian/control	2010-04-01 22:53:40 UTC (rev 2808)
@@ -3,8 +3,10 @@
 Priority: optional
 Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
 Uploaders: Francesco Paolo Lovergine <frankie at debian.org>
-Build-Depends: debhelper (>= 7), dpatch, doxygen, swig, ruby, ruby-dev
+Build-Depends: debhelper (>= 7), dpatch, doxygen, swig, ruby, ruby-dev, 
+ python-dev,  python-all-dev (>= 2.3.5-11~), python-central (>= 0.5)
 Standards-Version: 3.8.4
+XS-Python-Version: all
 Homepage: http://trac.osgeo.org/geos/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-grass/packages/geos/trunk
 Vcs-Svn: svn://svn.debian.org/svn/pkg-grass/packages/geos/trunk
@@ -12,7 +14,7 @@
 Package: libgeos-dev
 Section: libdevel
 Architecture: any
-Depends: libgeos-3.2.0 (= ${binary:Version}), libgeos-c1 (= ${binary:Version})
+Depends: libgeos-3.2.1 (= ${binary:Version}), libgeos-c1 (= ${binary:Version})
 Suggests: libgdal-doc
 Description: Geometry engine for GIS - Development files
  GEOS provides a spatial object model and fundamental geometric
@@ -43,7 +45,7 @@
  This package contains the C library. A C++ library is provided
  by the libgeos* package.
 
-Package: libgeos-3.2.0
+Package: libgeos-3.2.1
 Section: libs
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
@@ -79,10 +81,23 @@
 Package: libgeos-ruby1.8
 Section: ruby
 Architecture: any
-Depends: libgeos-3.2.0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Depends: libgeos-3.2.1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
 Description: GEOS bindings for Ruby
  GEOS provides a spatial object model and fundamental geometric
  functions. It implements the geometry model defined in the
  OpenGIS Consortium Simple Features Specification for SQL.
  .
  This package contains the Ruby bindings for GEOS.
+
+Package: python-geos
+Section: python
+Architecture: any
+Depends: libgeos-3.2.1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
+Description: GEOS bindings for Python
+ GEOS provides a spatial object model and fundamental geometric
+ functions. It implements the geometry model defined in the
+ OpenGIS Consortium Simple Features Specification for SQL.
+ .
+ This package contains the Python bindings for GEOS.

Modified: packages/geos/trunk/debian/control.in
===================================================================
--- packages/geos/trunk/debian/control.in	2010-03-31 15:32:11 UTC (rev 2807)
+++ packages/geos/trunk/debian/control.in	2010-04-01 22:53:40 UTC (rev 2808)
@@ -3,8 +3,10 @@
 Priority: optional
 Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
 Uploaders: Francesco Paolo Lovergine <frankie at debian.org>
-Build-Depends: debhelper (>= 7), dpatch, doxygen, swig, ruby, ruby-dev
+Build-Depends: debhelper (>= 7), dpatch, doxygen, swig, ruby, ruby-dev, 
+ python-dev,  python-all-dev (>= 2.3.5-11~), python-central (>= 0.5)
 Standards-Version: 3.8.4
+XS-Python-Version: all
 Homepage: http://trac.osgeo.org/geos/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-grass/packages/geos/trunk
 Vcs-Svn: svn://svn.debian.org/svn/pkg-grass/packages/geos/trunk
@@ -86,3 +88,16 @@
  OpenGIS Consortium Simple Features Specification for SQL.
  .
  This package contains the Ruby bindings for GEOS.
+
+Package: python-geos
+Section: python
+Architecture: any
+Depends: libgeos- at VERSION@ (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
+Description: GEOS bindings for Python
+ GEOS provides a spatial object model and fundamental geometric
+ functions. It implements the geometry model defined in the
+ OpenGIS Consortium Simple Features Specification for SQL.
+ .
+ This package contains the Python bindings for GEOS.

Modified: packages/geos/trunk/debian/rules
===================================================================
--- packages/geos/trunk/debian/rules	2010-03-31 15:32:11 UTC (rev 2807)
+++ packages/geos/trunk/debian/rules	2010-04-01 22:53:40 UTC (rev 2808)
@@ -11,6 +11,9 @@
 
 include /usr/share/dpatch/dpatch.make
 
+PYVERS=$(shell pyversions -v -r debian/control.in)
+PYDEF=$(shell pyversions -dv)
+
 # These are used for cross-compiling and for saving the configure script
 # from having to guess our platform (since we know it already)
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
@@ -55,13 +58,17 @@
 	mv config.guess config.guess.bak
 	cp -f /usr/share/misc/config.guess config.guess
 endif
-	CFLAGS="$(CFLAGS)" ./configure \
-        --host=$(DEB_HOST_GNU_TYPE) \
-        --build=$(DEB_BUILD_GNU_TYPE) \
-        --enable-ruby \
-		--prefix=/usr \
-        --mandir=\$${prefix}/share/man \
-        --infodir=\$${prefix}/share/info $(CONFFLAGS)
+	for V in $(PYVERS); do \
+		CFLAGS="$(CFLAGS)" PYTHON=/usr/bin/python$$V ./configure \
+			--host=$(DEB_HOST_GNU_TYPE) \
+			--build=$(DEB_BUILD_GNU_TYPE) \
+			--enable-ruby \
+			--enable-python \
+			--prefix=/usr \
+			--mandir=\$${prefix}/share/man \
+			--infodir=\$${prefix}/share/info $(CONFFLAGS); \
+			cp swig/python/Makefile swig/python/Makefile-$$V; \
+	done
 	cp debian/libgeos-c++.install debian/libgeos-$(VER).install
 	cp debian/libgeos-c++.dirs debian/libgeos-$(VER).dirs
 
@@ -72,6 +79,10 @@
 build-arch-stamp:  config.status
 	# Add here commands to compile the arch part of the package.
 	$(MAKE)
+	for V in $(PYVERS); do \
+		$(MAKE) -C swig/python clean; \
+		PYTHON=/usr/bin/python$$V $(MAKE) -C swig/python -f Makefile-$$V; \
+	done
 	touch $@
 
 build-indep: build-indep-stamp




More information about the Pkg-grass-devel mailing list