File: rules

package info (click to toggle)
python-pbcore 1.2.11%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 18,612 kB
  • ctags: 5,336
  • sloc: python: 22,160; xml: 2,667; makefile: 239
file content (40 lines) | stat: -rwxr-xr-x 887 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

export PYBUILD_NAME = pbcore
export PYBUILD_AFTER_INSTALL = \
  chmod -x {destdir}/{install_dir}/pbcore/data/*.h5 \
           {destdir}/{install_dir}/pbcore/data/datasets/*.xml

DESTDIR = $(CURDIR)/debian/$(DEB_SOURCE)

%:
	LC_ALL=C.UTF-8 dh $@ --with python2 --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build
	$(MAKE) doc

override_dh_install:
	dh_install
	mv $(DESTDIR)/usr/bin/.open $(DESTDIR)/usr/bin/pbopen

override_dh_installdocs:
	dh_installdocs -X _source

override_dh_auto_clean:
	dh_auto_clean
	$(MAKE) clean

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="{interpreter} setup.py test" \
	  dh_auto_test

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG.org

get-orig-source:
	uscan --verbose --force-download --repack --rename --compression xz