[SCM] pyliblo packaging branch, master, updated. debian/0.8.1-1-8-g783a120
quadrispro-guest at users.alioth.debian.org
quadrispro-guest at users.alioth.debian.org
Sat May 29 01:16:36 UTC 2010
The following commit has been merged in the master branch:
commit d8ca18b2adb1f05df47997baf27429dda6d5e23f
Author: Alessio Treglia <quadrispro at ubuntu.com>
Date: Sat May 29 03:15:05 2010 +0200
Build with all supported python versions.
diff --git a/debian/rules b/debian/rules
index 127d6b5..03956c9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,34 @@
#!/usr/bin/make -f
+PYDEF=$(shell pyversions -d)
+PYVERS=$(shell pyversions -r)
+
+include /usr/share/python/python.mk
+
%:
dh $@
+override_dh_auto_clean:
+ for python in $(PYVERS); do \
+ $$python setup.py clean; \
+ done
+ dh_auto_clean
+
+override_dh_auto_build:
+ for python in $(PYVERS); do \
+ $$python setup.py build; \
+ done
+
+override_dh_auto_install:
+ for cmd in $(PYVERS); do \
+ pylib=$(call py_libdir_sh,$$cmd); \
+ if [ $$cmd = $(PYDEF) ]; then \
+ $$cmd setup.py install --root=debian/tmp --install-layout=deb; \
+ else \
+ $$cmd setup.py install_lib --install-dir=debian/tmp/$$pylib; \
+ $$cmd setup.py install_egg_info --install-dir=debian/tmp/$$pylib; \
+ fi \
+ done
+
override_dh_installchangelogs:
dh_installchangelogs NEWS
--
pyliblo packaging
More information about the pkg-multimedia-commits
mailing list