1 DESCRIPTION = "Python Bindings for Manipulating RPM Packages"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Base/Package Management"
12 #PROVIDES by python-rpm
13 PROVIDES += "python-rpm"
14 RPROVIDES_python-rpm += "python-rpm"
17 #RDEPENDS of python-rpm (${PN})
18 RDEPENDS_${PN} += "rpm"
22 #DEPENDS of python-rpm
23 DEPENDS += "zlib-devel"
26 DEPENDS += "uthash-devel"
31 #Replace "DEPENDS" on gettext by "inherit gettext"
34 DEPENDS += "lua-native"
35 DEPENDS += "libtool-cross"
40 DEPENDS += "pkgconfig(libsmack)"
44 chmod -Rf a+rX,u+w,g-w,o-w ${S}
45 #setup -q -n rpm-4.11.0.1
58 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
59 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
60 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
61 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
70 echo export RPM_BUILD_ROOT=${D}
78 # only installing in python/ does not work because rpm links against
79 # installed libs at install time
86 rm -f ${D}/usr/share/info/dir
87 find ${D} -regex ".*\.la$" | xargs rm -f --
88 find ${D} -regex ".*\.a$" | xargs rm -f --
89 find ${D} -not -type d -and -not -path ${D}/usr/lib/python*/site-packages/rpm/\* -print0 | xargs -0 rm
90 pushd ${D}//usr/lib/python*/site-packages/rpm
91 rm -f _rpmmodule.a _rpmmodule.la
92 #python /usr/lib/python*/py_compile.py *.py
93 #python -O /usr/lib/python*/py_compile.py *.py
100 PACKAGES += "python-rpm"
102 python-rpm_files = ""
103 python-rpm_files += "/usr/lib/python*/*/*"
105 FILES_${PN} = "${python-rpm_files}"
107 PKG_python-rpm= "python-rpm"
109 require python-rpm-extraconf.inc