File: rules

package info (click to toggle)
dnf-plugins-core 4.10.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,752 kB
  • sloc: python: 7,441; sh: 23; makefile: 15; xml: 7
file content (27 lines) | stat: -rwxr-xr-x 714 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
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
# export DH_VERBOSE = 1

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

%:
	dh "${@}" --buildsystem=cmake --with=python3 --builddirectory=build

override_dh_auto_configure:
	dh_auto_configure -- -DPYTHON_DESIRED:STRING=3 -DWITH_MAN:BOOL=ON

override_dh_auto_build:
	dh_auto_build -- all doc

execute_after_dh_auto_clean:
	find . -name *.pyc -delete
	rm -f libexec/dnf-utils-3

override_dh_installsystemd:
	dh_installsystemd --no-enable --no-start

execute_after_dh_auto_install:
	# Conflicts with zypper
	rm -f debian/dnf-plugins-core/usr/share/man/man1/needs-restarting.1*