2013-12-19 15:13:01 +00:00
|
|
|
SUMMARY = "Creates metadata indexes for RPM package repositories"
|
2011-01-18 03:38:35 +00:00
|
|
|
HOMEPAGE = "http://createrepo.baseurl.org/"
|
|
|
|
|
2015-08-28 12:18:50 +00:00
|
|
|
RECIPE_NO_UPDATE_REASON = "Versions after 0.9.* use YUM, so we hold at 0.4.11"
|
|
|
|
|
2011-01-18 03:38:35 +00:00
|
|
|
LICENSE = "GPLv2+"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760"
|
|
|
|
|
2013-01-22 11:30:22 +00:00
|
|
|
DEPENDS_class-native += "libxml2-native rpm-native"
|
2014-06-25 09:16:20 +00:00
|
|
|
RDEPENDS_${PN}_class-target = "libxml2-python"
|
2012-07-20 09:49:17 +00:00
|
|
|
|
2013-01-22 11:30:22 +00:00
|
|
|
PR = "r9"
|
2011-01-18 03:38:35 +00:00
|
|
|
|
2015-08-27 06:32:47 +00:00
|
|
|
SRC_URI = "http://createrepo.baseurl.org/download/${BP}.tar.gz \
|
|
|
|
file://fix-native-install.patch \
|
|
|
|
file://python-scripts-should-use-interpreter-from-env.patch \
|
|
|
|
file://createrepo-rpm549.patch \
|
|
|
|
file://recommends.patch \
|
|
|
|
file://createrepo-dbpath.patch \
|
|
|
|
file://dumpMetadata-disable-signature-validation.patch \
|
|
|
|
file://rpm-createsolvedb.py \
|
2016-03-03 17:18:25 +00:00
|
|
|
file://fixstat.patch \
|
2015-08-27 06:32:47 +00:00
|
|
|
"
|
2011-05-26 19:02:30 +00:00
|
|
|
|
|
|
|
SRC_URI[md5sum] = "3e9ccf4abcffe3f49af078c83611eda2"
|
|
|
|
SRC_URI[sha256sum] = "a73ae11a0dcde8bde36d900bc3f7f8f1083ba752c70a5c61b72d1e1e7608f21b"
|
2011-01-18 03:38:35 +00:00
|
|
|
|
|
|
|
BBCLASSEXTEND = "native"
|
|
|
|
|
|
|
|
do_install () {
|
|
|
|
oe_runmake -e 'DESTDIR=${D}' install
|
2012-08-01 09:14:53 +00:00
|
|
|
install -m 0755 ${WORKDIR}/rpm-createsolvedb.py ${D}${bindir}/
|
2011-01-18 03:38:35 +00:00
|
|
|
}
|
2012-08-01 09:14:54 +00:00
|
|
|
|
|
|
|
# Wrap the python script since the native python is
|
|
|
|
# ${bindir}/python-native/python, and the "#! /usr/bin/env python" can't
|
|
|
|
# find it since it is not in PATH.
|
recipes-support: replace virtclass-native(sdk) with class-native(sdk)
The overrides virtclass-native and virtclass-nativesdk are deprecated,
which should be replaced by class-native and class-nativesdk.
NOTE:
There were 2 errors in libcap.inc, the BUILD_LDFLAGS_virtclass_native
should be BUILD_LDFLAGS_virtclass-native (the "_" should be "-"),
otherwise it doesn't work, and the value was: "-Wl,rpath=...", this is
incorrect, it shoudl be: "-Wl,-rpath=..." (lacked a - ), but we don't
need this line, since it is already in the default BUILD_LDFLAGS. Remove
it and we don't need to bump the PR since we just removed a unused line.
[YOCTO #3297]
(From OE-Core rev: cafb550fe9034754933f1708446dde155dcc3d51)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-27 08:48:17 +00:00
|
|
|
do_install_append_class-native () {
|
2012-08-01 09:14:54 +00:00
|
|
|
# Not all the python scripts should be wrapped since some of
|
|
|
|
# them are modules (be imported).
|
|
|
|
for i in ${D}${datadir}/createrepo/genpkgmetadata.py \
|
|
|
|
${D}${datadir}/createrepo/modifyrepo.py \
|
|
|
|
${D}${bindir}/rpm-createsolvedb.py ; do
|
2013-06-12 16:29:21 +00:00
|
|
|
sed -i -e 's|^#!.*/usr/bin/env python|#! /usr/bin/env nativepython|' $i
|
2012-08-01 09:14:54 +00:00
|
|
|
done
|
2012-08-13 18:58:00 +00:00
|
|
|
|
|
|
|
create_wrapper ${D}/${bindir}/createrepo \
|
|
|
|
RPM_USRLIBRPM=${STAGING_LIBDIR_NATIVE}/rpm \
|
|
|
|
RPM_ETCRPM=${STAGING_ETCDIR_NATIVE}/rpm \
|
|
|
|
RPM_LOCALEDIRRPM=${STAGING_DATADIR_NATIVE}/locale
|
2012-08-01 09:14:54 +00:00
|
|
|
}
|