[DRE-commits] [SCM] ruby-mkrf.git branch, master, updated. upstream/0.2.3-16-gc3e579d

Cédric Boutillier cedric.boutillier at gmail.com
Thu Dec 15 23:13:04 UTC 2011


The following commit has been merged in the master branch:
commit 5fe40591579715fb2cf67adeae8a5f04e0fe0fa1
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date:   Thu Dec 15 18:22:46 2011 +0100

    prepare repack to exclude test/fixtures/some_binary

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..063fa7e
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,6 @@
+This package uses the 3.0 quilt source format.
+
+The source has been repacked to exclude the file test/fixtures/some_binary,
+which is a executable built for the i386 architecture, with no source
+available. It is replaced with an emply file created with the executable bit
+set just before tests are run, and deleted right afterwards.
diff --git a/debian/changelog b/debian/changelog
index 0639796..2413986 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
-ruby-mkrf (0.2.3-1) UNRELEASED; urgency=low
+ruby-mkrf (0.2.3+dfsg-1) UNRELEASED; urgency=low
 
   * Initial release (Closes: #584886)
+  * repack to remove binary code in test/ directory
 
  -- Cédric Boutillier <cedric.boutillier at gmail.com>  Tue, 13 Dec 2011 21:20:51 +0100
diff --git a/debian/copyright b/debian/copyright
index 4dcb30b..c28f02d 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,6 +1,9 @@
 Format: http://dep.debian.net/deps/dep5
 Upstream-Name: mkrf
 Source: http://mkrf.rubyforge.org/
+Comment: the source has been repacked to exclude the binary file
+ test/fixtures/some_binary, which is an executable for i386, distributed
+ without source, and not needed for a working package anyway.
 
 Files: *
 Copyright: 2006 Kevin Clark <kevin.clark at gmail.com>
diff --git a/debian/rules b/debian/rules
index 935577f..c479e78 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,4 +24,14 @@ override_dh_auto_clean:
 	done
 	dh_auto_clean
 
-
+DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's/^Version: ([^+]+).*/\1/p')
+get-orig-source:
+	uscan --noconf --force-download --rename --download-current-version --destdir=.
+	rm -rf ruby-mkrf-$(DEB_UPSTREAM_VERSION)
+	tar -xf ruby-mkrf_$(DEB_UPSTREAM_VERSION).orig.tar.gz
+	rm ruby-mkrf_$(DEB_UPSTREAM_VERSION).orig.tar.gz
+	rm mkrf-$(DEB_UPSTREAM_VERSION)/test/fixtures/some_binary
+	mv mkrf-$(DEB_UPSTREAM_VERSION) ruby-mkrf-$(DEB_UPSTREAM_VERSION).orig
+	GZIP=--best tar -cz --owner root --group root --mode a+rX -f \
+	     ../ruby-mkrf_$(DEB_UPSTREAM_VERSION)+dfsg.orig.tar.gz ruby-mkrf-$(DEB_UPSTREAM_VERSION).orig
+	rm -r ruby-mkrf-$(DEB_UPSTREAM_VERSION).orig
diff --git a/debian/watch b/debian/watch
index b7050c6..036e5c8 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,3 @@
 version=3
-http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/mkrf .*/mkrf-(.*).tar.gz
+opts=dversionmangle=s/\+dfsg// \
+  http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/mkrf .*/mkrf-(.*).tar.gz

-- 
ruby-mkrf.git



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