File: rules

package info (click to toggle)
isrcsubmit 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 508 kB
  • sloc: python: 1,247; makefile: 143; sh: 2
file content (28 lines) | stat: -rwxr-xr-x 619 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
#! /usr/bin/make -f

%:
	dh $@ --with python3

override_dh_auto_clean:
	rm -rf build

override_dh_auto_build:
	python3 setup.py build

override_dh_auto_install:
	python3 setup.py install --root=debian/isrcsubmit \
		--install-layout=deb \
		--install-scripts=/usr/bin
	# get rid of .py
	mv debian/isrcsubmit/usr/bin/isrcsubmit.py \
		debian/isrcsubmit/usr/bin/isrcsubmit
	# there is no point in installing the egg
	rm -rf debian/isrcsubmit/usr/lib

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	python3 setup.py test
endif

override_dh_installchangelogs:
	dh_installchangelogs CHANGES.markdown