How can I generate / build and RPM from *.src.rpm file
Red HatThis forum is for the discussion of Red Hat Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
1) Install the source package using rpm -ivh somepackage.src.rpm. This will place the source files in /usr/src/redhat/SOURCES and put a spec file in /usr/src/redhat/SPECS.
2) cd /usr/src/redhat/SPECS
3) rpmbuild -ba somepackage.spec
The binary rpm will end up under the /usr/src/redhat/RPMS directory in one of the architecture directories such as i386.