On 01/30/2010 05:15 PM, Frank Cox wrote:
You're complicating things far more than they need to be.
yum install rpmdevtools
rpmdev-setuptree
rpmbuild --rebuild whatever.src.rpm
cd ~/rpmbuild
See the RPMS, SOURCES, SPECS and SRPMS subdirectories. Look inside for
stuff.
Read the rpmbuild manpage for many other wonderful things, such as -bb
using a spec file (in the SPECS directory, of course) to create a new
rpm and srpm after modifying stuff in SOURCES.
One added point - with the exception of "yum install rpmdevtools",
you can do all this as a normal user. Then you just need to do the
install of the finished RPM as root.
Mikkel
--
Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!