From: Andreas Tille Date: Tue, 11 Feb 2014 12:21:26 +0000 (+0100) Subject: Only install needed files X-Git-Tag: archive/raspbian/0.22.0+ds-1+rpi1~1^2^2~412 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=153009c123b68b5faf26dbf0d18e274ae68fb0ad;p=python-pysam.git Only install needed files --- 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