Only install needed files
authorAndreas Tille <tille@debian.org>
Tue, 11 Feb 2014 12:21:26 +0000 (13:21 +0100)
committerAndreas Tille <tille@debian.org>
Tue, 11 Feb 2014 12:35:49 +0000 (13:35 +0100)
debian/control
debian/python-pysam-tests.postinst
debian/rules

index 43cb46ecbae74e521114400937de9fd38bed36a7..2948c92065258d6803fdf179aa6b79d58c7cb9ca 100644 (file)
@@ -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},
index 49b17b74a4d4202980b88df60888933234eba207..4bbaf1c31faecb700285eab782125eb5c2d905ae 100644 (file)
@@ -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
     ;;
 
index 3c444f4b7a833306aefc94265d441b0926456bb0..659bc1d879885fdc4637f697f6e9fab52b80ab01 100755 (executable)
@@ -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