[gdal] 06/11: Drop get-orig-source script in favor of uscan + Files-Excluded.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Sun Jun 28 14:05:45 UTC 2015


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository gdal.

commit 2024a56a5decb7fe5c6ec77d0819a3716352ff67
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Tue Feb 17 22:32:32 2015 +0100

    Drop get-orig-source script in favor of uscan + Files-Excluded.
---
 debian/changelog       |  1 +
 debian/get-orig-source | 56 --------------------------------------------------
 debian/watch           |  7 ++++---
 3 files changed, 5 insertions(+), 59 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 73fb291..098c0f8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ gdal (1.10.1+dfsg-9) UNRELEASED; urgency=medium
   * Add upstream metadata.
   * Have python*-gdal suggest gdal-bin.
     (closes: #774243)
+  * Drop get-orig-source script in favor of uscan + Files-Excluded.
 
  -- Bas Couwenberg <sebastic at debian.org>  Sun, 28 Jun 2015 12:01:44 +0200
 
diff --git a/debian/get-orig-source b/debian/get-orig-source
deleted file mode 100755
index 010a838..0000000
--- a/debian/get-orig-source
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh -x
-# Repack tarball because of data files with unknown license
-
-set -e
-
-# Remark: A new uscan that enables easier handling of removing files can be
-#         obtained via
-#   git clone git://tille@git.debian.org/git/users/tille/devscripts.git
-#         and then copy scripts/uscan.pl as uscan at the beginning of your PATH
-if uscan --help | grep -q -- --repack-compression ; then
-    echo "Use new enhanced uscan"
-    uscan --verbose --force-download
-    exit
-fi
-
-# Falling back to manually removing files
-
-PACKAGE=`dpkg-parsechangelog | sed -n 's/^Source: //p'`
-VERSION=`dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/\+.*//'`
-
-uscan --verbose --force-download --no-symlink
-
-mkdir -p ../tarballs
-cd ../tarballs
-
-tar -xaf ../${PACKAGE}-${VERSION}.tar.*
-
-# Directory in upstream tarball can contain the project name twice
-if [ -d "${PACKAGE}-${PACKAGE}-${VERSION}" ]; then
-	mv ${PACKAGE}-${PACKAGE}-${VERSION} ${PACKAGE}-${VERSION}
-fi
-
-# Remove files with unclear rights
-#
-#  gdal/data/cubewerx_extra.wkt
-#   Derived from definitions distributed by Cubewerx.
-#   See http://trac.osgeo.org/gdal/ticket/2165
-# 
-#  gdal/data/ecw_cs.dat
-#   Derived via much processing from ERMapper GDT definitions.
-#   See http://trac.osgeo.org/gdal/ticket/2162
-#
-#  gdal/data/esri_extra.wkt
-#   Derived with some processing from projections definitions in ArcGIS.
-#   See http://trac.osgeo.org/gdal/ticket/2163
-
-rm ${PACKAGE}-${VERSION}/data/cubewerx_extra.wkt
-rm ${PACKAGE}-${VERSION}/data/ecw_cs.wkt
-rm ${PACKAGE}-${VERSION}/data/esri_extra.wkt
-
-mv ${PACKAGE}-${VERSION} ${PACKAGE}-${VERSION}+dfsg.orig
-
-GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf ../"${PACKAGE}"_"${VERSION}"+dfsg.orig.tar.gz "${PACKAGE}-${VERSION}"+dfsg.orig
-
-rm -rf "${PACKAGE}-${VERSION}"+dfsg.orig
-
diff --git a/debian/watch b/debian/watch
index 3d26545..bd203fa 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,5 +1,6 @@
 version=3
-opts=dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/ \
+opts=dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\
+uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/,\
+repacksuffix=+dfsg \
 http://trac.osgeo.org/gdal/wiki/DownloadSource \
-(?:|.*/)gdal(?:[_\-]v?|)(\d\S*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz) \
-debian debian/get-orig-source
+(?:|.*/)gdal(?:[_\-]v?|)(\d\S*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/gdal.git



More information about the Pkg-grass-devel mailing list