File: rules

package info (click to toggle)
gpgmepy 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,576 kB
  • sloc: sh: 12,050; python: 5,958; ansic: 1,001; makefile: 368; sed: 37
file content (18 lines) | stat: -rwxr-xr-x 558 bytes parent folder | download
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

include /usr/share/dpkg/architecture.mk

# python3.X, see pybuild for their meaning.
export _PYTHON_HOST_PLATFORM:=${DEB_HOST_ARCH_OS}-${DEB_HOST_ARCH}
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
	export _PYTHON_SYSCONFIGDATA_NAME:=_sysconfigdata__${DEB_HOST_ARCH_OS}_${DEB_HOST_MULTIARCH}
endif

execute_after_dh_auto_install:
	find debian/python3-gpg -name '*.pyc' -delete
	find debian/python3-gpg -name '__pycache__' -execdir rm -rf {} +

%:
	dh $@ --builddirectory=build --with python3