File: rules

package info (click to toggle)
pyosmium 4.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,584 kB
  • sloc: python: 4,400; cpp: 2,504; makefile: 20
file content (24 lines) | stat: -rwxr-xr-x 706 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

# DH_VERBOSE := 1

# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

export DEB_CXXFLAGS_MAINT_APPEND=$(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --get CPPFLAGS)

export PYBUILD_NAME=pyosmium
export PYBUILD_SYSTEM=pyproject
export PYBUILD_TEST_ARGS=-vv
export PYBUILD_BEFORE_TEST=cp -r {dir}/examples {build_dir}
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/examples

export VERBOSE=1

%:
	dh $@ --buildsystem pybuild

execute_after_dh_auto_install:
	mkdir -p debian/python3-pyosmium/usr/lib/python3-pyosmium
	mv -v debian/python3-pyosmium/usr/bin/* debian/python3-pyosmium/usr/lib/python3-pyosmium/
	rmdir debian/python3-pyosmium/usr/bin