Ask Your Question

How to create a SRC RPM from its contents, without also building binary RPMs?

asked 2016-12-16 23:42:31 -0500

updated 2016-12-16 23:45:34 -0500

I downloaded a Qt Creator SRC RPM, extracted its contents (with bsdtar -xf) and modified them a little (to fix an issue I am getting when trying to build the SRC RPM with Copr), now how do I create a SRC RPM from these modified contents so I can upload it to my Copr? A solution that does not involve also building binary RPMs would be ideal. See I know that running:

rpmbuild -ba qt-creator.spec

from $HOME/rpmbuild/SPECS will build a SRC RPM in $HOME/rpmbuild/SRPMS along with binary RPMs (in $HOME/rpmbuild/RPMS). But presently my system does not have the packages required to build a binary RPM so running this command fails due to missing dependencies. Is there a way to create a SRC RPM from source files (like my spec file and its associated patches) without building binary RPMs?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-12-16 23:51:48 -0500

fcomida gravatar image

What about rpmbuild -bs and reading the documentation before posting?

edit flag offensive delete link more


I had tried to. I Googled about building SRC RPMs but all the results I got were about compiling them into binary RPMs. I also ran rpmbuild --help | grep src in the hope it would tell me about src rpm building but it didn't. I now realize that rpmbuild --help | grep source returns more helpful results, but it is never a good idea to make assumptions about other people's efforts or lack thereof. I accepted your answer because rpmbuild -bs did work.

Brenton Horne gravatar imageBrenton Horne ( 2016-12-17 00:17:14 -0500 )edit

Well man rpmbuild would have told you. man pages, info pages, , your particular tool homepage/documentation page and, as last resort, google. That's what I usually do when I get into troubles with fedora, #fedora on freenode is also a good place for learning/getting help/helping others

fcomida gravatar imagefcomida ( 2016-12-17 01:01:06 -0500 )edit

Question Tools

1 follower


Asked: 2016-12-16 23:42:31 -0500

Seen: 420 times

Last updated: Dec 16 '16