File: rules

package info (click to toggle)
pbbarcode 0.8.0-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 280 kB
  • ctags: 124
  • sloc: python: 798; makefile: 186; ansic: 48; sh: 16
file content (28 lines) | stat: -rwxr-xr-x 620 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
#!/usr/bin/make -f

#DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/default.mk

PYBUILD_NAME = pbbarcode

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

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="find tests -name '*.py' | xargs nosetests -v" \
	dh_auto_test

override_dh_install:
	mkdir -p debian/$(DEB_SOURCE)/usr/share/man/man1
	rst2man --quiet \
	doc/PbbarcodeFunctionalSpecification.rst \
	> debian/$(DEB_SOURCE)/usr/share/man/man1/pbbarcode.1
	dh_install

override_dh_installdocs:
	dh_installdocs
	find debian -name "*.pyc" -delete