[libcommons-validator-java] 02/09: Use XZ compression for the upstream tarball

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Sun Dec 6 22:38:49 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-validator-java.

commit 9d19d8d88522f7d0fb1b007167b1ab7783ae3aa5
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Sun Dec 6 23:17:21 2015 +0100

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

diff --git a/debian/changelog b/debian/changelog
index 1eae5c3..0656f5d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 libcommons-validator-java (1:1.4.1-2) UNRELEASED; urgency=medium
 
   * Build with the DH sequencer instead of CDBS
+  * Use XZ compression for the upstream tarball
 
  -- Emmanuel Bourg <ebourg at apache.org>  Sun, 06 Dec 2015 23:04:14 +0100
 
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..13d3c4e
--- /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 "VALIDATOR_$VERSION" | sed -re's,\.,_,g')
+
+svn export http://svn.apache.org/repos/asf/commons/proper/validator/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 5af3123..4dd604e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,4 +9,4 @@ override_dh_installchangelogs:
 	dh_installchangelogs RELEASE-NOTES.txt
 
 get-orig-source:
-	uscan --download-current-version --force-download --rename
+	uscan --download-current-version --force-download --no-symlink
diff --git a/debian/watch b/debian/watch
index 96fd05d..cafdf6c 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,4 @@
 version=3
-http://archive.apache.org/dist/commons/validator/source/ commons-validator-(.*)-src\.tar\.gz
+opts="uversionmangle=s/_/./g" \
+  http://svn.apache.org/viewvc/commons/proper/validator/tags/ VALIDATOR_([\d_]*)/ \
+  debian debian/orig-tar.sh

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



More information about the pkg-java-commits mailing list