initscripts-shr: remove devtmpfs initscript for palmpre machine
[openembedded.git] / classes / base_srpm.bbclass
blobaea6335278da797ff692dec38812e8bb11a9a9f3
1 inherit base package rpm_core
3 SPECFILE="${RPMBUILDPATH}/SPECS/${PN}.spec"
5 base_srpm_do_unpack() {
6         test -e ${SRPMFILE} || die "Source rpm \"${SRPMFILE}\"does not exist"
7         if ! test -e ${SPECFILE}; then
8                 ${RPM} -i ${SRPMFILE}
9         fi
10         test -e ${SPECFILE} || die "Spec file \"${SPECFILE}\" does not exist"
11         ${RPMBUILD} -bp ${SPECFILE}
14 base_srpm_do_compile() {
15         ${RPMBUILD} -bc ${SPECFILE}
18 base_srpm_do_install() {
19         ${RPMBUILD} -bi ${SPECFILE}