[asymptote] 03/16: Use dpkg-dev snippet to parse changelog instead of hand-written recipes.
This is an automated email from the git hooks/post-receive script.
preining pushed a commit to branch master
in repository asymptote.
commit 3875804e173ea785ac0fa64ea5754cc03d158ef6
Author: Nicolas Boulenguez <nicolas@debian.org>
Date: Tue Oct 31 01:00:46 2017 +0100
Use dpkg-dev snippet to parse changelog instead of hand-written recipes.
---
debian/control | 1 +
debian/rules | 9 ++++-----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/debian/control b/debian/control
index 370139e..bffc652 100644
--- a/debian/control
+++ b/debian/control
@@ -10,6 +10,7 @@ Build-Depends: autotools-dev,
bison,
debhelper (>= 9),
dh-autoreconf,
+ dpkg-dev (>= 1.16.1),
flex,
freeglut3-dev,
libosmesa6-dev,
diff --git a/debian/rules b/debian/rules
index 5741c5b..affd160 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,6 @@
#!/usr/bin/make -f
-PKG=asymptote
+include /usr/share/dpkg/pkg-info.mk
%:
dh $@ --with autoreconf
@@ -40,14 +40,13 @@ override_dh_clean:
# code from the calibre packaging
get-orig-source:
set -e; \
- V=`dpkg-parsechangelog | sed -rn '/^Version:/ {s/^Version: ([0-9.]+).*$$/\1/; p}'`; \
mkdir -p debian/orig; cd debian/orig; \
- wget -O - https://downloads.sourceforge.net/project/${PKG}/$$V/${PKG}-$$V.src.tgz | gzip -cd | tar x; \
+ wget -O - https://downloads.sourceforge.net/project/$(DEB_SOURCE)/$(DEB_VERSION_UPSTREAM)/$(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM).src.tgz | gzip -cd | tar x; \
D=`pwd`; \
- cd ${PKG}*; \
+ cd $(DEB_SOURCE)*; \
rm --force doc/latexusage.pdf doc/latexusage.dvi doc/TeXShopAndAsymptote.dvi doc/CAD.dvi; \
rm --force doc/*.aux doc/*.cp doc/*.cps doc/*.idx doc/*.ins doc/*.log doc/*.toc asy.list; \
rm --force doc/asyRefCard.pdf doc/asyRefCard.dvi;\
cd ..;\
- tar c . | gzip -9 > ../../../${PKG}_$$V.orig.tar.gz; \
+ tar c . | gzip -9 > ../../../$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz; \
cd ../..; rm -r debian/orig
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/asymptote.git
Reply to: