[SCM] rtmidi/master: Repack by copyright file now.

mira-guest at users.alioth.debian.org mira-guest at users.alioth.debian.org
Thu Oct 5 18:37:12 UTC 2017


The following commit has been merged in the master branch:
commit 800a8ed496028aa2aaf34f50917884175457f58c
Author: Jaromír Mikeš <mira.mikes at seznam.cz>
Date:   Thu Oct 5 20:37:03 2017 +0200

    Repack by copyright file now.

diff --git a/debian/copyright b/debian/copyright
index 0c78f65..0402830 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -3,6 +3,21 @@ Upstream-Name: RtMidi
 Upstream-Contact: Gary P. Schiavone <gary at music.mcgill.ca>
 Source: http://www.music.mcgill.ca/~gary/rtmidi/release/
 Copyright: 2001-2014 Gary P. Scavone
+Comment: The original tarball was repacked in order to remove Windows files
+ and HTML documentation.
+Files-Excluded:
+ configure
+ ._*
+ doc/._*
+ doc/doxygen/._*
+ doc/doxygen/samples/._*
+ doc/html
+ doc/images
+ msw
+ tests/._*
+ tests/*.dsp
+ tests/Debug
+ tests/Release
 
 Files: *
 Copyright: 2003-2014 Gary P. Scavone
diff --git a/debian/rules b/debian/rules
index 77cf58c..42902e5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,10 +2,6 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow, +fortify
 
-upstream_version ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)(\+dfsg\d+)?.*$$/\1/p')
-dfsg_version = $(upstream_version)~ds0
-pkg = $(shell dpkg-parsechangelog | sed -ne 's/^Source: //p')
-
 DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 CONFIGURE_FLAGS = --with-alsa --with-jack
@@ -38,22 +34,3 @@ override_dh_auto_test:
 
 override_dh_installchangelogs:
 	dh_installchangelogs doc/release.txt
-
-# get-orig-source to drop doc and win files
-get-orig-source:
-	uscan --noconf --force-download --rename --download-current-version --destdir=.
-	tar -xf $(pkg)_$(upstream_version).orig.tar.gz
-	mv $(pkg)-$(upstream_version) $(pkg)-$(dfsg_version)
-	rm -fR $(pkg)-$(dfsg_version)/configure/
-	rm -fR $(pkg)-$(dfsg_version)/._Makefile.in
-	rm -fR $(pkg)-$(dfsg_version)/doc/html/
-	rm -fR $(pkg)-$(dfsg_version)/doc/images/
-	rm -fR $(pkg)-$(dfsg_version)/msw/
-	rm -fR $(pkg)-$(dfsg_version)/tests/*.dsp
-	rm -fR $(pkg)-$(dfsg_version)/tests/Debug/
-	rm -fR $(pkg)-$(dfsg_version)/tests/Release/
-	tar cf $(pkg)_$(dfsg_version).orig.tar $(pkg)-$(dfsg_version)
-	xz -zf $(pkg)_$(dfsg_version).orig.tar
-	rm -rf $(pkg)-$(dfsg_version)
-	rm -rf $(pkg)_$(upstream_version).orig.tar.gz
-	mv $(pkg)_$(dfsg_version).orig.tar.xz ../$(pkg)_$(dfsg_version).orig.tar.xz
diff --git a/debian/watch b/debian/watch
index 74d1aa4..a337402 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,3 @@
 version=3
-opts=dversionmangle=s/~ds.*// \
+opts=dversionmangle=s/\~ds$//,repacksuffix=~ds \
 http://www.music.mcgill.ca/~gary/rtmidi/release/rtmidi-(.*)\.tar\.gz

-- 
RtMidi packaging



More information about the pkg-multimedia-commits mailing list