[Python-modules-commits] r8533 - in packages/pyparted/trunk/debian (compat control rules)
dktrkranz-guest at users.alioth.debian.org
dktrkranz-guest at users.alioth.debian.org
Tue May 19 13:00:27 UTC 2009
Date: Tuesday, May 19, 2009 @ 13:00:26
Author: dktrkranz-guest
Revision: 8533
Switch to debhelper 7
Modified:
packages/pyparted/trunk/debian/compat
packages/pyparted/trunk/debian/control
packages/pyparted/trunk/debian/rules
Modified: packages/pyparted/trunk/debian/compat
===================================================================
--- packages/pyparted/trunk/debian/compat 2009-05-19 12:53:34 UTC (rev 8532)
+++ packages/pyparted/trunk/debian/compat 2009-05-19 13:00:26 UTC (rev 8533)
@@ -1 +1 @@
-6
+7
Modified: packages/pyparted/trunk/debian/control
===================================================================
--- packages/pyparted/trunk/debian/control 2009-05-19 12:53:34 UTC (rev 8532)
+++ packages/pyparted/trunk/debian/control 2009-05-19 13:00:26 UTC (rev 8533)
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: Luca Falavigna <dktrkranz at ubuntu.com>
-Build-Depends: debhelper (>= 6), python-all-dev, python-all-dbg, python-support (>= 0.5.3), pkg-config, libparted1.8-dev (>= 1.8.6), automake, libdevmapper-dev, uuid-dev, quilt
+Build-Depends: debhelper (>= 7), python-all-dev, python-all-dbg, python-support (>= 0.5.3), pkg-config, libparted1.8-dev (>= 1.8.6), automake, libdevmapper-dev, uuid-dev, quilt (>= 0.46-7)
Standards-Version: 3.8.1
Homepage: http://fedorahosted.org/pyparted/
Vcs-Svn: svn://svn.debian.org/python-modules/packages/pyparted/trunk/
Modified: packages/pyparted/trunk/debian/rules
===================================================================
--- packages/pyparted/trunk/debian/rules 2009-05-19 12:53:34 UTC (rev 8532)
+++ packages/pyparted/trunk/debian/rules 2009-05-19 13:00:26 UTC (rev 8533)
@@ -1,77 +1,42 @@
#!/usr/bin/make -f
-include /usr/share/quilt/quilt.make
-
PYTHONS := $(shell pyversions -vr debian/control)
-configure: configure-stamp
-configure-stamp:
- dh_testdir
+%:
+ dh --with quilt $@
+
+clean:
+ dh_quilt_unpatch
+ rm -fr build
+ dh $@
+
+override_dh_auto_configure:
for pyvers in ${PYTHONS}; do \
- mkdir -p build/py$$pyvers; \
- cp -Rl `ls . | grep -v build | grep -v debian` build/py$$pyvers;\
- (cd build/py$$pyvers; \
- ./configure --prefix=/usr PYTHON=python$$pyvers); \
+ mkdir -p build/py$$pyvers; cp -Rl `ls . | grep -v build | grep -v debian` build/py$$pyvers;\
+ (cd build/py$$pyvers; ./configure --prefix=/usr PYTHON=python$$pyvers); \
done
for pyvers in ${PYTHONS}; do \
- mkdir -p build/py$$pyvers-dbg; \
- cp -Rl `ls . | grep -v build | grep -v debian` build/py$$pyvers-dbg; \
- (cd build/py$$pyvers-dbg; \
- ./configure PYTHON=python$${pyvers} CFLAGS="-g -ggdb `python$${pyvers}-dbg-config --include` " --prefix=/usr ; \
- sed -i Makefile -e 's/\(^PYTHON_INCLUDES\s=.*\)/\1_d/' ) ; \
+ mkdir -p build/py$$pyvers-dbg; cp -Rl `ls . | grep -v build | grep -v debian` build/py$$pyvers-dbg; \
+ (cd build/py$$pyvers-dbg; ./configure --prefix=/usr PYTHON=python$$pyvers-dbg CFLAGS="-g -ggdb "); \
done
- touch configure-stamp
-build: patch build-stamp
-build-stamp: configure-stamp
- dh_testdir
+override_dh_auto_build:
for pyvers in ${PYTHONS}; do \
(cd build/py$$pyvers/; $(MAKE) PYTHON=python$$pyvers); \
done
for pyvers in ${PYTHONS}; do \
- (cd build/py$$pyvers-dbg/; \
- $(MAKE) PYTHON=python$${pyvers}-dbg); \
+ (cd build/py$$pyvers-dbg/; $(MAKE) PYTHON=python$$pyvers-dbg PYTHON_INCLUDES=`python$$pyvers-dbg-config --include`); \
done
- touch $@
-clean: unpatch
- dh_testdir
- dh_testroot
- [ ! -f Makefile ] || $(MAKE) distclean
- rm -fr build
- dh_clean build-stamp configure-stamp
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
+override_dh_auto_install:
for pyvers in ${PYTHONS}; do \
(cd build/py$$pyvers/; $(MAKE) install DESTDIR=$(CURDIR)/debian/python-parted); \
done
for pyvers in ${PYTHONS}; do \
- (cd build/py$${pyvers}-dbg/; \
- $(MAKE) install DESTDIR=$(CURDIR)/debian/python-parted-dbg); \
- (cd $(CURDIR)/debian/python-parted-dbg/usr/lib/python$${pyvers}/*-packages; mv _pedmodule.so _pedmodule_d.so); \
+ (cd build/py$$pyvers-dbg/; $(MAKE) install DESTDIR=$(CURDIR)/debian/python-parted-dbg); \
+ (cd $(CURDIR)/debian/python-parted-dbg/usr/lib/python$$pyvers/*-packages; mv _pedmodule.so _pedmodule_d.so); \
done
+ find $(CURDIR)/debian/python-parted-dbg -name "*parted" -exec rm -fr {} +
-binary-indep: install
-
-binary-arch: install
- dh_testdir
- dh_testroot
- dh_installchangelogs
- dh_installdocs
- dh_pysupport
+override_dh_strip:
dh_strip --dbg-package=python-parted-dbg -X_pedmodule_d.so
- rm -fr $(CURDIR)/debian/python-parted-dbg/usr/share/python-support/python-parted-dbg/parted/
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
More information about the Python-modules-commits
mailing list