diff options
Diffstat (limited to 'meta/recipes-devtools/createrepo-c/createrepo-c_1.2.1.bb')
-rw-r--r-- | meta/recipes-devtools/createrepo-c/createrepo-c_1.2.1.bb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-devtools/createrepo-c/createrepo-c_1.2.1.bb b/meta/recipes-devtools/createrepo-c/createrepo-c_1.2.1.bb new file mode 100644 index 0000000000..63a717726c --- /dev/null +++ b/meta/recipes-devtools/createrepo-c/createrepo-c_1.2.1.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | SUMMARY = "C implementation of createrepo." | ||
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;tag=${PV} \ | ||
8 | file://0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch \ | ||
9 | file://0001-include-rpm-rpmstring.h.patch \ | ||
10 | " | ||
11 | |||
12 | SRCREV = "8c6e6f88df86d1e34ca26d3835d77a2816326414" | ||
13 | |||
14 | DEPENDS = "expat curl glib-2.0 libxml2 openssl bzip2 zlib file sqlite3 xz rpm" | ||
15 | DEPENDS:append:class-native = " file-replacement-native" | ||
16 | |||
17 | inherit cmake pkgconfig bash-completion setuptools3-base | ||
18 | |||
19 | EXTRA_OECMAKE = " -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DPYTHON_DESIRED=3 -DWITH_ZCHUNK=OFF -DENABLE_DRPM=OFF -DWITH_LIBMODULEMD=OFF" | ||
20 | |||
21 | BBCLASSEXTEND = "native nativesdk" | ||
22 | |||
23 | # Direct createrepo to read rpm configuration from our sysroot, not the one it was compiled in | ||
24 | do_install:append:class-native() { | ||
25 | create_wrapper ${D}/${bindir}/createrepo_c \ | ||
26 | RPM_CONFIGDIR=${STAGING_LIBDIR_NATIVE}/rpm \ | ||
27 | MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc | ||
28 | create_wrapper ${D}/${bindir}/modifyrepo_c \ | ||
29 | MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc | ||
30 | } | ||
31 | |||
32 | do_install:append:class-nativesdk() { | ||
33 | create_wrapper ${D}/${bindir}/createrepo_c \ | ||
34 | RPM_CONFIGDIR=${SDKPATHNATIVE}${libdir_nativesdk}/rpm \ | ||
35 | MAGIC=${datadir}/misc/magic.mgc | ||
36 | create_wrapper ${D}/${bindir}/modifyrepo_c \ | ||
37 | MAGIC=${datadir}/misc/magic.mgc | ||
38 | rm -rf ${D}/etc | ||
39 | } | ||