File: rules

package info (click to toggle)
libsmbios 2.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 4,684 kB
  • sloc: ansic: 6,953; xml: 4,275; python: 3,459; cpp: 1,878; makefile: 366; sh: 309
file content (25 lines) | stat: -rwxr-xr-x 895 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with autoreconf,python3

override_dh_auto_install:
	# manpage currently disabled, see #394898
	#	cd $(CURDIR)/debian/libsmbios-bin; for f in usr/sbin/*; do \
	#	    ln -s smbios-bin.1 usr/share/man/man1/$$(basename $$f).1; \

	#autotools doesn't let you override this properly
	# https://bugs.launchpad.net/ubuntu/+source/automake/+bug/1250877
	sed -i 's,^pythondir = .*,pythondir = $${prefix}/lib/python3/dist-packages,' Makefile

	dh_auto_install

override_dh_install:
	#use libjs-jquery instead
	rm -f out/libsmbios_c/html/jquery.js
	ln -s /usr/share/javascript/jquery/jquery.js out/libsmbios_c/html/jquery.js
	#we don't want to install pre-compiled byte code
	rm -rf debian/tmp/usr/lib/python3/dist-packages/libsmbios_c/__pycache__ \
	       debian/tmp/usr/share/smbios-utils/__pycache__/
	dh_install -XLICENSE