File: rules

package info (click to toggle)
zope.interface 5.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,500 kB
  • sloc: python: 14,908; ansic: 1,589; makefile: 140
file content (27 lines) | stat: -rwxr-xr-x 689 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
#!/usr/bin/make -f

export PYBUILD_NAME=zope.interface
export PYBUILD_TEST_PYTEST=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export PYBUILD_VERBOSE=1
#export DH_VERBOSE=1

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

package3=python3-zope.interface

execute_after_dh_auto_install:
	# Remove C sources.
	find debian/$(package3) -name '*.c' | xargs -r rm -f

override_dh_installchangelogs:
	dh_installchangelogs CHANGES.rst

override_dh_strip:
	dh_strip --dbgsym-migration='python3-zope.interface-dbg (<< 5.4.0-2~)'

execute_after_dh_auto_clean:
	rm -f .eggs/README.txt
	rm -f src/zope.interface.egg-info/requires.txt
	rm -f src/zope/interface/_zope_interface_coptimizations.*.so