[libfann] 04/34: d/rules: Add get-orig-source target

Christian Kastner chrisk-guest at moszumanska.debian.org
Thu Oct 1 18:06:20 UTC 2015


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

chrisk-guest pushed a commit to branch master
in repository libfann.

commit 953cb99329649adf1857fa9e82c49c6f05cc22b8
Author: Christian Kastner <ckk at kvr.at>
Date:   Thu Oct 1 11:18:58 2015 +0200

    d/rules: Add get-orig-source target
---
 debian/rules | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/debian/rules b/debian/rules
index 78f1c2a..7359eb6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,6 +10,10 @@ export DEB_CFLAGS_MAINT_APPEND = -Wall
 # For pybuild
 export PYBUILD_NAME=pyfann
 
+# For get-orig-source
+PKGDIR := $(dir $(firstword $(MAKEFILE_LIST)))..
+UPVER := $(shell dpkg-parsechangelog -l$(PKGDIR)/debian/changelog -S Version | \
+		sed -re 's/\+ds-.*//')
 
 %:
 	dh $@ --with autoreconf,python2
@@ -151,3 +155,17 @@ override_dh_auto_clean:
 	
 	# Remove output generated by naturaldocs
 	rm -rf doc/proj doc/html
+
+# Remove upstream's non-DFSG-compliant files
+get-orig-source:
+	uscan \
+		--noconf \
+		--download-version $(UPVER) \
+		--force-download \
+		--check-dirname-level=0 \
+		--destdir=$(CURDIR) \
+		--rename \
+		--repack \
+		--compression xz \
+		--copyright-file=$(PKGDIR)/debian/files-excluded \
+		$(PKGDIR)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libfann.git



More information about the debian-science-commits mailing list