File: rules

package info (click to toggle)
libsolv 0.7.35-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,804 kB
  • sloc: ansic: 73,004; python: 871; perl: 742; tcl: 730; ruby: 705; sh: 263; cpp: 204; makefile: 41
file content (49 lines) | stat: -rwxr-xr-x 1,554 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_PYTHON_INSTALL_LAYOUT=deb
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DLIB="lib/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)" \
		-DINCLUDE="include/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)" \
		-DUSE_VENDORDIRS=1 \
		-DMULTI_SEMANTICS=1 \
		-DDEBIAN=1 \
		-DENABLE_PUBKEY=1 \
		-DENABLE_SUSEREPO=1 \
		-DENABLE_RPMMD=1 \
		-DENABLE_RPMDB=1 \
		-DENABLE_RPMDB_BYRPMHEADER=1 \
		-DENABLE_HELIXREPO=1 \
		-DENABLE_DEBIAN=1 \
		-DENABLE_MDKREPO=1 \
		-DENABLE_ARCHREPO=1 \
		-DENABLE_CUDFREPO=1 \
		-DCMAKE_VERBOSE_MAKEFILE=ON \
		-DENABLE_LZMA_COMPRESSION=1 \
		-DENABLE_BZIP2_COMPRESSION=1 \
		-DENABLE_ZSTD_COMPRESSION=1 \
		-DENABLE_PERL=1 \
		-DENABLE_PYTHON=0 \
		-DENABLE_PYTHON3=1 \
		-DCMAKE_SKIP_RPATH=FALSE \
		-DCMAKE_SKIP_INSTALL_RPATH=TRUE \
		-DENABLE_COMPLEX_DEPS=1 \
		-DENABLE_COMPS=1

execute_after_dh_auto_install:
	if [ -e debian/tmp/usr/bin/repo2solv.sh ]; then mv debian/tmp/usr/bin/repo2solv.sh debian/tmp/usr/bin/repo2solv; fi
	if [ -e debian/tmp/cmake ]; then mv debian/tmp/cmake/ debian/tmp/usr/share/; fi
	if [ -e debian/tmp/usr/share/cmake/Modules/FindLibSolv.cmake ]; then mkdir -p debian/tmp/usr/share/cmake/libsolv/; ln -s FindLibSolv.cmake debian/tmp/usr/share/cmake/libsolv/LibSolvConfig.cmake; fi

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_installdocs:
	dh_installdocs --all CREDITS README TODO_1.0