[DRE-commits] r6070 - trunk/coderay/debian

Jérémy Lal kapouer-guest at alioth.debian.org
Sun Feb 20 19:56:43 UTC 2011


Author: kapouer-guest
Date: 2011-02-20 19:56:39 +0000 (Sun, 20 Feb 2011)
New Revision: 6070

Modified:
   trunk/coderay/debian/rules
Log:
get-orig-source repacks and fixes upstream tarball using uscan.

Modified: trunk/coderay/debian/rules
===================================================================
--- trunk/coderay/debian/rules	2011-02-20 19:56:17 UTC (rev 6069)
+++ trunk/coderay/debian/rules	2011-02-20 19:56:39 UTC (rev 6070)
@@ -27,3 +27,15 @@
 	mv $(CURDIR)/debian/libcoderay-ruby1.9.1/usr/bin/coderay* $(CURDIR)/debian/coderay/usr/bin/
 	rmdir $(CURDIR)/debian/libcoderay-ruby1.9.1/usr/bin
 	rm  $(CURDIR)/debian/libcoderay-ruby1.9.1/usr/lib/ruby/1.9.1/README
+
+# upstream tarball contains files with no mtime
+get-orig-source:
+	uscan --noconf --force-download --download-current-version
+	mkdir coderay-$(DEB_UPSTREAM_VERSION)
+	tar -C coderay-$(DEB_UPSTREAM_VERSION) --extract -f ../coderay-$(DEB_UPSTREAM_VERSION).tar.gz
+	find coderay-$(DEB_UPSTREAM_VERSION) -exec touch '{}' \;
+	rm ../coderay-$(DEB_UPSTREAM_VERSION).tar.gz
+	GZIP=--best tar -cz --owner root --group root --mode a+rX \
+		-f ../coderay-$(DEB_UPSTREAM_VERSION).tar.gz \
+		coderay-$(DEB_UPSTREAM_VERSION)
+	rm -r coderay-$(DEB_UPSTREAM_VERSION)




More information about the Pkg-ruby-extras-commits mailing list