[med-svn] [python-htseq] 04/15: Add get-orig-source to download from upstream svn. (upstream's release process deletes source files)

Diane Trout diane-guest at moszumanska.debian.org
Thu Jun 12 21:55:30 UTC 2014


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

diane-guest pushed a commit to branch master
in repository python-htseq.

commit 0d6b97fd314598a2595edf2c0c936f41f06256c0
Author: Diane Trout <diane at ghic.org>
Date:   Wed Jun 11 16:39:03 2014 -0700

    Add get-orig-source to download from upstream svn. (upstream's release process deletes source files)
    
    * Add get-orig-source to download from upstream svn.
      (upstream's release process deletes source files)
    * Add build-dependency on python-debian for get-orig-source
---
 debian/changelog |  8 ++++++++
 debian/control   |  2 +-
 debian/rules     | 22 +++++++++++++++++++++-
 3 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 634dd54..ed1bc06 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+htseq (0.6.1p1-1) UNRELEASED; urgency=medium
+
+  * Add get-orig-source to download from upstream svn.
+    (upstream's release process deletes source files)
+  * Add build-dependency on python-debian for get-orig-source
+
+ -- Diane Trout <diane at ghic.org>  Wed, 11 Jun 2014 16:30:42 -0700
+
 htseq (0.5.4p3-2) unstable; urgency=low
 
   [ Andreas Tille ]
diff --git a/debian/control b/debian/control
index ec03f3a..3931e12 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Uploaders: Diane Trout <diane at ghic.org>,
            Andreas Tille <tille at debian.org>
 Section: python
 Priority: optional
-Build-Depends: debhelper (>= 9),
+Build-Depends: debhelper (>= 9), python-debian,
                python-setuptools (>= 0.6b3),
                python-all-dev (>= 2.6.5),
                python-sphinx,
diff --git a/debian/rules b/debian/rules
index ae6ae58..a21d137 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,11 @@
 #!/usr/bin/make -f
 
+PKD := $(abspath $(dir $(MAKEFILE_LIST)))
+PKG := $(shell python -c "from debian.changelog import Changelog; print(Changelog(open(\"$(PKD)/changelog\",'r')).package)")
+UVER := $(shell python -c "from debian.changelog import Changelog; print(Changelog(open('$(PKD)/changelog','r')).upstream_version)")
+DTYPE = +repack
+VER ?= $(subst $(DTYPE),,$(UVER))
+
 DH_VERBOSE=1
 PYTHON2=$(shell pyversions -vr)
 
@@ -42,6 +48,20 @@ override_dh_auto_clean:
 clean:
 	dh $@ --with python2,sphinxdoc
 
-.PHONY: clean
+get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz
 
+UURL = http://svn.code.sf.net/p/htseq/code/tags/
+$(PKG)_$(VER)$(DTYPE).orig.tar.xz: $(info I: VER=$(VER))
+	$(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..))
+	svn checkout --config-option config:miscellany:use-commit-times=yes \
+	             $(UURL)/release_$(UVER) $(PKG)-$(VER) \
+	|| $(RM) -r $(PKG)-$(VER)
+	@echo "Clean-up..."
+	cd $(PKG)-$(VER) \
+	&& find . -depth -name ".svn" -exec $(RM) -r '{}' \;
+	@echo "# Packing..."
+	find -L $(PKG)-$(VER) -xdev -type f -print | sort | \
+	XZ_OPT="-6v" tar caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
+	&& $(RM) -r "$(PKG)-$(VER)"
 
+.PHONY: clean get-orig-source

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-htseq.git



More information about the debian-med-commit mailing list