File: rules

package info (click to toggle)
python-pbcore 1.6.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 19,168 kB
  • sloc: python: 25,497; xml: 2,846; makefile: 251; sh: 24
file content (39 lines) | stat: -rwxr-xr-x 853 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
#!/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:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="{interpreter} setup.py test" \
	  dh_auto_test
endif

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG.org