Mailinglist Archive: opensuse (1231 mails)

< Previous Next >
Re: [opensuse] RPM building guide
On Thu, Mar 7, 2013 at 8:16 PM, Ananda Samaddar <asamaddar@xxxxxxxxxxx>

Hello all,

Can anyone send me a link to a guide to creating and building RPMs? I
can't seem to find anything via internet searches.



There are a bunch of ways to create a rpm. A decade plus of tool
development has gone into automating the process so there are lots of
solutions. One consistent truth is that the process is driven by a specfile
that controls the compiling of the code and the ultimate creation of the
rpm. That process is called packaging and there is an dedicated
opensuse-packaging mailing list dedicated to it.

Regardless, assuming you want to leverage opensuse only tools, let's start
with the WebUI way.

login to (you may need to create an

Then click "Create Project"

Click on "Repositories"

Click on "Add Repositories"

check "Opensuse 12.2" as an example, then scroll to the bottom and click
"Add Selected Repositories"

Then click on "Overview", then "Branch an existing package"

For name of existing project put in:

For name of existing package put in: "tutorial"

Click "create branch"

Sit back and watch it happen. (wait 10+ minutes for build results to show
succeeded, note the refresh icon inside the "build results" button)

Click on "opensuse 12.2" to see what you built.

Click on rpm of your choice and download it.

fyi: That is a "tutorial" package I created, but never really did much with.
The nice thing is the specfile that controls how the rpm is built is really

okay, now that you've built your first rpm via the WebUI, try to branch a
real package and patch it from the command-line. (Note this assumes you
have an account on, so don't skip down here until you've
done at least that much of the above).


To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups