r34280 - in /trunk/libalien-wxwidgets-perl/debian: changelog repack.sh watch
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Tue Apr 28 19:54:01 UTC 2009
Author: dmn
Date: Tue Apr 28 19:53:56 2009
New Revision: 34280
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=34280
Log:
TODO: add README.source documenting the repackaging, mention
* add debian/repack.sh for repackaging upstream sources
+ this is due to unlicensed source files in inc/src as well as the
resulting inc/bin/patch.exe
+ hook debian/repack.sh to debian/watch
Added:
trunk/libalien-wxwidgets-perl/debian/repack.sh (with props)
Modified:
trunk/libalien-wxwidgets-perl/debian/changelog
trunk/libalien-wxwidgets-perl/debian/watch
Modified: trunk/libalien-wxwidgets-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libalien-wxwidgets-perl/debian/changelog?rev=34280&op=diff
==============================================================================
--- trunk/libalien-wxwidgets-perl/debian/changelog (original)
+++ trunk/libalien-wxwidgets-perl/debian/changelog Tue Apr 28 19:53:56 2009
@@ -1,8 +1,6 @@
-libalien-wxwidgets-perl (0.42-2) UNRELEASED; urgency=low
+libalien-wxwidgets-perl (0.42+dfsg-1) UNRELEASED; urgency=low
- TODO: repack upsteram removing inc/src (has files without a license) and
- inc/patch.exe (becomes source-less); chain the repackaging script in
- debian/watch, add README.source documenting the repackaging, mention
+ TODO: add README.source documenting the repackaging, mention
it in debian/copyright
* drop version from libextutils-cbuilder-perl. The version provided by
@@ -15,8 +13,12 @@
+ add "Copyright" in addition to "(C)" in debian/* part
+ complete copyright/licensing information for all files in inc/
* watch: do not limit upstream source location to its current author
+ * add debian/repack.sh for repackaging upstream sources
+ + this is due to unlicensed source files in inc/src as well as the
+ resulting inc/bin/patch.exe
+ + hook debian/repack.sh to debian/watch
- -- Damyan Ivanov <dmn at debian.org> Tue, 28 Apr 2009 10:08:07 +0300
+ -- Damyan Ivanov <dmn at debian.org> Tue, 28 Apr 2009 22:50:13 +0300
libalien-wxwidgets-perl (0.42-1) unstable; urgency=low
Added: trunk/libalien-wxwidgets-perl/debian/repack.sh
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libalien-wxwidgets-perl/debian/repack.sh?rev=34280&op=file
==============================================================================
--- trunk/libalien-wxwidgets-perl/debian/repack.sh (added)
+++ trunk/libalien-wxwidgets-perl/debian/repack.sh Tue Apr 28 19:53:56 2009
@@ -1,0 +1,42 @@
+#!/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
+
+VER="$2"
+FILE="$3"
+DVER="${VER}+dfsg"
+PKG=`dpkg-parsechangelog|grep ^Source:|sed 's/^Source: //'`
+
+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 -vr $UP_DIR/inc/src/ $UP_DIR/inc/bin/patch.exe
+
+ REPACK_DIR="$PKG-$VER.orig"
+ mv $UP_DIR $REPACK_DIR
+ tar -c $REPACK_DIR | gzip -n -9 > $REPACK
+)
+
+mv $DIR/$REPACK $FILE
+
+echo "*** $FILE repackaged"
+
+prename --verbose --force "s/$VER/$DVER/" $FILE
Propchange: trunk/libalien-wxwidgets-perl/debian/repack.sh
------------------------------------------------------------------------------
svn:executable = *
Modified: trunk/libalien-wxwidgets-perl/debian/watch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libalien-wxwidgets-perl/debian/watch?rev=34280&op=diff
==============================================================================
--- trunk/libalien-wxwidgets-perl/debian/watch (original)
+++ trunk/libalien-wxwidgets-perl/debian/watch Tue Apr 28 19:53:56 2009
@@ -7,5 +7,7 @@
version=3
# <Webpage URL> <string match>
-http://search.cpan.org/dist/Alien-wxWidgets/ .*/Alien-wxWidgets-(.*)\.tar\.gz
+opts=dversionmangle=s/+dfsg[.\d]*// \
+http://search.cpan.org/dist/Alien-wxWidgets/ .*/Alien-wxWidgets-(.*)\.tar\.gz \
+ debian sh debian/repack.sh
More information about the Pkg-perl-cvs-commits
mailing list