[med-svn] r11282 - trunk/packages/maqview/trunk/debian

Andreas Tille tille at alioth.debian.org
Fri Jun 8 07:14:53 UTC 2012


Author: tille
Date: 2012-06-08 07:14:52 +0000 (Fri, 08 Jun 2012)
New Revision: 11282

Added:
   trunk/packages/maqview/trunk/debian/get-orig-source
Modified:
   trunk/packages/maqview/trunk/debian/changelog
   trunk/packages/maqview/trunk/debian/watch
Log:
Call get-orig-source from watch file


Modified: trunk/packages/maqview/trunk/debian/changelog
===================================================================
--- trunk/packages/maqview/trunk/debian/changelog	2012-06-08 07:13:30 UTC (rev 11281)
+++ trunk/packages/maqview/trunk/debian/changelog	2012-06-08 07:14:52 UTC (rev 11282)
@@ -1,3 +1,9 @@
+maqview (0.2.5-4) UNRELEASED; urgency=low
+
+  * debian/watch: call debian/get-orig-source
+
+ -- Andreas Tille <tille at debian.org>  Fri, 08 Jun 2012 09:13:46 +0200
+
 maqview (0.2.5-3) unstable; urgency=low
 
   * debian/use-dpkg-buildflags.patch: Use build flags from environment

Added: trunk/packages/maqview/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/maqview/trunk/debian/get-orig-source	                        (rev 0)
+++ trunk/packages/maqview/trunk/debian/get-orig-source	2012-06-08 07:14:52 UTC (rev 11282)
@@ -0,0 +1,32 @@
+#!/bin/sh
+# script to download and repack source package of maqview
+# It was intended to remove a copy of zlib which is not
+# a simple straightforeward because of use of internal features
+# Thus this script simply removes the .svn dir for the moment
+
+PKG=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+VERSION=`uscan --verbose --force-download | \
+    grep "Newest version on remote site is .* local version is .*" | \
+    head -n 1 | \
+    sed "s/Newest version on remote site is \([-0-9.]\+\),.*/\1/"`
+
+mkdir -p ../tarballs
+cd ../tarballs
+
+UTAR="${PKG}-${VERSION}.tar.gz"
+mv ../${UTAR} .
+tar -xzf ${UTAR}
+
+cd $PKG
+# It is not possible to simply remove the zlib code because it was used
+# the wrong way using internal implementation features which are changed
+# in current zlib in Debian
+# rm -rf zutil.[ch] zlib.h zconf.h uncompr.c trees.[ch] inftrees.[ch] inflate.[ch] inffixed.h inffast.[ch] infback.c gzio.c deflate.[ch] crc32.[ch] compress.c adler32.c
+# remove useless SVN dir
+rm -rf .svn
+cd ..
+
+mv ${PKG} ${PKG}-${VERSION}
+
+GZIP="--best --no-name" tar -czf "$PKG"_"$VERSION".orig.tar.gz "${PKG}-${VERSION}"
+rm -rf "${PKG}-${VERSION}"


Property changes on: trunk/packages/maqview/trunk/debian/get-orig-source
___________________________________________________________________
Added: svn:executable
   + *

Modified: trunk/packages/maqview/trunk/debian/watch
===================================================================
--- trunk/packages/maqview/trunk/debian/watch	2012-06-08 07:13:30 UTC (rev 11281)
+++ trunk/packages/maqview/trunk/debian/watch	2012-06-08 07:14:52 UTC (rev 11282)
@@ -1,4 +1,4 @@
 version=3
 
-http://sf.net/maq/maqview-([\d\.]+)\.tar\.gz
-
+http://sf.net/maq/maqview-([\d\.]+)\.tar\.gz \
+  debian debian/get-orig-source




More information about the debian-med-commit mailing list