necessary.
* Add `cd "${T}"` at the beginning of dyn_rpm() since the spec file is written
to $PWD.
svn path=/main/trunk/; revision=11194
}
dyn_spec() {
- tar czf "/usr/src/rpm/SOURCES/${PF}.tar.gz" \
+ local sources_dir=/usr/src/rpm/SOURCES
+ mkdir -p "${sources_dir}"
+ tar czf "${sources_dir}/${PF}.tar.gz" \
"${EBUILD}" "${FILESDIR}" || \
die "Failed to create base rpm tarball."
}
dyn_rpm() {
+ cd "${T}" || die "cd failed"
addwrite /usr/src/rpm
addwrite "${RPMDIR}"
dyn_spec