summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog2
-rwxr-xr-xdebian/rules7
2 files changed, 5 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog
index f231490..901cd1c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ rapid-photo-downloader (0.9.0-1) UNRELEASED; urgency=medium
- Add requested python 3 and remove unneeded python 2 to/from Build-Depends.
- Change Vcs-Browser and Homepage to secure URI.
- Add X-Python3-Version and remove X-Python-Version.
+ * debian/rules:
+ - Use pkg-info.mk instead parsing the output of dpkg-parsechangelog.
* Declare compliance with Debian Policy 4.0.0. (No changes needed).
* Bump compat to 10:
- Change debian/compat to 10.
diff --git a/debian/rules b/debian/rules
index 485f51b..fa62e71 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,15 +1,14 @@
#!/usr/bin/make -f
+#export DH_VERBOSE=1
-DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
-VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')
-export DH_VERBOSE=1
+include /usr/share/dpkg/pkg-info.mk
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_configure:
- pod2man --section=1 --release=$(VERSION) --center "" doc/rapid-photo-downloader.1.pod > rapid-photo-downloader.1
+ pod2man --section=1 --release=$(DEB_SOURCE) --center "" doc/rapid-photo-downloader.1.pod > rapid-photo-downloader.1
#override_dh_auto_install:
# dh_auto_install -- --install-lib=/usr/share/rapid-photo-downloader --install-scripts=/usr/share/rapid-photo-downloader