Commit 0496e2cc authored by Stefano Rivera's avatar Stefano Rivera

Revert Vcs-Browser change; Move DFSG repacking into a script called by uscan.

parent 7f96e02a
......@@ -11,7 +11,7 @@ pyfiglet (0.6+dfsg-1) UNRELEASED; urgency=low
* Updated debian-defaults.diff.
* Install wrapper with dh_install, as upstream has a setup.py.
* Build-Depend on python-setuptools and clean up egg-info.
* Update Vcs-Browser link for alioth changes.
* Move DFSG repacking into a script called by uscan.
-- Stefano Rivera <stefanor@debian.org> Mon, 30 May 2011 21:05:33 +0200
......
......@@ -11,7 +11,7 @@ X-Python-Version: >= 2.5
Standards-Version: 3.9.2
Homepage: http://sourceforge.net/projects/pyfiglet/
Vcs-Svn: svn://svn.debian.org/python-modules/packages/pyfiglet/trunk/
Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/pyfiglet/trunk/
Vcs-Browser: http://svn.debian.org/viewvc/python-modules/packages/pyfiglet/trunk/
Package: python-pyfiglet
Architecture: all
......
#!/bin/sh
set -eu
VER=""
while [ $# -gt 1 ]; do
case "$1" in
"--upstream-version")
VER="$2"
shift
;;
*)
echo "Unknown parameter $1" >&2
exit 1
;;
esac
shift
done
INFILE="$1"
shift
echo "Repacking source to remove non-free files..."
mkdir "pyfiglet-$VER+dfsg.orig"
tar -x --exclude=pyfiglet/fonts --exclude=figfont.txt --exclude=.gitignore \
--strip-component=1 -C "pyfiglet-$VER+dfsg.orig" -f "$INFILE"
GZIP=--best tar -cz --owner root --group root --mode a+rX \
-f "pyfiglet_$VER+dfsg.orig.tar.gz" "pyfiglet-$VER+dfsg.orig"
rm -f "$INFILE"
rm -rf "pyfiglet-$VER+dfsg.orig"
......@@ -2,15 +2,3 @@
%:
dh $@ --with python2
get-orig-source:
set -e; \
VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^+]+).*,\1,p'); \
uscan --noconf --force-download --rename --download-version=$$VER --destdir=.; \
mkdir pyfiglet-$$VER+dfsg.orig; \
tar -x --exclude=pyfiglet/fonts --exclude=figfont.txt --exclude=.gitignore \
--strip-component=1 -C pyfiglet-$$VER+dfsg.orig -f pyfiglet_$$VER.orig.tar.gz; \
GZIP=--best tar -cz --owner root --group root --mode a+rX \
-f pyfiglet_$$VER+dfsg.orig.tar.gz pyfiglet-$$VER+dfsg.orig; \
rm -f pyfiglet_$$VER.orig.tar.gz; \
rm -rf pyfiglet-$$VER+dfsg.orig
version=3
opts=dversionmangle=s/\+dfsg// \
http://githubredir.debian.net/github/pwaller/pyfiglet/(.*).tar.gz
http://githubredir.debian.net/github/pwaller/pyfiglet/(.*).tar.gz \
debian debian/repack.sh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment