File: rules

package info (click to toggle)
python-neuroshare 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 440 kB
  • ctags: 467
  • sloc: ansic: 1,251; python: 796; makefile: 145
file content (38 lines) | stat: -rwxr-xr-x 1,068 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
35
36
37
38
#!/usr/bin/make -f
# -*- makefile -*-

srcpkg = $(shell LC_ALL=C dpkg-parsechangelog | grep '^Source:' | cut -d ' ' -f 2,2)
debver = $(shell LC_ALL=C dpkg-parsechangelog | grep '^Version:' | cut -d ' ' -f 2,2 )
upstreamver = $(shell echo $(debver) | cut -d '-' -f 1,1 )

# prevent network access
# cf. https://wiki.debian.org/Python/LibraryStyleGuide
export http_proxy=http://127.0.9.1:9

# one ring to rule them all ...
%:
	dh $@ --with python2,sphinxdoc

# hook for dh_numpy
override_dh_lintian:
	dh_lintian
	# backport friendly
	-[ -x /usr/bin/dh_numpy ] && dh_numpy

override_dh_clean:
	dh_clean
	rm -rf neuroshare.egg-info
	rm -rf build/docs
	rm -f neuroshare/_capi.so
	rm -f *.egg

override_dh_sphinxdoc-arch:
	#noop 

override_dh_auto_install-indep:
	# build the docs for the -doc pkg 
	python setup.py build_sphinx --build-dir=build/docs

get-orig-source:  $(info I: $(srcpkg)_$(upstreamver))
	@echo "# Retrieving org tarball..."
	uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(upstreamver)