blob: e22255f83114bf1382ebec917730a55dcdfbdc5f [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001SUMMARY = "Library providing simplified C and Python API to libsolv"
Andrew Geissler6ce62a22020-11-30 19:58:47 -06002LICENSE = "LGPLv2.1+"
Brad Bishopc342db32019-05-15 21:57:59 -04003LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
4
Andrew Geissler4b740dc2020-05-05 08:54:39 -05005SRC_URI = "git://github.com/rpm-software-management/libdnf;branch=dnf-4-master \
Brad Bishopc342db32019-05-15 21:57:59 -04006 file://0001-FindGtkDoc.cmake-drop-the-requirement-for-GTKDOC_SCA.patch \
7 file://0004-Set-libsolv-variables-with-pkg-config-cmake-s-own-mo.patch \
8 file://0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch \
9 file://0001-Add-WITH_TESTS-option.patch \
Andrew Geissler4b740dc2020-05-05 08:54:39 -050010 file://0001-Look-fo-sphinx-only-if-documentation-is-actually-ena.patch \
Andrew Geissler635e0e42020-08-21 15:58:33 -050011 file://enable_test_data_dir_set.patch \
Brad Bishopc342db32019-05-15 21:57:59 -040012 "
13
Andrew Geisslerd1e89492021-02-12 15:35:20 -060014SRCREV = "d2d0ec98fd2e0a2623123fb1ddf8fdd8936c6046"
Andrew Geissler82c905d2020-04-13 13:39:40 -050015UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
Brad Bishopc342db32019-05-15 21:57:59 -040016
17S = "${WORKDIR}/git"
18
Andrew Geissler4b740dc2020-05-05 08:54:39 -050019DEPENDS = "glib-2.0 libsolv libcheck librepo rpm gtk-doc libmodulemd json-c swig-native"
Brad Bishopc342db32019-05-15 21:57:59 -040020
21inherit gtk-doc gobject-introspection cmake pkgconfig distutils3-base
22
23EXTRA_OECMAKE = " -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DWITH_MAN=OFF -DPYTHON_DESIRED=3 \
24 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-DWITH_GIR=ON', '-DWITH_GIR=OFF', d)} \
25 -DWITH_TESTS=OFF \
Andrew Geissler4b740dc2020-05-05 08:54:39 -050026 -DWITH_ZCHUNK=OFF \
27 -DWITH_HTML=OFF \
Brad Bishopc342db32019-05-15 21:57:59 -040028 "
29EXTRA_OECMAKE_append_class-native = " -DWITH_GIR=OFF"
30EXTRA_OECMAKE_append_class-nativesdk = " -DWITH_GIR=OFF"
31
32BBCLASSEXTEND = "native nativesdk"
Andrew Geissler82c905d2020-04-13 13:39:40 -050033PNBLACKLIST[libdnf] ?= "${@bb.utils.contains('PACKAGE_CLASSES', 'package_rpm', '', 'Does not build without package_rpm in PACKAGE_CLASSES due disabled rpm support in libsolv', d)}"
Brad Bishopc342db32019-05-15 21:57:59 -040034