Ask Your Question
0

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

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

BH2017 gravatar image

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
0

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

Comments

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.

BH2017 gravatar imageBH2017 ( 2016-12-17 00:17:14 -0500 )edit

Well man rpmbuild would have told you. man pages, info pages, docs.fedoraproject.org , 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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 101 times

Last updated: Dec 16 '16