[Python-modules-commits] r32336 - in packages/python-dmidecode/trunk/debian (changelog rules)
morph at users.alioth.debian.org
morph at users.alioth.debian.org
Sun Apr 12 14:11:07 UTC 2015
Date: Sunday, April 12, 2015 @ 14:11:06
Author: morph
Revision: 32336
* debian/rules
- converted to dh sequencer
Modified:
packages/python-dmidecode/trunk/debian/changelog
packages/python-dmidecode/trunk/debian/rules
Modified: packages/python-dmidecode/trunk/debian/changelog
===================================================================
--- packages/python-dmidecode/trunk/debian/changelog 2015-04-12 13:49:36 UTC (rev 32335)
+++ packages/python-dmidecode/trunk/debian/changelog 2015-04-12 14:11:06 UTC (rev 32336)
@@ -10,8 +10,10 @@
- converted to DEP-5 format
- extend packaging copyright years
- extend upstream copyright years
+ * debian/rules
+ - converted to dh sequencer
- -- Sandro Tosi <morph at debian.org> Sun, 12 Apr 2015 14:49:27 +0100
+ -- Sandro Tosi <morph at debian.org> Sun, 12 Apr 2015 15:10:33 +0100
python-dmidecode (3.10.13-3) unstable; urgency=low
Modified: packages/python-dmidecode/trunk/debian/rules
===================================================================
--- packages/python-dmidecode/trunk/debian/rules 2015-04-12 13:49:36 UTC (rev 32335)
+++ packages/python-dmidecode/trunk/debian/rules 2015-04-12 14:11:06 UTC (rev 32336)
@@ -1,75 +1,24 @@
#!/usr/bin/make -f
PACKAGE = $(shell dh_listpackages|head -n1)
-PYVERS = $(shell pyversions -vr)
+PYTHON2 = $(shell pyversions -r)
-################################################################################
-#. Build
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-build-stamp: $(PYVERS:%=build-ext-%) $(PYVERS:%=build-dbg-ext-%)
- dh_testdir
- touch $@
-build-ext-%:
- python$* src/setup.py build
- touch $@
-build-dbg-ext-%:
- cp dmidecode.py dmidecode-dbg.py
- python$*-dbg src/setup-dbg.py build
- touch $@
+%:
+ dh $@
-################################################################################
-#. Install
-install: install-stamp
- dh_testdir
- dh_testroot
- dh_installdirs
- dh_installchangelogs
- dh_installdocs
- dh_installexamples
- dh_install
- rm -rf debian/python-dmidecode-dbg/usr/share/doc/python-dmidecode-dbg
- ln -s python-dmidecode debian/python-dmidecode-dbg/usr/share/doc/python-dmidecode-dbg
- dh_pysupport
- dh_installman
-install-stamp: build-stamp $(PYVERS:%=install-ext-%) $(PYVERS:%=install-dbg-ext-%)
-install-ext-%:
- python$* src/setup.py install \
- --root $(CURDIR)/debian/$(PACKAGE) \
- --install-layout=deb
- touch $@
-install-dbg-ext-%:
- python$*-dbg src/setup-dbg.py install \
- --root $(CURDIR)/debian/$(PACKAGE)-dbg \
- --install-layout=deb
- #find $(CURDIR)/debian/$(PACKAGE)-dbg/usr/lib/python$*/ ! -type d ! -name '*_d\.so' -delete
- #find $(CURDIR)/debian/$(PACKAGE)-dbg/usr/lib/python$*/ -depth -empty -delete
- touch $@
+override_dh_auto_clean:
+ dh_auto_clean
+ $(MAKE) clean
-################################################################################
-#. Binary
-binary: binary-indep binary-arch
-binary-indep:
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_strip
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
+override_dh_auto_build:
+ set -e ;\
+ for python in $(PYTHON2) ; do \
+ $$python src/setup.py build ;\
+ $$python-dbg src/setup-dbg.py build ;\
+ done
-################################################################################
-#. Clean
-clean:
- dh_testdir
- dh_testroot
- $(MAKE) -f Makefile clean
- dh_clean build-stamp install-stamp dmidecode-dbg.py \
- $(PYVERS:%=install-ext-%) $(PYVERS:%=build-ext-%) \
- $(PYVERS:%=install-dbg-ext-%) $(PYVERS:%=build-dbg-ext-%)
-
-.PHONY: build clean binary-indep binary-arch binary install
+override_dh_auto_install:
+ set -e ;\
+ for python in $(PYTHON2) ; do \
+ $$python src/setup.py install --root=debian/$(PACKAGE) --install-layout=deb ;\
+ $$python-dbg src/setup-dbg.py install --root=debian/$(PACKAGE)-dbg --install-layout=deb ;\
+ done
More information about the Python-modules-commits
mailing list