File: rules

package info (click to toggle)
python-pyocr 0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 532 kB
  • sloc: python: 4,953; makefile: 88; sh: 3
file content (19 lines) | stat: -rwxr-xr-x 418 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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