[SCM] marco Debian package branch, master, updated. 3dd747ada0b8f8b83f20bc6052b0aa9dcf9c1b26

Mike Gabriel sunweaver at moszumanska.debian.org
Tue Mar 11 19:42:21 UTC 2014


Gitweb-URL: http://git.debian.org/?p=pkg-mate/marco.git;a=commitdiff;h=95de300

The following commit has been merged in the master branch:
commit 95de30087bc841acd9ef72d162152048e924d37f
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Mar 11 18:04:17 2014 +0100

    Repack upstream tarball and omit non-DFSG (GFDL-1.1) files.
---
 debian/changelog |  2 +-
 debian/rules     | 30 ++++++++++++++++++++++++++++--
 2 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 21ac709..c42bda5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-marco (1.8.0-1) UNRELEASED; urgency=low
+marco (1.8.0+dfsg1-1) UNRELEASED; urgency=low
 
   * New upstream release.
 
diff --git a/debian/rules b/debian/rules
index 666ba31..53179e7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,12 @@
 #!/usr/bin/make -f
 
+PKD   = $(word 1,$(abspath $(dir $(MAKEFILE_LIST))))
+PKG   = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
+UVER  = $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
+DTYPE = +dfsg1
+VER  ?= $(subst $(DTYPE),,$(UVER))
+
+
 %:
 	dh $@
 
@@ -20,5 +27,24 @@ override_dh_strip:
 	dh_strip -pmarco --dbg-package=marco-dbg
 	dh_strip -plibmarco-private0 --dbg-package=libmarco-private0-dbg
 
-get-orig-source:
-	uscan --noconf --force-download --rename --download-current-version --destdir=..
+get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE))
+	@
+
+$(PKG)_$(VER)$(DTYPE).orig.tar.xz:
+	@echo "# Downloading..."
+	uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD)
+	$(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..))
+	@echo "# Extracting..."
+	mkdir $(PKG)-$(VER) \
+	    && tar -xf $(PKG)_$(VER).orig.tar.* --directory $(PKG)-$(VER) --strip-components 1 \
+	    || $(RM) -r $(PKG)-$(VER)
+	@echo "# Cleaning-up..."
+	cd $(PKG)-$(VER) \
+	    && find . -depth -type d -name 'windows' -exec $(RM) -r {} \; -printf 'removed %p
' \
+	    && $(RM) -r -v \
+	        doc/creating_themes
+	$(RM) -v $(PKG)_$(VER).orig.tar.*
+	@echo "# Packing..."
+	find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
+	    | XZ_OPT="-6v" tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
+	    && $(RM) -r "$(PKG)-$(VER)"
\ No newline at end of file

-- 
marco Debian package



More information about the pkg-mate-commits mailing list