From e5a8e2279e1def9c19aa21ec34ddd040770ff65b Mon Sep 17 00:00:00 2001 From: Dimitrios Eftaxiopoulos Date: Sun, 30 Dec 2012 06:26:01 +0200 Subject: [PATCH] Shorten debian/rules file by using dh $@ and overrides --- debian/changelog | 1 + debian/control | 2 +- debian/python-mathgl.install | 2 +- debian/rules | 111 +++-------------------------------- 4 files changed, 10 insertions(+), 106 deletions(-) diff --git a/debian/changelog b/debian/changelog index f8889dc..f9c2ccd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,7 @@ mathgl (2.1.1-1) experimental; urgency=low * Update Standards-Version to 3.9.4 * Add title for CMakeLists-txt.patch * Remove encoding specification line from udav.desktop + * Shorten debian/rules file by using dh $@ and overrides -- Dimitrios Eftaxiopoulos Mon, 24 Dec 2012 22:25:24 +0200 diff --git a/debian/control b/debian/control index 9a12110..05257da 100644 --- a/debian/control +++ b/debian/control @@ -9,7 +9,7 @@ Build-Depends: debhelper (>= 9), libltdl-dev, libgsl0-dev, freeglut3-dev, texinfo, texi2html, texlive, texlive-generic-recommended, liboctave-dev, libgif-dev, python-dev, python-numpy, python-support, libfontconfig1-dev, libhdf4-dev, chrpath, libxinerama-dev, libxmu-dev, libxi-dev, libhpdf-dev, - mpi-default-dev + mpi-default-dev, python Standards-Version: 3.9.4 Homepage: http://mathgl.sourceforge.net/index.html Vcs-Git: git://git.debian.org/debian-science/packages/mathgl.git diff --git a/debian/python-mathgl.install b/debian/python-mathgl.install index 18106cb..ac407ab 100644 --- a/debian/python-mathgl.install +++ b/debian/python-mathgl.install @@ -1 +1 @@ -debian/tmp/usr/lib/python*/dist-packages/* +debian/tmp/usr/lib/python*/dist-packages/* \ No newline at end of file diff --git a/debian/rules b/debian/rules index af59fdc..c5ae2f5 100755 --- a/debian/rules +++ b/debian/rules @@ -12,109 +12,12 @@ export DH_OPTIONS=-v DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) -clean: - dh_testdir - dh_auto_clean --buildsystem=cmake - dh_clean +%: + dh $@ --buildsystem=cmake --with python2 -build: build-arch build-indep -build-arch: build-stamp -build-indep: build-stamp -build-stamp: - dh_testdir - dh_auto_configure --buildsystem=cmake -- -DCMAKE_CXX_FLAGS=-I/usr/include/${DEB_HOST_MULTIARCH}/python2.7 - dh_auto_build --buildsystem=cmake - dh_auto_test --buildsystem=cmake +override_dh_auto_configure: + dh_auto_configure -- -DCMAKE_CXX_FLAGS=-I/usr/include/${DEB_HOST_MULTIARCH}/python2.7 -binary-indep: - dh_testroot -i - dh_prep -i - dh_installdirs -i - dh_auto_install -i --buildsystem=cmake - dh_install -i - dh_installdocs -i - dh_installchangelogs -i - dh_installexamples -i - dh_installman -i - dh_installcatalogs -i - dh_installcron -i - dh_installdebconf -i - dh_installemacsen -i - dh_installifupdown -i - dh_installinfo -i - dh_python2 -i - dh_installinit -i - dh_installmenu -i - dh_installmime -i - dh_installmodules -i - dh_installlogcheck -i - dh_installlogrotate -i - dh_installpam -i - dh_installppp -i - dh_installudev -i - dh_installwm -i - dh_installxfonts -i - dh_bugfiles -i - dh_lintian -i - dh_gconf -i - dh_icons -i - dh_perl -i - dh_usrlocal -i - dh_link -i - dh_compress -i - dh_fixperms -i -# dh_strip -i -# dh_makeshlibs -i -# dh_shlibdeps -i -# dh_installdeb -i - dh_gencontrol -i - dh_md5sums -i - dh_builddeb -i - -binary-arch: - dh_testroot -a - dh_prep -a - dh_installdirs -a - dh_auto_install -a --buildsystem=cmake - dh_install -a - dh_installdocs -a - dh_installchangelogs -a - dh_installexamples -a - dh_installman -a - dh_installcatalogs -a - dh_installcron -a - dh_installdebconf -a - dh_installemacsen -a - dh_installifupdown -a - dh_installinfo -a - dh_python2 -a --no-guessing-versions - dh_numpy -a - dh_installinit -a - dh_installmenu -a - dh_installmime -a - dh_installmodules -a - dh_installlogcheck -a - dh_installlogrotate -a - dh_installpam -a - dh_installppp -a - dh_installudev -a - dh_installwm -a - dh_installxfonts -a - dh_bugfiles -a - dh_lintian -a - dh_gconf -a - dh_icons -a - dh_perl -a - dh_usrlocal -a - dh_link -a - dh_compress -a - dh_fixperms -a - dh_strip -a - dh_makeshlibs -a - dh_shlibdeps -a - dh_installdeb -a - dh_gencontrol -a - dh_md5sums -a - dh_builddeb -a - -binary: binary-arch binary-indep \ No newline at end of file +override_dh_python2: + dh_python2 -- --no-guessing-versions + dh_numpy \ No newline at end of file -- 2.30.2