File: rules

package info (click to toggle)
python-xattr 0.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 184 kB
  • ctags: 131
  • sloc: python: 1,185; sh: 18; makefile: 15
file content (20 lines) | stat: -rwxr-xr-x 475 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export DH_VERBOSE=1
export PYBUILD_NAME=xattr
export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
export PYBUILD_DISABLE=test

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

override_dh_auto_install:
	dh_auto_install
	rm -rf debian/python-xattr/usr/bin
	mkdir -p debian/xattr/usr
	mv debian/python3-xattr/usr/bin debian/xattr/usr

override_dh_auto_clean:
	dh_auto_clean
	rm -rf xattr.egg-info xattr/__pycache__
	find xattr -name '*.so' -delete