File: rules

package info (click to toggle)
pywebdav 0.11.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 940 kB
  • sloc: python: 2,524; makefile: 12; sh: 10
file content (19 lines) | stat: -rwxr-xr-x 558 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
#!/usr/bin/make -f

PACKAGE_NAME := $(shell python setup.py --name)
export PYBUILD_NAME=webdav

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

override_dh_auto_clean:
	rm -rf $(PACKAGE_NAME).egg-info
	dh_auto_clean

override_dh_install:
	dh_install
	# Avoid a file collision between python- and python3-package
	mv debian/python3-webdav/usr/bin/davserver debian/python3-webdav/usr/bin/davserver3
	# Copy the test suite to a decent location
	mkdir -p debian/python3-webdav/usr/share/python3-webdav
	cp -r test/ debian/python3-webdav/usr/share/python3-webdav