File: rules

package info (click to toggle)
pyspread 2.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,064 kB
  • sloc: python: 14,266; xml: 48; makefile: 30; sh: 10
file content (31 lines) | stat: -rwxr-xr-x 1,246 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
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f
#PYVERS := $(shell pyversions -i)
#VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-+]+).*,\1,p')

export DH_VERBOSE=1

override_dh_auto_install:
	dh_auto_install
	rm -rf debian/pyspread/usr/pyspread
#	cp -R pyspread/share/icons debian/pyspread/usr/share/pyspread/share/
	chmod 755 debian/pyspread/usr/share/pyspread/pyspread/pyspread.py
	rm debian/pyspread/usr/share/pyspread/pyspread/share/LICENSE
	rm debian/pyspread/usr/share/pyspread/pyspread/share/templates/matplotlib/COPYING
	mkdir debian/pyspread/usr/share/pyspread/tmp
	mv debian/pyspread/usr/share/pyspread/pyspread/* debian/pyspread/usr/share/pyspread/tmp/
	rm -rf debian/pyspread/usr/share/pyspread/pyspread
	mv debian/pyspread/usr/share/pyspread/tmp/* debian/pyspread/usr/share/pyspread/
	rm -rf debian/pyspread/usr/share/pyspread/tmp
	mkdir debian/pyspread/usr/bin
	cp debian/pyspread.sh debian/pyspread/usr/bin/pyspread

export PYBUILD_NAME=pyspread
export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/pyspread/ --install-scripts=/usr/share/pyspread/pyspread --root=debian/pyspread

override_dh_auto_test:

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3 --no-guessing-deps

%:
	dh $@ --buildsystem=pybuild --ext-sub-pattern=__pycache__