[SCM] Packaging for python-demgengeo. Library for creating geometry-files of packed spheres for DEM-programms. branch, master, updated. upstream/0.99_bzr106-7-g294e03f

Anton Gladky gladky.anton at gmail.com
Mon Dec 5 17:13:29 UTC 2011


The following commit has been merged in the master branch:
commit 18db2c7d1433c22d49172e8ee16ef2aac673f48d
Author: Anton Gladky <gladky.anton at gmail.com>
Date:   Sun Dec 4 17:59:25 2011 +0100

    Use dh_python2 for installing libraries

diff --git a/debian/control b/debian/control
index 155d5cf..f6f7973 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Priority: extra
 Build-Depends: debhelper (>= 7.0.50~), libtool (>= 1.5.2), automake (>= 1.8.2), 
   autoconf (>= 2.59), libltdl7-dev, libboost-iostreams-dev, libcppunit-dev, 
   python-epydoc, autotools-dev, libboost-dev, libboost-python-dev, 
-  libboost-filesystem-dev
+  libboost-filesystem-dev, python-all-dev
 Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
 DM-Upload-Allowed: yes
 Uploaders: Anton Gladky <gladky.anton at gmail.com>
@@ -12,10 +12,12 @@ Section: python
 Homepage: https://launchpad.net/esys-particle
 Vcs-Git: git://git.debian.org/git/debian-science/packages/python-demgengeo.git
 Vcs-Browser: http://git.debian.org/?p=debian-science/packages/python-demgengeo.git
+XS-Python-Version: 2.7
 
 Package: python-demgengeo
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends},
+ python (>= 2.7), python (<<2.8)
 Description: DEMGenGeo is a library for creating geometry files 
  DEMGenGeo is a library for creating geometry files used by ESyS-Particle.
  It provides a convenient method for creating arbitrary geometries of simple
diff --git a/debian/python-demgengeo.docs b/debian/python-demgengeo.docs
index c2a0145..9c7f650 100644
--- a/debian/python-demgengeo.docs
+++ b/debian/python-demgengeo.docs
@@ -1 +1 @@
-debian/tmp/usr/share/doc/lsmgengeo-*/pythonapi/
+debian/tmp-install/usr/share/doc/lsmgengeo-1.0/pythonapi/
diff --git a/debian/python-demgengeo.install b/debian/python-demgengeo.install
deleted file mode 100644
index 6845771..0000000
--- a/debian/python-demgengeo.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib
diff --git a/debian/python-demgengeo.pyinstall b/debian/python-demgengeo.pyinstall
new file mode 100644
index 0000000..cd73128
--- /dev/null
+++ b/debian/python-demgengeo.pyinstall
@@ -0,0 +1,2 @@
+debian/tmp-install/usr/lib/python2.7/dist-packages/gengeo/*.so gengeo
+debian/tmp-install/usr/lib/python2.7/dist-packages/gengeo/*.py gengeo
diff --git a/debian/rules b/debian/rules
index 4addd5d..c86525c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,11 @@
 #!/usr/bin/make -f
 
-INSTDIR = $(CURDIR)/debian/tmp
+INSTDIR = $(CURDIR)/debian/tmp-install
 SRCDIR = build
 CXXFLAGS := -Wall $(shell dpkg-buildflags --get CXXFLAGS)
 
 %:
-	dh $@  --sourcedirectory=build
+	dh $@  --with python2 --sourcedirectory=build
 
 override_dh_auto_configure:
 	cd $(SRCDIR) && ./autogen.sh && ./configure --prefix=/usr CXXFLAGS='$(CXXFLAGS)' --enable-docs
@@ -15,3 +15,7 @@ override_dh_auto_install:
 	find . -name '*.pyc' -print0 | xargs -0 rm -f
 	find . -name '*.pyo' -print0 | xargs -0 rm -f
 	find . -name '*.la' -print0 | xargs -0 rm -f
+	rm debian/tmp-install/usr/lib/python2.7/dist-packages/gengeo/gengeo.so
+	mv debian/tmp-install/usr/lib/python2.7/dist-packages/gengeo/gengeo-1.0.so debian/tmp-install/usr/lib/python2.7/dist-packages/gengeo/gengeo.so
+
+override_dh_makeshlibs:

-- 
Packaging for python-demgengeo. Library for creating geometry-files of packed spheres for DEM-programms.



More information about the debian-science-commits mailing list