Difference between revisions of "RPM package"
Jump to navigation
Jump to search
(Created page with '== Resources == *RPM spec file == External Links == *[http://www.thegeekstuff.com/2011/08/yum-command-examples/ 15 Linux Yum Command Examples] - The Geek Stuff Blog *[http…') |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{UnderConstruction}} |
||
+ | == Steps to building an RPM == |
||
+ | |||
+ | # run rpmdev-setuptree to create ~/rpmbuild and subdirectories |
||
+ | # place the source code in ~/rpmbuild/SOURCES |
||
+ | # cd ~/rpmbuild/SPECS |
||
+ | # create a skeleton spec file: rpmdev-newspec NAMEOFPACKAGE |
||
+ | # edit the spec file as appropriate |
||
+ | # build the package: rpmbuild -ba *.spec |
||
+ | |||
+ | After the build completes, there are some QA checks that can be performed, and cross-platform testing. Once the package has passed those hurdles, it can be submitted to Fedora for review and inclusion. |
||
+ | |||
== Resources == |
== Resources == |
||
Line 8: | Line 20: | ||
*[http://fedoraproject.org/wiki/How_to_create_an_RPM_package How to create an RPM package] - Fedora wiki |
*[http://fedoraproject.org/wiki/How_to_create_an_RPM_package How to create an RPM package] - Fedora wiki |
||
*[http://fedoraproject.org/wiki/A_Short_RPM_Tutorial A Short RPM Tutorial] - Fedora wiki |
*[http://fedoraproject.org/wiki/A_Short_RPM_Tutorial A Short RPM Tutorial] - Fedora wiki |
||
+ | *[http://www.rpm.org/max-rpm/s1-rpm-build-creating-spec-file.html Creating a Spec File] rpm.org |
||
+ | |||
+ | [[Category:Developers]] |
Latest revision as of 11:07, 1 September 2011
Steps to building an RPM
- run rpmdev-setuptree to create ~/rpmbuild and subdirectories
- place the source code in ~/rpmbuild/SOURCES
- cd ~/rpmbuild/SPECS
- create a skeleton spec file: rpmdev-newspec NAMEOFPACKAGE
- edit the spec file as appropriate
- build the package: rpmbuild -ba *.spec
After the build completes, there are some QA checks that can be performed, and cross-platform testing. Once the package has passed those hurdles, it can be submitted to Fedora for review and inclusion.
Resources
External Links
- 15 Linux Yum Command Examples - The Geek Stuff Blog
- How to create an RPM package - Fedora wiki
- A Short RPM Tutorial - Fedora wiki
- Creating a Spec File rpm.org