[libocas] 06/09: d/rules: Add a git-orig-source target that DFSG-cleans

Christian Kastner chrisk-guest at moszumanska.debian.org
Tue Jul 14 21:44:35 UTC 2015


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

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

commit a7d575b030d26f5033f444dea045725ee6535772
Author: Christian Kastner <ckk at kvr.at>
Date:   Sat Jul 11 16:50:08 2015 +0200

    d/rules: Add a git-orig-source target that DFSG-cleans
    
    The DFSG-cleaning is performed by uscan with the Files-Excluded header.
    However, as this header is not yet part of the official MRCF, it is placed in a
    separate file debian/files-excluded.
---
 debian/files-excluded |  5 +++++
 debian/rules          | 15 +++++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/debian/files-excluded b/debian/files-excluded
new file mode 100644
index 0000000..c2974b7
--- /dev/null
+++ b/debian/files-excluded
@@ -0,0 +1,5 @@
+# This is used by uscan during repacking in the get-orig-source target. As this
+# is not yet part of the MRCF, it is kept separately from debian/copyright.
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Files-Excluded:
+    data/lena.jpg
diff --git a/debian/rules b/debian/rules
index 13989f0..37051a4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -33,3 +33,18 @@ override_dh_auto_install:
 
 override_dh_strip:
 	dh_strip --dbg-package=libocas-dbg
+
+
+# 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/libocas.git



More information about the debian-science-commits mailing list