Ask Your Question
0

How can I create my own RPM?

asked 2011-11-08 22:54:09 -0600

jdeltoro1973 gravatar image

updated 2014-09-30 14:59:35 -0600

mether gravatar image

Yes, I've RTFM but I'm looking for a step by step tutorial.

I was able to compile and succesfully ran the latest version of GRASS wich is not available in the Fedora 15 repositories; Now I want to make this RPM available to the rest of the users.

If you know of a step by step tutorial please point me in that direction.

Congatulations for this Q&A site I'm a big fan of Stackexchange and now I finally see that there is an open source alternative to it. Soon I'll try to run my own Q&A site.

edit retag flag offensive close merge delete

7 Answers

Sort by ยป oldest newest most voted
0

answered 2011-11-11 11:42:10 -0600

bct gravatar image
edit flag offensive delete link more
1

answered 2011-11-08 23:37:38 -0600

tuxdna gravatar image

@jdeltoro1973

Which manual have you read? I was thinking if you can go through this one:

http://fedoraproject.org/wiki/HowtocreateaGNUHelloRPM_package

And yes, it is step-by-step tutorial.

edit flag offensive delete link more
1

answered 2011-11-09 09:50:42 -0600

bpepple gravatar image

Are you looking to update the package within Fedora, or publish your own yum repository?

If you want to help maintain the Fedora package, I would suggest reading the documentation for package maintainers on the wiki. https://fedoraproject.org/wiki/PackageMaintainers

If you want to publish your own repo, I would do a little reading on createrepo. Here's an old draft on it, that can probably get you started. http://fedoraproject.org/wiki/Extras/CreateRepo

edit flag offensive delete link more
1

answered 2011-11-09 11:28:50 -0600

FranciscoD_ gravatar image

You can also go through this presentation

edit flag offensive delete link more
0

answered 2011-11-11 12:40:30 -0600

tuxdna gravatar image

In the book Beginning Linux Programming 4th Edition, there is a very nice step-by-step tutorial of working with and creating your own RPM package files ( see Chapter 9: Development Tools ).

I always recommend that book for anyone starting to program on GNU/Linux environment. It has a very good coverage of major topics.

edit flag offensive delete link more
1

answered 2011-11-12 05:33:55 -0600

hhlp gravatar image

If you want to help maintain the Fedora package, I would suggest reading the documentation https://fedoraproject.org/wiki/How_to_create_an_RPM_package">here

edit flag offensive delete link more
0

answered 2013-12-05 02:02:48 -0600

marcindulak gravatar image

Adding my answer too - the excellent build.opensuse.org service was not mentioned in the previous answers.

Check out this guide: https://fedoraproject.org/wiki/How_to_create_an_RPM_package. Grab an src.rpm of a Fedora package with dependencies similar to your game and use the spec file as a template. Build and test the package locally with mock (as described in the above guide). Then use http://en.opensuse.org/openSUSE:Build_Service_Tutorial to create, automatically test and setup yum/zypper repositories for different platforms (Fedora, RHEL, openSUSE, SLE, ...) or (if you target Fedora/EPEL only) consider creating a Fedora account and submit your package for a formal review request http://fedoraproject.org/wiki/New_package_process_for_existing_contributors

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-11-08 22:54:09 -0600

Seen: 611 times

Last updated: Dec 05 '13