[med-svn] r17683 - trunk/packages/king/trunk/debian

Andreas Tille tille at moszumanska.debian.org
Mon Aug 11 07:30:44 UTC 2014


Author: tille
Date: 2014-08-11 07:30:43 +0000 (Mon, 11 Aug 2014)
New Revision: 17683

Removed:
   trunk/packages/king/trunk/debian/get-orig-source
   trunk/packages/king/trunk/debian/king.lintian-overrides
Modified:
   trunk/packages/king/trunk/debian/changelog
   trunk/packages/king/trunk/debian/copyright
   trunk/packages/king/trunk/debian/rules
   trunk/packages/king/trunk/debian/watch
Log:
Remove unneeded binaries from source tarball (d/get-orig-source deleted)


Modified: trunk/packages/king/trunk/debian/changelog
===================================================================
--- trunk/packages/king/trunk/debian/changelog	2014-08-10 22:50:30 UTC (rev 17682)
+++ trunk/packages/king/trunk/debian/changelog	2014-08-11 07:30:43 UTC (rev 17683)
@@ -1,4 +1,4 @@
-king (2.21.120420-3) UNRELEASED; urgency=low
+king (2.21.120420+dfsg-1) unstable; urgency=low
 
   * Add desktop file (thanks for the patch to Gökçen Eraslan
     <gokcen.eraslan at gmail.com>)
@@ -6,6 +6,8 @@
   * cme fix dpkg-control
   * Remove libjogl-java Build-Dependency
     Closes: #706922
+  * d/copyright,d/watch,d/rules: Remove unneeded binaries from source tarball
+    (d/get-orig-source deleted)
 
  -- Andreas Tille <tille at debian.org>  Sun, 10 Aug 2014 19:37:33 +0200
 

Modified: trunk/packages/king/trunk/debian/copyright
===================================================================
--- trunk/packages/king/trunk/debian/copyright	2014-08-10 22:50:30 UTC (rev 17682)
+++ trunk/packages/king/trunk/debian/copyright	2014-08-11 07:30:43 UTC (rev 17683)
@@ -2,6 +2,21 @@
 Upstream-Name: KiNG
 Upstream-Contact: Vincent B. Chen <vincent.chen at duke.edu>
 Source: http://kinemage.biochem.duke.edu/software/king.php
+Files-Excluded: *.jar
+                *.class
+                javadocs
+                lib
+                king*/installer/king
+                king*/installer/linux*
+                king*/installer/win*
+                king*/installer/*.gif
+                king*/installer/KiNG*
+                king*/installer/*.indigo
+                king*/installer/.xvpics
+                extratools*/doc/work/tools-manual.pdf
+                king*/doc/work/king-manual.pdf
+                king*/doc/work/format-kinemage.pdf
+                king*/1.x_src
 
 Files: *
 Copyright: 2002-2011 Ian W. Davis <ian.w.davis at gmail.com>,

Deleted: trunk/packages/king/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/king/trunk/debian/get-orig-source	2014-08-10 22:50:30 UTC (rev 17682)
+++ trunk/packages/king/trunk/debian/get-orig-source	2014-08-11 07:30:43 UTC (rev 17683)
@@ -1,62 +0,0 @@
-#!/bin/sh
-# get source for king and strip binary JARs
-
-set -e
-NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
-
-if ! echo $@ | grep -q upstream-version ; then
-    VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
-else
-    VERSION=`echo $@ | sed "s?^.*--upstream-version \([0-9.]\+\) .*${name}.*?\1?"`
-    if echo "$VERSION" | grep -q "upstream-version" ; then
-        echo "Unable to parse version number"
-        exit
-    fi
-fi
-
-TARDIR=${NAME}-${VERSION}
-
-mkdir -p ../tarballs/$TARDIR
-cd ../tarballs/$TARDIR
-unzip -q ../../${NAME}.${VERSION}.src.zip
-
-# Remove useless JAR and CLASS files
-find . -name "*.jar" -delete
-find . -name "*.class" -delete
-
-# Remove javadocs which could be easily recreated in the build
-# process using
-#  ant -buildfile king/build.xml dist-src
-# Please note that you need to activate the quilt patch
-#  debian/patches/delete_mac_specific_file.patch
-# in the series file to do so
-rm -rf javadocs
-
-# Remove useless dirs
-rm -rf lib
-find . -name .xvpics | xargs rm -rf
-
-# Clean up binary installer code
-rm -rf king-*-src/installer/win* king-*-src/installer/linux*
-
-# once we are cleaning up the tarball anyway it makes sense to remove useless file duplicates
-rm -rf extratools-*-src/doc/work/tools-manual.pdf \
-       king-*-src/doc/work/king-manual.pdf \
-       king-*-src/doc/work/format-kinemage.pdf
-rm -rf king-*-src/installer/kingicon-orig.png \
-       king-*-src/installer/kingicon[12346][02468].png \
-       king-*-src/installer/kingicon[13][26].gif
-
-# there is only no point in keeping copies of old versions of the code
-rm -rf king-*-src/1.x_src
-
-# as king-*-src/BUILD.html suggests you should de-versionify the single components
-# by copying the directories to generic names.  This turns out to be a burden inside
-# debian/rules and thus we simply do it here in the orig-tar generation step
-for dir in `find . -mindepth 1 -maxdepth 1 -type d -name "[a-z]*-*-src"` ; do
-  ln -s $dir `echo $dir | sed 's/-[^-]\+-src$//'`
-done
-
-cd ..
-GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -czf "$NAME"_"$VERSION".orig.tar.gz "${TARDIR}"
-rm -rf "$TARDIR"

Deleted: trunk/packages/king/trunk/debian/king.lintian-overrides
===================================================================
--- trunk/packages/king/trunk/debian/king.lintian-overrides	2014-08-10 22:50:30 UTC (rev 17682)
+++ trunk/packages/king/trunk/debian/king.lintian-overrides	2014-08-11 07:30:43 UTC (rev 17683)
@@ -1,2 +0,0 @@
-# When using jarwrapper the JAR file should be executable, shouldn't it?
-king: executable-not-elf-or-script usr/share/java/king-2.21.120420.jar
\ No newline at end of file

Modified: trunk/packages/king/trunk/debian/rules
===================================================================
--- trunk/packages/king/trunk/debian/rules	2014-08-10 22:50:30 UTC (rev 17682)
+++ trunk/packages/king/trunk/debian/rules	2014-08-11 07:30:43 UTC (rev 17683)
@@ -38,3 +38,6 @@
 
 override_dh_compress:
 	dh_compress --exclude=.pdf
+
+get-orig-source:
+	uscan --verbose --force-download --repack --compress xz

Modified: trunk/packages/king/trunk/debian/watch
===================================================================
--- trunk/packages/king/trunk/debian/watch	2014-08-10 22:50:30 UTC (rev 17682)
+++ trunk/packages/king/trunk/debian/watch	2014-08-11 07:30:43 UTC (rev 17683)
@@ -1,5 +1,4 @@
-# Compulsory line, this is a version 3 file
 version=3
 
-http://kinemage.biochem.duke.edu/downloads/software/king/king\.([.0-9]+)\.src\.zip \
-   debian debian/get-orig-source
+opts="uversionmangle=s/$/+dfsg/" \
+  http://kinemage.biochem.duke.edu/downloads/software/king/king\.([.0-9]+)\.src\.zip




More information about the debian-med-commit mailing list