File: rules

package info (click to toggle)
python-cooler 0.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 32,596 kB
  • sloc: python: 10,555; makefile: 198; sh: 31
file content (19 lines) | stat: -rwxr-xr-x 466 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

# DH_VERBOSE := 1

export PYBUILD_NAME=cooler

%:
	dh $@ --with python3 --buildsystem=pybuild

EXAMPLES_DIR = $(CURDIR)/debian/python3-$(PYBUILD_NAME)-examples
execute_after_dh_installexamples-indep:
	cd $(EXAMPLES_DIR)/usr/share/doc/python3-$(PYBUILD_NAME) \
	&& tar --create \
		--owner=0 --group=0 --numeric-owner \
		--sort=name --mtime="@$(SOURCE_DATE_EPOCH)" \
		--mode=u=wrX,og=rX \
		--xz \
		--file tests.tar.xz tests \
	&& rm -rf tests