File: rules

package info (click to toggle)
python-pyramid 1.10.4+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,044 kB
  • sloc: python: 43,041; makefile: 28
file content (38 lines) | stat: -rwxr-xr-x 893 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
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/make -f
# -*- makefile -*-

export PYBUILD_NAME=pyramid
export pkgversion=$(shell dpkg-parsechangelog --show-field version)

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


override_dh_auto_install:
	dh_auto_install
	cd $(CURDIR)/debian/python3-pyramid/usr/bin; \
	for file in * ; do \
	    mv $${file} $${file}3; \
	done
	find $(CURDIR)/debian -name \*.pdf -exec chmod -x {} \;


override_dh_installman:
	mkdir -p $(CURDIR)/debian/manpages3
	cd $(CURDIR)/debian/python3-pyramid/usr/bin; \
	export PYTHONPATH=$(CURDIR); \
	set -x; \
	for file in *; do \
	    help2man --version-string=$${pkgversion} \
		     --no-info --section=1 \
		     --name="Python 3 Pyramid command" \
		     --output=$(CURDIR)/debian/manpages3/$${file}.man \
		     --no-discard-stderr \
		     ./$${file}; \
	done
	dh_installman


override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(CURDIR)/debian/manpages3