File: rules

package info (click to toggle)
python-avro 1.9.1+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,464 kB
  • sloc: python: 9,696; xml: 4,103; sh: 730; java: 384; makefile: 21
file content (32 lines) | stat: -rwxr-xr-x 769 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
24
25
26
27
28
29
30
31
32
#!/usr/bin/make -f

#DH_VERBOSE = 1

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

export PYBUILD_NAME = avro

export LC_ALL=C.UTF-8
export JAVA_HOME=/usr/lib/jvm/default-java

%:
	dh $@                                   \
		--with python3                  \
		--buildsystem=pybuild           \
		--sourcedirectory=lang/py3

override_dh_install:
# Only keep /usr/bin/avro that is provided by the python3 package
	find debian/ -name "*LICENSE*" -delete
	dh_install

override_dh_auto_clean:
	dh_auto_clean
# The python3 package doesn't clean up after itself properly
	$(RM)						\
		lang/py3/README.txt			\
		lang/py3/avro/HandshakeRequest.avsc	\
		lang/py3/avro/HandshakeResponse.avsc	\
		lang/py3/avro/VERSION.txt		\
		lang/py3/avro/tests/interop.avsc