~dmedia/dmedia/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f

# See https://wiki.debian.org/Python/LibraryStyleGuide
%:
	dh $@ --with=python3 --buildsystem=pybuild


override_dh_auto_clean:
	rm -rf build/

override_dh_auto_build:
	set -ex; for python in $(shell py3versions -r); do \
		$$python setup.py build \
				--executable=/usr/bin/python3; \
	done

override_dh_auto_test:
	set -ex; for python in $(shell py3versions -r); do \
		unset GTK_MODULES && xvfb-run -a $$python setup.py test --core-only; \
	done

override_dh_auto_install:
	set -ex; for python in $(shell py3versions -r); do \
		$$python setup.py install \
				--install-layout=deb \
				--root=$(CURDIR)/debian/dmedia; \
	done