[pkg-java] r4383 - trunk/cglib2.1/debian

twerner at alioth.debian.org twerner at alioth.debian.org
Sat Oct 13 17:16:07 UTC 2007


Author: twerner
Date: 2007-10-13 17:16:07 +0000 (Sat, 13 Oct 2007)
New Revision: 4383

Added:
   trunk/cglib2.1/debian/README.Debian-source
   trunk/cglib2.1/debian/orig-tar.sh
Modified:
   trunk/cglib2.1/debian/rules
   trunk/cglib2.1/debian/watch
Log:
* implement get-orig-source in debian/rules
* add debian/README.Debian-source


Added: trunk/cglib2.1/debian/README.Debian-source
===================================================================
--- trunk/cglib2.1/debian/README.Debian-source	                        (rev 0)
+++ trunk/cglib2.1/debian/README.Debian-source	2007-10-13 17:16:07 UTC (rev 4383)
@@ -0,0 +1,10 @@
+The upstream supplied source package contains binary jar files and
+pre-built documentation. Currently no clean source distribution
+exists. Therefore, the upstream sources were modified to comply with
+the Debian Free Software Guidelines.
+
+Use the rules/get-orig-source target to create the orig.tar.gz.
+For more details on repackaging of upstream sources please see the 
+debian/orig-tar.sh file.
+
+-- Torsten Werner <twerner at debian.org>  Fri Oct 12 19:17:47 CEST 2007

Added: trunk/cglib2.1/debian/orig-tar.sh
===================================================================
--- trunk/cglib2.1/debian/orig-tar.sh	                        (rev 0)
+++ trunk/cglib2.1/debian/orig-tar.sh	2007-10-13 17:16:07 UTC (rev 4383)
@@ -0,0 +1,22 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+
+VERSION=$(dpkg-parsechangelog | sed -ne 's,^Version: \(.*\)-.*,\1,p')
+SOURCE=$(dpkg-parsechangelog | sed -ne 's,Source: \(.*\),\1,p')
+TAR=../${SOURCE}_${VERSION}.orig.tar.gz
+DIR=cglib-$VERSION
+
+# clean up the upstream tarball
+mkdir $DIR
+(cd $DIR && jar xf ../$3)
+tar -c -z -f $TAR --exclude '*/lib/*' $DIR
+rm -rf $3 $DIR
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+  . .svn/deb-layout
+  mv $TAR $origDir
+  echo "moved $TAR to $origDir"
+fi
+


Property changes on: trunk/cglib2.1/debian/orig-tar.sh
___________________________________________________________________
Name: svn:executable
   + *

Modified: trunk/cglib2.1/debian/rules
===================================================================
--- trunk/cglib2.1/debian/rules	2007-10-13 17:14:59 UTC (rev 4382)
+++ trunk/cglib2.1/debian/rules	2007-10-13 17:16:07 UTC (rev 4383)
@@ -15,3 +15,7 @@
 
 #clean::
 #	-rm -rf build
+
+get-orig-source:
+	uscan --upstream-version 0 --rename
+

Modified: trunk/cglib2.1/debian/watch
===================================================================
--- trunk/cglib2.1/debian/watch	2007-10-13 17:14:59 UTC (rev 4382)
+++ trunk/cglib2.1/debian/watch	2007-10-13 17:16:07 UTC (rev 4383)
@@ -4,4 +4,5 @@
 
 # Site Version Script
 opts=dversionmangle=s/\.dfsg\.\d+$// \
-  http://heanet.dl.sourceforge.net/sourceforge/cglib/cglib-(.*)\.src\.tgz debian uupdate
+  http://heanet.dl.sourceforge.net/sourceforge/cglib/cglib-src-([\d_.]+)\.jar \
+  debian debian/orig-tar.sh




More information about the pkg-java-commits mailing list