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 | 43 |
1 files changed, 43 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..ecd43b0c0b --- /dev/null +++ b/meta/recipes-devtools/createrepo-c/createrepo-c_1.2.1.bb | |||
@@ -0,0 +1,43 @@ | |||
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 | file://0001-Fix-libname-of-Libs.private.patch \ | ||
11 | file://0002-Use-IMPORTED_TARGET-for-3rd-party-dependencies.patch \ | ||
12 | file://0003-Don-t-try-to-use-imported-targets-of-turned-off-depe.patch \ | ||
13 | file://0004-cmake-Allow-builds-without-Doxygen-being-present-wit.patch \ | ||
14 | " | ||
15 | |||
16 | SRCREV = "8c6e6f88df86d1e34ca26d3835d77a2816326414" | ||
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 | } | ||