aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorLibravatarChristoph Goehre <chris@sigxcpu.org>2014-08-25 18:12:18 -0700
committerLibravatarChristoph Goehre <chris@sigxcpu.org>2014-08-25 18:12:18 -0700
commitdbf811a6f6eed43896907d9b8581fcc233f5509e (patch)
tree680b5611a5a3ec472ee165b2497ba8c6e750dca4 /debian/rules
parentdbdacea7ee7740b35ee63b2f6fb25144170c131d (diff)
switch from cdbs to dh
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules13
1 files changed, 6 insertions, 7 deletions
diff --git a/debian/rules b/debian/rules
index e19cc6c..a48d252 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,12 +6,11 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/python-distutils.mk
+include /usr/share/dpkg/default.mk
-minidinstall/version.py: debian/changelog
- echo "pkg_version = \"$(DEB_UPSTREAM_VERSION)\"" > minidinstall/version.py
+%:
+ dh $@ --with python2
-clean:: minidinstall/version.py
-
-.PHONY: minidinstall/version.py
+override_dh_auto_clean:
+ echo "pkg_version = \"$(DEB_VERSION_UPSTREAM)\"" > minidinstall/version.py
+ dh_auto_clean