2011-01-18 03:38:35 +00:00
|
|
|
DESCRIPTION = "createrepo creates rpm-metadata for rpms to build the repository"
|
|
|
|
HOMEPAGE = "http://createrepo.baseurl.org/"
|
|
|
|
|
|
|
|
LICENSE = "GPLv2+"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760"
|
|
|
|
|
2013-01-22 11:30:22 +00:00
|
|
|
DEPENDS_class-native += "libxml2-native rpm-native"
|
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
|
|
|
|
|
|
|
SRC_URI= "http://createrepo.baseurl.org/download/${BP}.tar.gz \
|
|
|
|
file://fix-native-install.patch \
|
2012-04-11 14:26:15 +00:00
|
|
|
file://python-scripts-should-use-interpreter-from-env.patch \
|
2012-06-11 18:18:58 +00:00
|
|
|
file://createrepo-rpm549.patch \
|
2012-11-26 15:02:15 +00:00
|
|
|
file://recommends.patch \
|
2012-08-01 09:14:53 +00:00
|
|
|
file://rpm-createsolvedb.py \
|
2011-01-18 03:38:35 +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
|
|
|
}
|