[libcommons-collections4-java] 02/06: Use XZ compression for the upstream tarball

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Sun Dec 6 21:54:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository libcommons-collections4-java.

commit 65460af0990b994ae3e135b851295bdd5ebbe3d5
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Sun Dec 6 22:31:59 2015 +0100

    Use XZ compression for the upstream tarball
---
 debian/changelog   |  1 +
 debian/orig-tar.sh | 13 +++++++++++++
 debian/rules       |  2 +-
 debian/watch       |  5 +++--
 4 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ef8cdba..daae7f0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 libcommons-collections4-java (4.0-2) UNRELEASED; urgency=medium
 
   * Standards-Version updated to 3.9.6 (no changes)
+  * Use XZ compression for the upstream tarball
   * Moved the package to Git
 
  -- Emmanuel Bourg <ebourg at apache.org>  Sun, 06 Dec 2015 22:11:35 +0100
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..b318e75
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+PACKAGE=$(dpkg-parsechangelog -S Source)
+VERSION=$2
+TAR=../${PACKAGE}_${VERSION}.orig.tar.xz
+DIR=${PACKAGE}_${VERSION}
+TAG=$(echo "COLLECTIONS_$VERSION" | sed -re's,\.,_,')
+
+svn export http://svn.apache.org/repos/asf/commons/proper/collections/tags/${TAG} $DIR
+XZ_OPT=--best tar -c -J -f $TAR $DIR
+rm -rf $DIR ../$TAG
diff --git a/debian/rules b/debian/rules
index 8bd2227..1af20bf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,4 +8,4 @@ JAVA_HOME := /usr/lib/jvm/default-java
 DEB_INSTALL_CHANGELOGS_ALL := RELEASE-NOTES.txt
 
 get-orig-source:
-	uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
+	uscan --download-current-version --force-download --no-symlink
diff --git a/debian/watch b/debian/watch
index 9e97963..2620799 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,4 @@
 version=3
-opts="uversionmangle=s/-(alpha|beta)/~$1/" \
-http://archive.apache.org/dist/commons/collections/source/ commons-collections4-(.*)-src.tar.gz
+opts="uversionmangle=s/_/./" \
+  http://svn.apache.org/viewvc/commons/proper/collections/tags/ COLLECTIONS_([\d_]*)/ \
+  debian debian/orig-tar.sh

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libcommons-collections4-java.git



More information about the pkg-java-commits mailing list