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
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}