[SCM] zam-plugins/master: Revert - Repacking by copyright file now.

mira-guest at users.alioth.debian.org mira-guest at users.alioth.debian.org
Fri Oct 13 09:22:52 UTC 2017


The following commit has been merged in the master branch:
commit 2b00af402f9ca2414cfd1734a356da4545bad9e0
Author: Jaromír Mikeš <mira.mikes at seznam.cz>
Date:   Fri Oct 13 11:14:20 2017 +0200

    Revert - Repacking by copyright file now.

diff --git a/debian/copyright b/debian/copyright
index 3f5797b..35a507a 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -2,9 +2,6 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: zam-plugins
 Upstream-Contact: Damien Zammit <damien at zamaudio.com>
 Source: https://github.com/zamaudio/zam-plugins
-Files-Excluded:
- .*
- dpf
 
 Files: *
 Copyright: 2013-2015 Damien Zammit
diff --git a/debian/gbp.conf b/debian/gbp.conf
index 5474c60..9570729 100644
--- a/debian/gbp.conf
+++ b/debian/gbp.conf
@@ -1,3 +1,4 @@
 [DEFAULT]
 pristine-tar = True
+compression = xz
 sign-tags = True
diff --git a/debian/rules b/debian/rules
index 64a0327..b3adadf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,9 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
 
+upstream_version ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)(\+dfsg\d+)?.*$$/\1/p')
+dfsg_version = $(upstream_version)~repack3
+pkg = $(shell dpkg-parsechangelog | sed -ne 's/^Source: //p')
 noopt = $(if $(filter amd64,$(DEB_HOST_ARCH)),NOOPT=false,NOOPT=true)
 
 %:
@@ -20,3 +23,13 @@ override_dh_auto_install:
 		DESTDIR=$(CURDIR)/debian/zam-plugins \
 		PREFIX=/usr
 	chmod 644 $(CURDIR)/debian/zam-plugins/usr/lib/lv2/*/*.ttl
+
+get-orig-source:
+	git  clone --recursive --branch $(upstream_version) git://github.com/zamaudio/zam-plugins
+	rm -fR $(pkg)/.git
+	find $(pkg)/ -name '.*' -delete
+	find $(pkg)/dpf/ -name '.*' -delete
+	tar cf $(pkg)_$(dfsg_version).orig.tar $(pkg)
+	xz -zf $(pkg)_$(dfsg_version).orig.tar
+	rm -rf $(pkg)
+	mv $(pkg)_$(dfsg_version).orig.tar.xz ../$(pkg)_$(dfsg_version).orig.tar.xz
diff --git a/debian/watch b/debian/watch
index e59e43a..1cf11b9 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,3 @@
 version=3
-opts=dversionmangle=s/\~repack2$//,repacksuffix=~repack2 \
+opts=dversionmangle=s/~repack.*// \
   https://github.com/zamaudio/zam-plugins/tags .*/v?(\d\S*)\.tar\.gz

-- 
zam-plugins packaging



More information about the pkg-multimedia-commits mailing list