File: rules

package info (click to toggle)
createrepo-c 0.17.0-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 3,288 kB
  • sloc: ansic: 28,398; python: 4,667; xml: 1,420; sh: 369; makefile: 19; perl: 7
file content (20 lines) | stat: -rwxr-xr-x 604 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

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

D=	${CURDIR}/debian
MARCH:=	$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)

%:
	dh "$@" --buildsystem cmake

override_dh_auto_configure:
	dh_auto_configure -- -DENABLE_DRPM=ON

execute_after_dh_auto_test:
	env PYTHONPATH='obj-${MARCH}/src/python' PATH="${CURDIR}/obj-${MARCH}/src:$$PATH" 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