blob: 5080131dc1edf5c30c5e54dc106c092e73470728 [file] [log] [blame]
Patrick Williams8e7b46e2023-05-01 14:19:06 -05001SUMMARY = "C implementation of createrepo."
Andrew Geissler9aee5002022-03-30 16:27:02 +00002HOMEPAGE = "https://github.com/rpm-software-management/createrepo_c/wiki"
3
4LICENSE = "GPL-2.0-only"
5LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
6
7SRC_URI = "git://github.com/rpm-software-management/createrepo_c;branch=master;protocol=https \
8 file://0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch \
Andrew Geisslerc5535c92023-01-27 16:10:19 -06009 file://0001-include-rpm-rpmstring.h.patch \
Patrick Williamse760df82023-05-26 11:10:49 -050010 file://0001-src-cmd_parser.c-add-a-missing-parameter-name.patch \
Andrew Geissler9aee5002022-03-30 16:27:02 +000011 "
12
Patrick Williamse760df82023-05-26 11:10:49 -050013SRCREV = "0652d7303ce236e596c83c29ccc9bee7868fce6e"
Andrew Geissler9aee5002022-03-30 16:27:02 +000014
15S = "${WORKDIR}/git"
16
17DEPENDS = "expat curl glib-2.0 libxml2 openssl bzip2 zlib file sqlite3 xz rpm"
18DEPENDS:append:class-native = " file-replacement-native"
19
20inherit cmake pkgconfig bash-completion setuptools3-base
21
22EXTRA_OECMAKE = " -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DPYTHON_DESIRED=3 -DWITH_ZCHUNK=OFF -DENABLE_DRPM=OFF -DWITH_LIBMODULEMD=OFF"
23
24BBCLASSEXTEND = "native nativesdk"
25
26# Direct createrepo to read rpm configuration from our sysroot, not the one it was compiled in
27do_install:append:class-native() {
28 create_wrapper ${D}/${bindir}/createrepo_c \
29 RPM_CONFIGDIR=${STAGING_LIBDIR_NATIVE}/rpm \
30 MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc
31 create_wrapper ${D}/${bindir}/modifyrepo_c \
32 MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc
33}
34
35do_install:append:class-nativesdk() {
36 create_wrapper ${D}/${bindir}/createrepo_c \
37 RPM_CONFIGDIR=${SDKPATHNATIVE}${libdir_nativesdk}/rpm \
38 MAGIC=${datadir}/misc/magic.mgc
39 create_wrapper ${D}/${bindir}/modifyrepo_c \
40 MAGIC=${datadir}/misc/magic.mgc
41 rm -rf ${D}/etc
42}