File: rules

package info (click to toggle)
python-pyocr 0.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 540 kB
  • sloc: python: 4,965; makefile: 91; sh: 3
file content (23 lines) | stat: -rwxr-xr-x 485 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 DH_VERBOSE=1

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

export PYBUILD_NAME=pyocr
export PYBUILD_TEST_ARGS=-v

export ENABLE_SETUPTOOLS_SCM=0

%:
	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