blob: aea6335278da797ff692dec38812e8bb11a9a9f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
inherit base package rpm_core
SPECFILE="${RPMBUILDPATH}/SPECS/${PN}.spec"
base_srpm_do_unpack() {
test -e ${SRPMFILE} || die "Source rpm \"${SRPMFILE}\"does not exist"
if ! test -e ${SPECFILE}; then
${RPM} -i ${SRPMFILE}
fi
test -e ${SPECFILE} || die "Spec file \"${SPECFILE}\" does not exist"
${RPMBUILD} -bp ${SPECFILE}
}
base_srpm_do_compile() {
${RPMBUILD} -bc ${SPECFILE}
}
base_srpm_do_install() {
${RPMBUILD} -bi ${SPECFILE}
}
|