1 DESCRIPTION = "The RPM Package Manager."
2 HOMEPAGE = "http://rpm.org/"
4 DEPENDS = "python-native"
7 SRC_URI = "http://www.rpm.org/releases/rpm-4.4.x/rpm-4.4.2.3.tar.gz \
8 file://external-tools.patch \
9 file://cross_libpaths.patch \
10 file://rpmconfigdir.patch \
11 file://weakdeps.patch;striplevel=0 \
12 file://tagsbackport.patch;striplevel=0 \
13 file://missingok.patch;striplevel=0 \
14 file://extcond.patch;striplevel=0"
16 inherit autotools python-dir
18 S = "${WORKDIR}/rpm-${PV}"
20 ARM_INSTRUCTION_SET = "arm"
22 acpaths = "-I ${S}/db/dist/aclocal -I ${S}/db/dist/aclocal_java"
24 PACKAGES += "python-rpm"
25 FILES_python-rpm = "${PYTHON_SITEPACKAGES_DIR}/rpm/_*"
26 RDEPENDS_python-rpm += "${PN} python-core"
28 # Handle the db MUTEX settings here, the POSIX library is
29 # the default - "POSIX/pthreads/library".
30 # Don't ignore the nice SWP instruction on the ARM:
31 # These enable the ARM assembler mutex code, this won't
32 # work with thumb compilation...
33 ARM_MUTEX = "--with-mutex=ARM/gcc-assembly"
35 MUTEX_arm = "${ARM_MUTEX}"
36 MUTEX_armeb = "${ARM_MUTEX}"
37 EXTRA_OECONF += "${MUTEX}"
39 export varprefix = "${localstatedir}"
41 do_configure_prepend (){
42 EXTRA_RPM_OECONF="--with-python \
43 --with-python-incdir=${STAGING_INCDIR}/${PYTHON_DIR} \
44 --with-python-libdir=${libdir}/${PYTHON_DIR} \
54 rm ${S}/db/dist/configure.in -f
55 cd ${S}/db/dist/aclocal
57 for i in `ls *.ac`; do
58 j=`echo $i | sed 's/.ac/.m4/g'`
61 cd ${S}/db/dist/aclocal_java
62 for i in `ls *.ac`; do
63 j=`echo $i | sed 's/.ac/.m4/g'`
67 autotools_do_configure ${EXTRA_RPM_OECONF}
70 # Edit version information we couldn't pre-compute.
71 sed -i -e "s/__EDIT_DB_VERSION_MAJOR__/$DB_VERSION_MAJOR/g" configure
72 sed -i -e "s/__EDIT_DB_VERSION_MINOR__/$DB_VERSION_MINOR/g" configure
73 sed -i -e "s/__EDIT_DB_VERSION_PATCH__/$DB_VERSION_PATCH/g" configure
74 sed -i -e "s/__EDIT_DB_VERSION_STRING__/$DB_VERSION_STRING/g" configure
75 sed -i -e "s/__EDIT_DB_VERSION_UNIQUE_NAME__/$DB_VERSION_UNIQUE_NAME/g" configure
76 sed -i -e "s/__EDIT_DB_VERSION__/$DB_VERSION/g" configure
79 --build=${BUILD_SYS} \
81 --target=${TARGET_SYS} \
83 --exec_prefix=${exec_prefix} \
85 --sbindir=${sbindir} \
86 --libexecdir=${libexecdir} \
87 --datadir=${datadir} \
88 --sysconfdir=${sysconfdir} \
89 --sharedstatedir=${sharedstatedir} \
90 --localstatedir=${localstatedir} \
92 --includedir=${includedir} \
93 --oldincludedir=${oldincludedir} \
94 --infodir=${infodir} \