File: rules

package info (click to toggle)
dodgy 0.1.9-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 168 kB
  • ctags: 52
  • sloc: python: 201; makefile: 13; sh: 2
file content (21 lines) | stat: -rwxr-xr-x 651 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f
#export DH_VERBOSE=1
#export DEB_BUILD_OPTIONS=nocheck
export PYBUILD_NAME=dodgy

VERSION := $(shell dpkg-parsechangelog -Sversion | cut -d- -f1)
DEBDATE := $(shell dpkg-parsechangelog -Sdate | date -u +"%F" -f -)

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:
	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m nose -v" dh_auto_test

override_dh_installdocs:
	pandoc -t plain -o .pybuild/README README.md
	dh_installdocs .pybuild/README

override_dh_installman:
	txt2man -s 1 -v "dodgy" -t "dodgy" -r "$(VERSION)" -d "$(DEBDATE)" debian/dodgy.txt > .pybuild/dodgy.1
	dh_installman .pybuild/dodgy.1