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
|
#!/usr/bin/make -f
export HOME=$(CURDIR)/debian/deb_build_home
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/default.mk
include /usr/share/debhelper/dh_package_notes/package-notes.mk
ifneq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
ENABLE_DOCS = FALSE
DISABLE_DOCS = TRUE
else
ENABLE_DOCS = TRUE
DISABLE_DOCS = FALSE
endif
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- -DDOC_INSTALL_DIR=/usr/share/doc \
-DLIB=lib/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH) \
-DINCLUDE=include/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH) \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=FALSE \
-DCMAKE_SKIP_RPATH_INSTALL=TRUE \
-DUSE_TRANSLATION_SET=${TRANSLATION_SET:-zypp} \
-DENABLE_BUILD_DOCS=$(ENABLE_DOCS) \
-DDISABLE_AUTODOCS=$(DISABLE_DOCS) \
-DDEBIAN=1
override_dh_auto_test:
mkdir -p $(HOME)/.gnupg
dh_auto_test -- ARGS+='--exclude-regex \(NetworkRequestDispatcher_test\|EvDownloader_test\|Provider_test\|RepoInfo_test\|MirrorList_test\|YUMDownloader_test\|Fetcher_test\|RpmPkgSigCheck_test\)'
|