File: rules

package info (click to toggle)
python-xattr 0.9.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 208 kB
  • sloc: python: 693; ansic: 489; sh: 32; makefile: 15
file content (20 lines) | stat: -rwxr-xr-x 470 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
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