1 DESCRIPTION = "Python Bindings for Manipulating RPM Packages"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Base/Package Management"
10 inherit autotools-brokensep
14 #PROVIDES by python-rpm
18 #RDEPENDS of python-rpm (${PN})
19 RDEPENDS_${PN} += "rpm"
23 #DEPENDS of python-rpm
24 #Replace "DEPENDS" on gettext by "inherit gettext"
37 DEPENDS += "libtool-cross"
46 chmod -Rf a+rX,u+w,g-w,o-w ${S}
47 #setup -q -n rpm-4.11.0.1
53 bb.build.exec_func('do_prep', d)
64 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
65 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
66 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
67 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
76 echo export RPM_BUILD_ROOT=${D}
84 mkdir -p ${D}${prefix}/lib
85 # only installing in python/ does not work because rpm links against
86 # installed libs at install time
91 BINDIR=${prefix}/bin \
93 rm -f ${D}${infodir}/dir
94 find ${D} -regex ".*\.la$" | xargs rm -f --
95 find ${D} -regex ".*\.a$" | xargs rm -f --
96 find ${D} -not -type d -and -not -path ${D}${prefix}/lib/python*/site-packages/rpm/\* -print0 | xargs -0 rm
97 pushd ${D}/${prefix}/lib/python*/site-packages/rpm
98 rm -f _rpmmodule.a _rpmmodule.la
99 #python ${prefix}/lib/python*/py_compile.py *.py
100 #python -O ${prefix}/lib/python*/py_compile.py *.py
107 python-rpm_files = ""
108 python-rpm_files += "${prefix}/lib/python*/*/*"
110 FILES_${PN} = "${python-rpm_files}"
112 PKG_python-rpm= "python-rpm"
114 require python-rpm-extraconf.inc