File: rules

package info (click to toggle)
python-ldap 3.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,368 kB
  • sloc: python: 9,560; ansic: 3,052; makefile: 139; sh: 79
file content (18 lines) | stat: -rwxr-xr-x 488 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export PYBUILD_NAME = ldap
export PYBUILD_DISABLE=test

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

override_dh_strip:
	dh_strip -ppython3-ldap --dbgsym-migration='python3-ldap-dbg (<< 3.3.1-1~)'

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -b html -N Doc $(CURDIR)/debian/python-ldap-doc/usr/share/doc/python-ldap-doc/html
	dh_sphinxdoc
endif