[SCM] pyliblo/master: debian/rules: Don't build&install by hand. This avoids the explicit dependency on python2.5.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Mon Oct 4 09:40:59 UTC 2010


The following commit has been merged in the master branch:
commit cb6bd92651a034fa9d841940abeeb3552aa801f8
Author: Alessio Treglia <alessio at debian.org>
Date:   Mon Oct 4 11:36:48 2010 +0200

    debian/rules: Don't build&install by hand. This avoids the explicit dependency on python2.5.

diff --git a/debian/rules b/debian/rules
index 03956c9..127d6b5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,34 +1,7 @@
 #!/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