File: rules

package info (click to toggle)
libbytesize 2.11-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 784 kB
  • sloc: python: 1,850; ansic: 994; sh: 666; makefile: 258
file content (23 lines) | stat: -rwxr-xr-x 504 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
#!/usr/bin/make -f

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_PYTHON_INSTALL_LAYOUT = deb

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--with-python3 \
		--without-tools

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	PYTHONPATH=src/python/ LD_LIBRARY_PATH=src/.libs/ ./tests/libbytesize_unittest.sh
endif

execute_before_dh_install:
	find debian/tmp -name '*.la' -print -delete