[Pkg-cli-libs-commits] r4090 - in /packages/taglib-sharp/trunk/debian: changelog rules

meebey at users.alioth.debian.org meebey at users.alioth.debian.org
Wed Mar 4 20:32:48 UTC 2009


Author: meebey
Date: Wed Mar  4 20:32:47 2009
New Revision: 4090

URL: http://svn.debian.org/wsvn/pkg-cli-libs/?sc=1&rev=4090
Log:
  * DFSG version of taglib-sharp 2.0.3.2
    + Deleted non-free and undistributable sound files in tests/samples/ from
      the tarball.

  * debian/rules:
    + Implemented get-orig-source target with dfsg-ing part.


Modified:
    packages/taglib-sharp/trunk/debian/changelog
    packages/taglib-sharp/trunk/debian/rules

Modified: packages/taglib-sharp/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-cli-libs/packages/taglib-sharp/trunk/debian/changelog?rev=4090&op=diff
==============================================================================
--- packages/taglib-sharp/trunk/debian/changelog (original)
+++ packages/taglib-sharp/trunk/debian/changelog Wed Mar  4 20:32:47 2009
@@ -1,4 +1,8 @@
-taglib-sharp (2.0.3.2-1) unstable; urgency=low
+taglib-sharp (2.0.3.2+dfsg-1) unstable; urgency=low
+
+  * DFSG version of taglib-sharp 2.0.3.2
+    + Deleted non-free and undistributable sound files in tests/samples/ from
+      the tarball.
 
   [ Chow Loong Jin ]
   * New upstream release 
@@ -29,8 +33,10 @@
       code which are not shipping anyhow.
   * debian/watch:
     + Fixed regex.
+  * debian/rules:
+    + Implemented get-orig-source target with dfsg-ing part.
 
- -- Chow Loong Jin <hyperair at gmail.com>  Fri, 27 Feb 2009 06:16:24 +0800
+ -- Mirco Bauer <meebey at debian.org>  Wed, 04 Mar 2009 21:22:34 +0100
 
 taglib-sharp (2.0.3.1-1) experimental; urgency=low
 

Modified: packages/taglib-sharp/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-cli-libs/packages/taglib-sharp/trunk/debian/rules?rev=4090&op=diff
==============================================================================
--- packages/taglib-sharp/trunk/debian/rules (original)
+++ packages/taglib-sharp/trunk/debian/rules Wed Mar  4 20:32:47 2009
@@ -7,11 +7,19 @@
 # This is for the .wapi directory for Mono.
 export MONO_SHARED_DIR=$(CURDIR)
 
+MAKEFILE = $(firstword $(MAKEFILE_LIST))
+DEBIAN_DIR = $(dir $(MAKEFILE))
+SOURCE_DIR = $(DEBIAN_DIR)/..
+
+DEB_VERSION = $(shell dpkg-parsechangelog -l$(DEBIAN_DIR)/changelog | grep ^Version | cut -d" " -f2)   
+DEB_SOURCE_NAME = $(shell dpkg-parsechangelog -l$(DEBIAN_DIR)/changelog | grep ^Source | cut -d" " -f2)
+VERSION = $(shell echo $(DEB_VERSION) | cut -d"-" -f1 | sed 's/+dfsg.*//')
+
 # provide patch and unpatch targets
 include /usr/share/dpatch/dpatch.make
 
 DEB_API_VERSION = 2.0.3.2
-ABIVERSION = 2.0
+DEB_ABI_VERSION = 2.0
 
 configure: configure-stamp
 configure-stamp: patch-stamp
@@ -52,11 +60,11 @@
 
 	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
 	
-	mkdir -p debian/tmp/usr/lib/cli/taglib-sharp-$(ABIVERSION) debian/tmp/usr/share/pkgconfig
-	cp src/taglib-sharp.dll debian/tmp/usr/lib/cli/taglib-sharp-$(ABIVERSION)/
-	cp src/taglib-sharp.dll.mdb debian/tmp/usr/lib/cli/taglib-sharp-$(ABIVERSION)/
-	cp src/policy.2.0.taglib-sharp.dll debian/tmp/usr/lib/cli/taglib-sharp-$(ABIVERSION)/
-	cp src/policy.2.0.taglib-sharp.config debian/tmp/usr/lib/cli/taglib-sharp-$(ABIVERSION)/
+	mkdir -p debian/tmp/usr/lib/cli/taglib-sharp-$(DEB_ABI_VERSION) debian/tmp/usr/share/pkgconfig
+	cp src/taglib-sharp.dll debian/tmp/usr/lib/cli/taglib-sharp-$(DEB_ABI_VERSION)/
+	cp src/taglib-sharp.dll.mdb debian/tmp/usr/lib/cli/taglib-sharp-$(DEB_ABI_VERSION)/
+	cp src/policy.2.0.taglib-sharp.dll debian/tmp/usr/lib/cli/taglib-sharp-$(DEB_ABI_VERSION)/
+	cp src/policy.2.0.taglib-sharp.config debian/tmp/usr/lib/cli/taglib-sharp-$(DEB_ABI_VERSION)/
 
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 	find debian/tmp -type f -name "*.mdb" -delete
@@ -82,5 +90,25 @@
 	dh_builddeb
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
 
+get-orig-source:
+	uscan \
+		--package $(DEB_SOURCE_NAME) \
+		--watchfile $(DEBIAN_DIR)/watch \
+		--upstream-version $(VERSION) \
+		--download-version $(VERSION) \
+		--destdir . \
+		--force-download \
+		--rename \
+		--repack
+	if [ -d $(DEB_SOURCE_NAME)-$(VERSION) ]; then \
+		echo "$(DEB_SOURCE_NAME)-$(VERSION) is in the way, bailing out!"; \
+		exit 1; \
+	fi
+	tar -xzf $(DEB_SOURCE_NAME)_$(VERSION).orig.tar.gz
+	rm $(DEB_SOURCE_NAME)_$(VERSION).orig.tar.gz
+	rm -r $(DEB_SOURCE_NAME)-$(VERSION)/tests/samples/
+	tar -czf $(DEB_SOURCE_NAME)_$(VERSION)+dfsg.orig.tar.gz $(DEB_SOURCE_NAME)-$(VERSION)
+	rm -r $(DEB_SOURCE_NAME)-$(VERSION)
+
+.PHONY: build clean binary-indep binary-arch binary install get-orig-source




More information about the Pkg-cli-libs-commits mailing list