File: rules

package info (click to toggle)
pylibtiff 0.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,072 kB
  • sloc: python: 9,938; ansic: 1,064; makefile: 15
file content (22 lines) | stat: -rwxr-xr-x 639 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

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

UPSTREAM_VERSION = $(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//')

export SETUPTOOLS_SCM_PRETEND_VERSION = $(UPSTREAM_VERSION)

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
export PYBUILD_AFTER_INSTALL=rm -rf {destdir}/{install_dir}/libtiff/src
export PYBUILD_DISABLE=clean
export PYBUILD_TEST_ARGS=-k "not test_issue19" $(CURDIR)/libtiff/tests
ifneq (,$(filter $(DEB_BUILD_ARCH),mipsel s390x ppc64 hppa))
export PYBUILD_DISABLE=test
endif

%:
	dh $@ --buildsystem=pybuild

override_dh_numpy3:
	dh_numpy3 -p python3-libtiff