[med-svn] [pysam] 01/02: Only install needed files
Andreas Tille
tille at debian.org
Tue Feb 11 13:47:21 UTC 2014
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository pysam.
commit 153009c123b68b5faf26dbf0d18e274ae68fb0ad
Author: Andreas Tille <tille at debian.org>
Date: Tue Feb 11 13:21:26 2014 +0100
Only install needed files
---
debian/control | 2 +-
debian/python-pysam-tests.postinst | 2 +-
debian/rules | 6 ++++++
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 43cb46e..2948c92 100644
--- a/debian/control
+++ b/debian/control
@@ -27,7 +27,7 @@ Description: interface for the SAM/BAM sequence alignment and mapping format
lightweight wrapper of the samtools C-API.
Package: python-pysam-tests
-Architecture: any
+Architecture: all
Priority: extra
Enhances: python-pysam
Depends: ${shlibs:Depends},
diff --git a/debian/python-pysam-tests.postinst b/debian/python-pysam-tests.postinst
index 49b17b7..4bbaf1c 100644
--- a/debian/python-pysam-tests.postinst
+++ b/debian/python-pysam-tests.postinst
@@ -5,7 +5,7 @@ set -e
case "$1" in
configure)
chmod a+w /var/lib/pysam/tests
- chmod a+w /var/lib/pysam/tests/*.[bs]am
+ chmod a+w /var/lib/pysam/tests/*.sam*
chmod a+w /var/lib/pysam/tests/pysam_test_work
;;
diff --git a/debian/rules b/debian/rules
index 3c444f4..659bc1d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
+DEBPKGNAME := python-$(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+TESTPKG := $(DEBPKGNAME)-tests
pybuilddir := $(CURDIR)/build/lib.$(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)-$(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
%:
@@ -32,6 +34,10 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
done
endif
+override_dh_install-indep:
+ dh_install -p $(TESTPKG)
+ cd debian/$(TESTPKG)/var/lib/pysam; make clean
+
override_dh_auto_clean:
dh_auto_clean
cd tests; make clean
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/pysam.git
More information about the debian-med-commit
mailing list