[med-svn] [mummer] 01/06: use Files-Excluded to clean up upstream source

Andreas Tille tille at debian.org
Sat Jul 23 19:58:59 UTC 2016


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository mummer.

commit 910ed2639d4b72a25cc26458a36a6ec4131c56a1
Author: Andreas Tille <tille at debian.org>
Date:   Sat Jul 23 21:43:03 2016 +0200

    use Files-Excluded to clean up upstream source
---
 debian/changelog |  3 ++-
 debian/copyright |  5 ++++-
 debian/rules     | 14 --------------
 debian/watch     |  2 +-
 4 files changed, 7 insertions(+), 17 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 184f232..1ad4805 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
-mummer (3.23~dfsg-4) UNRELEASED; urgency=medium
+mummer (3.23+dfsg-1) UNRELEASED; urgency=medium
 
   * Moved packaging from SVN to Git
+  * d/copyright: use Files-Excluded to clean up upstream source
 
  -- Andreas Tille <tille at debian.org>  Sat, 23 Jul 2016 21:27:40 +0200
 
diff --git a/debian/copyright b/debian/copyright
index b1c3b50..0472c0a 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,5 +1,8 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Source: http://cdnetworks-kr-1.dl.sourceforge.net/project/mummer/mummer/3.23/MUMmer3.23.tar.gz
+Upstream-Name: MUMmer
+Source: https://sourceforge.net/projects/mummer/files/mummer/
+Files-Excluded: */M*.pdf
+                */X*.pdf
 
 Files: *
 Copyright: © 2003 by Stefan Kurtz and The Institute for Genomic Research.
diff --git a/debian/rules b/debian/rules
index 9e42496..b532b54 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,17 +35,3 @@ override_dh_auto_install:
 
 override_dh_compress:
 	dh_compress -Xpdf
-
-NAME    = $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
-VERSION = $(shell dpkg-parsechangelog | sed -n 's/^Version: //p' | sed 's/~dfsg.*//')
-TARBALL = MUMmer$(VERSION).tar.gz
-
-get-orig-source:
-	wget http://downloads.sourceforge.net/sourceforge/$(NAME)/$(TARBALL)
-	rm -rf tmp
-	mkdir tmp
-	cd tmp ;\
-	tar -xzf ../$(TARBALL) ;\
-	rm -vf `find . -maxdepth 4 -name [MX]*.pdf` ;\
-	GZIP="--best --no-name" tar -czf ../$(NAME)_$(VERSION)~dfsg.orig.tar.gz *
-	rm -rf tmp
diff --git a/debian/watch b/debian/watch
index af61aec..e4e5524 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,3 @@
 version=3
-opts=dversionmangle=s/\~dfsg// \
+opts="repacksuffix=+dfsg,dversionmangle=s/[+~]dfsg//g,repack,compression=xz" \
  http://sf.net/mummer/MUMmer(.+)\.tar.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/mummer.git



More information about the debian-med-commit mailing list