File: rules

package info (click to toggle)
reprozip 1.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 488 kB
  • sloc: ansic: 2,801; python: 2,733; sh: 20; makefile: 11
file content (22 lines) | stat: -rwxr-xr-x 630 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export PYBUILD_NAME = reprozip
export PYBUILD_TEST_ARGS = {dir}/debian/tests
export PYBUILD_AFTER_INSTALL = rm -rf {destdir}/usr/bin

%:
	dh $@ --buildsystem=pybuild

# The prebuilt binary was introduced since 1.2, see:
# https://salsa.debian.org/science-team/reprozip/-/tree/upstream/native?ref_type=heads
execute_before_dh_auto_clean:
	rm -f ${CURDIR}/native/log.o

execute_after_dh_auto_install:
	python3 setup.py install_scripts --skip-build \
		--install-dir=debian/$(PYBUILD_NAME)/usr/bin