Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 1 | SUMMARY = "C implementation of createrepo." |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 2 | HOMEPAGE = "https://github.com/rpm-software-management/createrepo_c/wiki" |
| 3 | |
| 4 | LICENSE = "GPL-2.0-only" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 6 | |
| 7 | SRC_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 Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 9 | file://0001-include-rpm-rpmstring.h.patch \ |
Patrick Williams | e760df8 | 2023-05-26 11:10:49 -0500 | [diff] [blame] | 10 | file://0001-src-cmd_parser.c-add-a-missing-parameter-name.patch \ |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 11 | file://time64fix.patch \ |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 12 | " |
| 13 | |
Patrick Williams | e760df8 | 2023-05-26 11:10:49 -0500 | [diff] [blame] | 14 | SRCREV = "0652d7303ce236e596c83c29ccc9bee7868fce6e" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 15 | |
| 16 | S = "${WORKDIR}/git" |
| 17 | |
| 18 | DEPENDS = "expat curl glib-2.0 libxml2 openssl bzip2 zlib file sqlite3 xz rpm" |
| 19 | DEPENDS:append:class-native = " file-replacement-native" |
| 20 | |
| 21 | inherit cmake pkgconfig bash-completion setuptools3-base |
| 22 | |
| 23 | EXTRA_OECMAKE = " -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DPYTHON_DESIRED=3 -DWITH_ZCHUNK=OFF -DENABLE_DRPM=OFF -DWITH_LIBMODULEMD=OFF" |
| 24 | |
| 25 | BBCLASSEXTEND = "native nativesdk" |
| 26 | |
| 27 | # Direct createrepo to read rpm configuration from our sysroot, not the one it was compiled in |
| 28 | do_install:append:class-native() { |
| 29 | create_wrapper ${D}/${bindir}/createrepo_c \ |
| 30 | RPM_CONFIGDIR=${STAGING_LIBDIR_NATIVE}/rpm \ |
| 31 | MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc |
| 32 | create_wrapper ${D}/${bindir}/modifyrepo_c \ |
| 33 | MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc |
| 34 | } |
| 35 | |
| 36 | do_install:append:class-nativesdk() { |
| 37 | create_wrapper ${D}/${bindir}/createrepo_c \ |
| 38 | RPM_CONFIGDIR=${SDKPATHNATIVE}${libdir_nativesdk}/rpm \ |
| 39 | MAGIC=${datadir}/misc/magic.mgc |
| 40 | create_wrapper ${D}/${bindir}/modifyrepo_c \ |
| 41 | MAGIC=${datadir}/misc/magic.mgc |
| 42 | rm -rf ${D}/etc |
| 43 | } |