[DebianGIS-dev] r1137 - packages/gpsdrive/trunk/debian

nd-guest at alioth.debian.org nd-guest at alioth.debian.org
Sat Sep 29 16:32:31 UTC 2007


Author: nd-guest
Date: 2007-09-29 16:32:30 +0000 (Sat, 29 Sep 2007)
New Revision: 1137

Modified:
   packages/gpsdrive/trunk/debian/changelog
   packages/gpsdrive/trunk/debian/copyright
   packages/gpsdrive/trunk/debian/rules
Log:
* Remove debian dir from upstream tarball.
  Added get-orig-source target to debian/rules.


Modified: packages/gpsdrive/trunk/debian/changelog
===================================================================
--- packages/gpsdrive/trunk/debian/changelog	2007-09-29 13:44:27 UTC (rev 1136)
+++ packages/gpsdrive/trunk/debian/changelog	2007-09-29 16:32:30 UTC (rev 1137)
@@ -1,9 +1,12 @@
 gpsdrive (2.10~pre4-1) UNRELEASED; urgency=low
 
   * New upstream release.
-  * Create map-icon packages
+  * Split the package to lower dependencies (-scripts) and 
+    disk space (map-icons).
+  * Repackage upstream tarball to remove the debian/ dir.
+    Added get-orig-source target to debian/rules.
 
- -- Andreas Putzo <andreas at putzo.net>  Sat, 15 Sep 2007 20:17:07 +0000
+ -- Andreas Putzo <andreas at putzo.net>  Sat, 29 Sep 2007 16:23:17 +0000
 
 gpsdrive (2.10~pre2-2) unstable; urgency=low
 

Modified: packages/gpsdrive/trunk/debian/copyright
===================================================================
--- packages/gpsdrive/trunk/debian/copyright	2007-09-29 13:44:27 UTC (rev 1136)
+++ packages/gpsdrive/trunk/debian/copyright	2007-09-29 16:32:30 UTC (rev 1137)
@@ -4,6 +4,7 @@
 The current Debian Maintainer is the Debian GIS Team <pkg-grass-devel at lists.alioth.debian.org>.
 
 It was downloaded from http://gpsdrive.de/packages/gpsdrive-2.10pre4.tar.gz
+The debian/ dir has been removed from the tarball.
 
 Upstream Authors: 
 

Modified: packages/gpsdrive/trunk/debian/rules
===================================================================
--- packages/gpsdrive/trunk/debian/rules	2007-09-29 13:44:27 UTC (rev 1136)
+++ packages/gpsdrive/trunk/debian/rules	2007-09-29 16:32:30 UTC (rev 1137)
@@ -8,6 +8,10 @@
 
 DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_VERSION := $(shell dpkg-parsechangelog |egrep  '^Version:' | cut -f 2 -d ' ')
+DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-)
+DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
+UPSTREAM_VERSION := $(strip $(shell (echo $(DEB_UPSTREAM_VERSION)|sed 's/~//')))
 DESTDIR  := ${CURDIR}/debian/tmp
 
 CFLAGS = -Wall -g
@@ -17,6 +21,20 @@
 	CFLAGS += -O2
 endif
 
+get-orig-source:
+	dh_testdir
+	test -d ../tarballs/. || mkdir -p ../tarballs
+	echo Downloading gpsdrive-${UPSTREAM_VERSION}
+	/usr/bin/wget -P ../tarballs/ -N http://gpsdrive.de/packages/gpsdrive-${UPSTREAM_VERSION}.tar.gz
+	tar xzf ../tarballs/gpsdrive-${UPSTREAM_VERSION}.tar.gz -C ../tarballs/
+	echo Removing upstream debian/ dir
+	rm -rf ../tarballs/gpsdrive-${UPSTREAM_VERSION}/debian/
+	echo Building tarball
+	tar czf ../tarballs/gpsdrive_${DEB_UPSTREAM_VERSION}.orig.tar.gz -C ../tarballs gpsdrive-${UPSTREAM_VERSION}
+	echo Cleaning up
+	rm -rf ../tarballs/gpsdrive-${UPSTREAM_VERSION}
+	rm -f ../tarballs/gpsdrive-${UPSTREAM_VERSION}.tar.gz
+
 config.status: configure patch-stamp
 	dh_testdir
 	aclocal -I m4 --force




More information about the Pkg-grass-devel mailing list