[pkg-java] r4378 - trunk/aspectwerkz2/debian

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


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

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


Added: trunk/aspectwerkz2/debian/README.Debian-source
===================================================================
--- trunk/aspectwerkz2/debian/README.Debian-source	                        (rev 0)
+++ trunk/aspectwerkz2/debian/README.Debian-source	2007-10-13 16:07:58 UTC (rev 4378)
@@ -0,0 +1,13 @@
+substance
+=========
+
+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/aspectwerkz2/debian/orig-tar.sh
===================================================================
--- trunk/aspectwerkz2/debian/orig-tar.sh	                        (rev 0)
+++ trunk/aspectwerkz2/debian/orig-tar.sh	2007-10-13 16:07:58 UTC (rev 4378)
@@ -0,0 +1,20 @@
+#!/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
+
+# clean up the upstream tarball
+unzip $3
+tar -c -z -f $TAR --exclude '*.jar*' --exclude '*/docs/*' aspectwerkz-*/
+rm -rf $3 aspectwerkz-*/
+
+# 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/aspectwerkz2/debian/orig-tar.sh
___________________________________________________________________
Name: svn:executable
   + *

Modified: trunk/aspectwerkz2/debian/rules
===================================================================
--- trunk/aspectwerkz2/debian/rules	2007-10-13 14:58:19 UTC (rev 4377)
+++ trunk/aspectwerkz2/debian/rules	2007-10-13 16:07:58 UTC (rev 4378)
@@ -15,5 +15,6 @@
 
 DEB_ANT_BUILD_TARGET := dist # javadocs
 
-#clean::
-#	-rm -rf build
+get-orig-source:
+	uscan --upstream-version 0 --rename
+

Added: trunk/aspectwerkz2/debian/watch
===================================================================
--- trunk/aspectwerkz2/debian/watch	                        (rev 0)
+++ trunk/aspectwerkz2/debian/watch	2007-10-13 16:07:58 UTC (rev 4378)
@@ -0,0 +1,7 @@
+# watch control file for uscan
+version=2
+
+opts=dversionmangle=s/\.dfsg\.\d+$// \
+  http://aspectwerkz.codehaus.org/releases.html .*/aspectwerkz-([\d.]+).zip.* \
+  debian debian/orig-tar.sh
+




More information about the pkg-java-commits mailing list