Sunday, May 02, 2010

Build src rpm

http://fedoranews.org/hoyt/rpm/


1. Install src rpm, will locate in ~rpmbuild

2. rpmbuild -bb(or -ba) ~/rpmbuild/SPECS/XXX.spec (--target=i586)

[Note]20110414
/root/rpmbuild/BUILD => build dir
/root/rpmbuild/BUILDROOT => installation target
/root/rpmbuild/RPMS => built rpm
/root/rpmbuild/SOURCES => source
/root/rpmbuild/SPECS => SPEC file
/root/rpmbuild/SRPMS => built src.rpm

No comments:

Related Posts Plugin for WordPress, Blogger...