File: rules

package info (click to toggle)
python-pyocr 0.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 532 kB
  • sloc: python: 4,862; makefile: 90; sh: 3
file content (22 lines) | stat: -rwxr-xr-x 467 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
#!/usr/bin/make -f

# export DH_VERBOSE=1

export PYBUILD_NAME=pyocr
export PYBUILD_TEST_ARGS=-v

%:
	dh $@ --with python3 --buildsystem=pybuild

src/pyocr/_version.py: debian/_version.py.in
	sed 's,@DEB_VERSION_UPSTREAM@,$(DEB_VERSION_UPSTREAM),g' $< > $@

override_dh_auto_clean: src/pyocr/_version.py
	dh_auto_clean
	rm -f src/pyocr/_version.py

override_dh_auto_configure: src/pyocr/_version.py
	dh_auto_configure

override_dh_missing:
	dh_missing --fail-missing