[med-svn] [SCM] bamtools branch, debian, updated. 422e3dd0257db21d872f68022164335f893bc242

Charles Plessy plessy at debian.org
Mon Apr 1 06:28:59 UTC 2013


The following commit has been merged in the debian branch:
commit 422e3dd0257db21d872f68022164335f893bc242
Author: Charles Plessy <plessy at debian.org>
Date:   Mon Apr 1 15:27:56 2013 +0900

    Dowload through watch file, delete third party files with tar.
    
    The change in the copyright file is cosmetic for the moment.

diff --git a/debian/copyright b/debian/copyright
index 595362d..9dac062 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,6 +1,7 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: bamtools
 Source: https://github.com/pezmaster31/bamtools
+Files-Excluded: src/third_party
 
 Files: *
 Copyright: 2009-2012 Derek Barnett <derekwbarnett at gmail.com>
diff --git a/debian/rules b/debian/rules
index 41b39f8..770d69a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,17 +14,13 @@ override_dh_auto_install:
 SOURCEPKG=$(shell dpkg-parsechangelog | sed  -n 's/^Source: \(.*\)/\1/p')
 UPSTREAM=$(shell dpkg-parsechangelog |  sed -n 's/^Version: \(.*\)-[^-]*/\1/p')
 SHA1=$(lastword $(subst ~g, ,$(UPSTREAM)))
-ORIG=${SOURCEPKG}_${UPSTREAM}.orig.tar.gz
+ORIG=${SOURCEPKG}_${UPSTREAM}.orig.tar
 
 describe-current-version:
 	git describe --tags upstream | sed 's,^release-,,;s,-,+,;s,-,~,;'
 
-TOPDIR=get-orig-source
-DIR=${TOPDIR}/bamtools-${UPSTREAM}
-
 get-orig-source:
-	mkdir -p ${DIR}
-	git clone git://github.com/pezmaster31/bamtools.git ${DIR}
-	( cd ${DIR}; git checkout bafc03f4ed7ed9ff1b3fb24874dc8a4a6d58e605; rm -R src/third_party; cd ..; tar --owner=root --group=root --mode=a+rX --exclude-vcs -caf ../bamtools_${UPSTREAM}.orig.tar.gz bamtools-${UPSTREAM} )
-	rm -Rf ${TOPDIR}
-
+	uscan --download-current-version --force-download --rename
+	gunzip ../$(ORIG).gz
+	tar --delete --wildcards --file ../$(ORIG) '*/src/third_party'
+	xz ../$(ORIG)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..f2f37d4
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/pezmaster31/bamtools/tags .*/v?(\d[\d\.]+)\.tar\.gz

-- 
debian packaging for bamtools



More information about the debian-med-commit mailing list