File: rules

package info (click to toggle)
namebench 1.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,804 kB
  • ctags: 491
  • sloc: python: 4,046; sh: 116; makefile: 21
file content (28 lines) | stat: -rwxr-xr-x 693 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
#!/usr/bin/make -f

DEB_UPSTREAM_VERSION := \
	$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)+dfsg-.*/\1/p')

%:
	NO_THIRD_PARTY=yes dh --with python-support $@

override_dh_auto_install:
	NO_THIRD_PARTY=yes python setup.py install --root install --prefix /usr
	rm install/usr/lib/python*/site-packages/namebench.py

override_dh_auto_clean:
	dh_auto_clean
	rm -rf install

override_dh_auto_build:
	dh_auto_build
	docbook-to-man debian/namebench.sgml > namebench.1

get-orig-source:
	uscan \
		--verbose \
		--no-symlink \
		--upstream-version $(DEB_UPSTREAM_VERSION) \
		--download-version $(DEB_UPSTREAM_VERSION) \
		--destdir .                                \
		--force-download