File: rules

package info (click to toggle)
python-zeroconf 0.147.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,380 kB
  • sloc: python: 15,356; makefile: 23
file content (24 lines) | stat: -rwxr-xr-x 851 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
22
23
24
#!/usr/bin/make -f
export PYBUILD_NAME=zeroconf

# special build flags for Debian package
export DEBIAN_TEST=1
export SKIP_CYTHON=True

%:
	dh $@ --buildsystem=pybuild

# remove coverage test file from installation tree
execute_after_dh_auto_install:
	rm -fv  debian/python3-zeroconf/usr/lib/python3*/dist-packages/.coverage
	rm -rfv debian/python3-zeroconf/usr/lib/python3*/dist-packages/.benchmarks/

# keep ".md" extension for changelogs
override_dh_installchangelogs:
	dh_installchangelogs --keep

# fix too old timestamps that breaks Debian package
execute_after_dh_installchangelogs:
	touch --no-create --date="@$(SOURCE_DATE_EPOCH)" debian/python3-zeroconf/usr/share/doc/python3-zeroconf/changelog
execute_after_dh_installdocs:
	touch --no-create --date="@$(SOURCE_DATE_EPOCH)" debian/python3-zeroconf/usr/share/doc/python3-zeroconf/README.rst