File: rules

package info (click to toggle)
createrepo-c 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,632 kB
  • sloc: ansic: 31,242; python: 4,868; xml: 2,669; sh: 363; makefile: 26; perl: 7
file content (30 lines) | stat: -rwxr-xr-x 821 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
24
25
26
27
28
29
30
#!/usr/bin/make -f

# Aim for the top, adapt if anything should break on the buildds.
DEB_BUILD_MAINT_OPTIONS=	hardening=+all future=+lfs

include /usr/share/dpkg/default.mk

include /usr/share/debhelper/dh_package_notes/package-notes.mk

D=	${CURDIR}/debian

%:
	dh "$@" --buildsystem cmake

override_dh_auto_configure:
	dh_auto_configure -- -DENABLE_DRPM=ON -DENABLE_PYTHON=ON -DSKBUILD=ON

execute_after_dh_auto_test:
	env \
		PYTHONPATH='obj-${DEB_HOST_GNU_TYPE}/src/python' \
		PATH="${CURDIR}/obj-${DEB_HOST_GNU_TYPE}/src:$$PATH" \
		LD_LIBRARY_PATH='${CURDIR}/obj-${DEB_HOST_GNU_TYPE}/src' \
		python3 -B '$D/tests/repotest.py' --source '$D/tests/pkg/foo-0.1.0' --spec '$D/tests/pkg/foo.spec'

override_dh_makeshlibs:
	dh_makeshlibs -- -c4

override_dh_auto_clean:
	rm -rf src/createrepo_c.egg-info
	dh_auto_clean