File: rules

package info (click to toggle)
python-wheezy.template 0.1.167-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 208 kB
  • sloc: python: 1,119; sh: 10; makefile: 9
file content (15 lines) | stat: -rwxr-xr-x 452 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f

export PYBUILD_NAME=wheezy.template

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

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

override_dh_auto_install:
	dh_auto_install
	mv debian/python3-$(PYBUILD_NAME)/usr/bin/$(PYBUILD_NAME) debian/python3-$(PYBUILD_NAME)/usr/bin/$(PYBUILD_NAME)-python3
	sed -i '1s,.*,#!/usr/bin/python3,' debian/python3-$(PYBUILD_NAME)/usr/bin/$(PYBUILD_NAME)-python3

.PHONY: override_dh_auto_install