File: rules

package info (click to toggle)
python-cvss 3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 107,152 kB
  • sloc: python: 3,235; makefile: 18
file content (23 lines) | stat: -rwxr-xr-x 530 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
#!/usr/bin/make -f

export PYBUILD_NAME=cvss
export PYBUILD_TEST_TOX=1
include /usr/share/dpkg/pkg-info.mk

%:
	dh $@ --buildsystem=pybuild

override_dh_installman:
	PYTHONPATH=. \
	help2man \
		--version-string='$(DEB_VERSION_UPSTREAM)' \
		--name 'calculate Common Vulnerability Scoring System (CVSS) metrics' \
		--no-info \
		--no-discard-stderr \
		'python3 cvss/cvss_calculator.py' | sed 's/.PY//;s/.py//' \
		> debian/cvss_calculator.1
	dh_installman

override_dh_auto_clean:
	dh_auto_clean
	rm -f debian/cvss_calculator.1