File: rules

package info (click to toggle)
salt-pepper 0.5.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 124 kB
  • sloc: python: 963; makefile: 13
file content (20 lines) | stat: -rwxr-xr-x 592 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME=salt-pepper

%:
	dh $@ --with python3 --buildsystem=pybuild --shebang=/usr/bin/python3

override_dh_auto_build:
	dh_auto_build
	# Generate man page
	PYTHONPATH=. help2man -n "Tool to access a salt-api instance" \
			--version-string=$(DEB_VERSION) "python3 scripts/pepper" \
		| sed -E -e 's,(\s|^|\")pepper,\1salt-pepper,g' -e 's,PEPPER\ \"1\",SALT-PEPPER\ \"1\",g' \
		> debian/salt-pepper.1

override_dh_auto_install:
	dh_auto_install
	mv debian/salt-pepper/usr/bin/pepper debian/salt-pepper/usr/bin/salt-pepper