[cvxopt] 40/64: Use Files-Excluded to strip unwanted files from source tarball

Andreas Tille tille at debian.org
Wed Jul 20 11:23:53 UTC 2016


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

tille pushed a commit to branch master
in repository cvxopt.

commit 0a7d59d4e1cc80092a5b22c9c49f6f4f1dcb051b
Author: Andreas Tille <tille at debian.org>
Date:   Wed Jul 20 08:55:35 2016 +0200

    Use Files-Excluded to strip unwanted files from source tarball
---
 debian/copyright   |  3 +++
 debian/orig-tar.sh | 23 -----------------------
 debian/rules       |  3 ---
 debian/watch       |  9 ++-------
 4 files changed, 5 insertions(+), 33 deletions(-)

diff --git a/debian/copyright b/debian/copyright
index 76b3530..f705fbc 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,6 +1,9 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: cvxopt
 Source: https://github.com/cvxopt/cvxopt/releases
+Files-Excluded: */*.gif
+                */*.pdf
+                */*.html
 
 Files: *
 Copyright: 2004-2015 Joachim Dahl <joachim at kom.aau.dk>
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
deleted file mode 100755
index 3316e13..0000000
--- a/debian/orig-tar.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-# called by uscan with '--upstream-version' <version> <file>
-
-VERSION=$2
-SOURCE=$(dpkg-parsechangelog | sed -ne 's,Source: \(.*\),\1,p')
-TAR=../${SOURCE}_${VERSION}.orig.tar.gz
-
-tar xf $3 --exclude '*.gif' --exclude '*.pdf' --exclude '*.html' 
-make -C cvxopt-$2/doc clean
-chmod ugo-x cvxopt-$2/examples/doc/*/*.py cvxopt-$2/examples/book/*/*.py
-
-tar czf $TAR cvxopt-$2
-rm -rf cvxopt-$2
-
-# move to directory 'tarballs'
-if [ -r .svn/deb-layout ]; then
-  . .svn/deb-layout
-  mv $TAR $origDir
-  echo "moved $TAR to $origDir"
-fi
-
-exit 0
diff --git a/debian/rules b/debian/rules
index fe925a9..453c029 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,6 +22,3 @@ clean::
 	make -C doc clean
 	$(RM) -r src/build
 
-get-orig-source:
-	-uscan --rename --upstream-version 0
-	@echo successfully retrieved upstream tarball
diff --git a/debian/watch b/debian/watch
index 4960567..dd5da7d 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,8 +1,3 @@
 version=3
-opts=\
-dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\
-uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/;s/RC/rc/,\
-filenamemangle=s/(?:.*?)?(?:rel|v|cvxopt)?[\-\_]?(\d\S+)\.(tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))/cvxopt-$1.$2/ \
-https://github.com/cvxopt/cvxopt/releases \
-(?:.*?/)?(?:rel|v|cvxopt)?[\-\_]?(\d[\d\-\.]+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) \
-debian debian/orig-tar.sh
+opts="repacksuffix=+dfsg,dversionmangle=s/\+dfsg//g,repack,compression=xz" \
+  https://github.com/cvxopt/cvxopt/releases .*/archive/(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cvxopt.git



More information about the debian-science-commits mailing list