r7967 - in /trunk/libtap-parser-perl: debian/changelog debian/repack.sh debian/watch t/lib/if.pm
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Wed Sep 26 18:55:09 UTC 2007
Author: dmn
Date: Wed Sep 26 18:55:09 2007
New Revision: 7967
URL: http://svn.debian.org/wsvn/?sc=1&rev=7967
Log:
Support repackaging due to license-less t/lib/if.pm. Repackaging is automated by debian/repack.sh, called via uscan
Added:
trunk/libtap-parser-perl/debian/repack.sh (with props)
Removed:
trunk/libtap-parser-perl/t/lib/if.pm
Modified:
trunk/libtap-parser-perl/debian/changelog
trunk/libtap-parser-perl/debian/watch
Modified: trunk/libtap-parser-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libtap-parser-perl/debian/changelog?rev=7967&op=diff
==============================================================================
--- trunk/libtap-parser-perl/debian/changelog (original)
+++ trunk/libtap-parser-perl/debian/changelog Wed Sep 26 18:55:09 2007
@@ -1,6 +1,4 @@
-libtap-parser-perl (0.54-1) UNRELEASED; urgency=low
-
- MISSING LICENSE FOR t/lib/if.pm.
+libtap-parser-perl (0.54+dfsg-1) UNRELEASED; urgency=low
* Initial Release (closes: #444189).
Added: trunk/libtap-parser-perl/debian/repack.sh
URL: http://svn.debian.org/wsvn/trunk/libtap-parser-perl/debian/repack.sh?rev=7967&op=file
==============================================================================
--- trunk/libtap-parser-perl/debian/repack.sh (added)
+++ trunk/libtap-parser-perl/debian/repack.sh Wed Sep 26 18:55:09 2007
@@ -1,0 +1,39 @@
+#!/bin/sh
+# Repackage upstream source to exclude non-distributable files
+# should be called as "repack sh --upstream-source <ver> <downloaded file>
+# (for example, via uscan)
+
+set -e
+set -u
+
+FILE=$3
+PKG=`dpkg-parsechangelog|grep ^Source:|sed 's/^Source: //'`
+VER=`dpkg-parsechangelog|grep ^Version:|sed 's/^Version: //; s/+dfsg-[^-]\+$//'`
+
+printf "\nRepackaging $FILE\n"
+
+DIR=`mktemp -d ./tmpRepackXXXXXX`
+trap "rm -rf $DIR" QUIT INT EXIT
+
+tar xzf $FILE -C $DIR
+
+REPACK=`basename $FILE`
+
+UP_DIR=`ls -1 $DIR`
+
+(
+ set -e
+ set -u
+
+ cd $DIR
+
+ rm -v "$UP_DIR/t/lib/if.pm"
+
+ REPACK_DIR="$PKG-$VER.orig"
+ mv $UP_DIR $REPACK_DIR
+ tar -c $REPACK_DIR | gzip -9 > $REPACK
+)
+
+mv $DIR/$REPACK $FILE
+
+echo "*** $FILE repackaged"
Propchange: trunk/libtap-parser-perl/debian/repack.sh
------------------------------------------------------------------------------
svn:executable = *
Modified: trunk/libtap-parser-perl/debian/watch
URL: http://svn.debian.org/wsvn/trunk/libtap-parser-perl/debian/watch?rev=7967&op=diff
==============================================================================
--- trunk/libtap-parser-perl/debian/watch (original)
+++ trunk/libtap-parser-perl/debian/watch Wed Sep 26 18:55:09 2007
@@ -1,3 +1,4 @@
# format version number, currently 3; this line is compulsory!
version=3
-http://search.cpan.org/dist/TAP-Parser/ .*/TAP-Parser-([\.\d]+)\.(?:tar\.gz|tar|tgz)$
+opts="uversionmangle=s/(?=$)/+dfsg/" \
+http://search.cpan.org/dist/TAP-Parser/ .*/TAP-Parser-([\.\d]+)\.(?:tar\.gz|tar|tgz)$ debian debian/repack.sh
More information about the Pkg-perl-cvs-commits
mailing list