File: rules

package info (click to toggle)
pyspread 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 15,236 kB
  • sloc: python: 24,131; makefile: 17; sh: 2
file content (34 lines) | stat: -rwxr-xr-x 1,074 bytes parent folder | download
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
29
30
31
32
33
34
#!/usr/bin/make -f
PYVERS := $(shell pyversions -i)
VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-+]+).*,\1,p')

override_dh_auto_configure:
	dh_auto_configure

override_dh_auto_install:
	python setup.py install --root=debian/pyspread --install-layout=deb --install-lib=/usr/share/ --install-scripts=/usr/share/
#	cd debian/pyspread/usr/share/pyspread && mv locale ..
	rm -rf debian/pyspread/usr/share/__init__.py
	rm -rf debian/pyspread/usr/share/*.egg-info

#get-orig-source:
#	mkdir -p get-orig-source
#	uscan --force-download --rename --destdir=get-orig-source --upstream-version=$(VER) &&\
#	cd get-orig-source &&\
#	tar -xzvf pyspread*orig.tar.gz &&\
#	cd pyspread-$(VER) &&\
#	rm -f runtests.py &&\
#	cd .. &&\
#	tar Jcf ../pyspread_$(VER).orig.tar.xz pyspread-$(VER)
#	rm -rf get-orig-source

override_dh_auto_clean:
	rm -f test/pyspread/src/actions/test/test1.pys.sig
	rm -f test/pyspread/src/actions/test/test4.pys.sig
	rm -f test/pyspread/src/lib/test/test1.pys.sig
	rm -f test/runtests.py
	rm -f runtest.py
	dh_auto_clean

%:
	dh $@ --with python2