Shorten debian/rules file by using dh $@ and overrides
authorDimitrios Eftaxiopoulos <eftaxi12@otenet.gr>
Sun, 30 Dec 2012 04:26:01 +0000 (06:26 +0200)
committerDimitrios Eftaxiopoulos <eftaxi12@otenet.gr>
Sun, 30 Dec 2012 04:26:01 +0000 (06:26 +0200)
debian/changelog
debian/control
debian/python-mathgl.install
debian/rules

index f8889dcabf5944cf3edb23d20dfd03d5cb712e9d..f9c2ccd1ea1a13590773bf94a4dcd4272ba738b0 100644 (file)
@@ -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 <eftaxi12@otenet.gr>  Mon, 24 Dec 2012 22:25:24 +0200
 
index 9a121103c8991963dfda68eddfbd1a55e9a457a9..05257dad9e0873e83f13a145f6b8cd45402f66d5 100644 (file)
@@ -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
index 18106cb6501abc937ee7f58ed4d1bf47f308be80..ac407ab5fbd65fe8430ef49ac7aeb77606249555 100644 (file)
@@ -1 +1 @@
-debian/tmp/usr/lib/python*/dist-packages/*
+debian/tmp/usr/lib/python*/dist-packages/*
\ No newline at end of file
index af59fdcfa8b7760819101bda4f0edad56e384099..c5ae2f513db082b90868b4778187d6bda8fc97af 100755 (executable)
@@ -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