Fedora Linux Support Community & Resources Center
  #1  
Old 2nd April 2010, 09:47 PM
_lorenzo87_ Offline
Registered User
 
Join Date: Nov 2007
Location: Italy
Age: 25
Posts: 40
macossafari
questions about packaging on fedora

hi... i just got back to fedora after some months on debian sid and archlinux and i have some questions about making rpms from sources without having alredy a specfile... i googled on it but i found so few interesting howtos... so can someone give me some informations about making custom spec files and how to make rpms for fedora? i was used to dh_make and packagebuilds and i know nothing about rpms

thanks in advice
Reply With Quote
  #2  
Old 2nd April 2010, 09:58 PM
RahulSundaram Offline
Registered User
 
Join Date: May 2005
Posts: 3,549
linuxsafari
Re: questions about packaging on fedora

Hi

Have you looked at

http://fedoraproject.org/wiki/How_to...an_RPM_package

http://fedoraproject.org/wiki/Building_RPM_packages_(20090405)

If you have questions, feel free to ask
__________________
Rahul
http://fedoraproject.org/wiki/RahulSundaram
Reply With Quote
  #3  
Old 2nd April 2010, 10:01 PM
_lorenzo87_ Offline
Registered User
 
Join Date: Nov 2007
Location: Italy
Age: 25
Posts: 40
macossafari
Re: questions about packaging on fedora

thank you very much Rahul the second link is broken but the first one is great goin' to read
Reply With Quote
  #4  
Old 2nd April 2010, 10:27 PM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,118
linuxfedorafirefox
Re: questions about packaging on fedora

Hello, and welcome to the forum- First thing, make sure you have installed:
Code:
yum install rpm-build rpmdevtools redhat-rpm-config rpmlint
In Fedora, you build rpm packages as a regular user, not as root. After installing the above, in your regular user home directory, give the command: rpmdev-setuptree
That will create the directory rpmbuild with the appropriate sub-directories:
Code:
BASH:~/-> ls rpmbuild/
BUILD  BUILDROOT  RPMS  SOURCES  SPECS  SRPMS
You can 'cd rpmbuild/SPECS' then: rpmdev-newspec [appname.spec] If you omit the appname.spec option, it will create a basic spec file template using the name "newpackage.spec", which you can rename to suit your needs. You can find a lot of very useful information by reading the files located under these varios directories:
Code:
BASH:~/-> ls /usr/share/doc/rpm <hit TAB key twice>
rpm-4.7.2/       rpmdevtools-7.8/ rpmlint-0.95/    rpmrebuild-2.4/
For guidance on the official Fedora way of building rpm packages, go to:
Packaging Guidelines
RPM Guide
How To Create an RPM Package

There are many other helpful guides on the Fedora Project wiki site for guidance on building rpm packages. But this should be enough to get you started.
Reply With Quote
  #5  
Old 2nd April 2010, 10:32 PM
_lorenzo87_ Offline
Registered User
 
Join Date: Nov 2007
Location: Italy
Age: 25
Posts: 40
macossafari
Re: questions about packaging on fedora

thanks Pablo another great answer i'll try to use your links and Rhaul's for starting with small packages..
Reply With Quote
  #6  
Old 2nd April 2010, 10:37 PM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,118
linuxfedorafirefox
Re: questions about packaging on fedora

Glad to help. You might also want to read through the 2 page thread on this "Packaging" forum, I think titled "How do I join Fedora Project". The discussion there evolves into packaging help and Leigh123 gives a lot of good links to info in that thread.
Reply With Quote
Reply

Tags
fedora, packaging, questions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Packaging flebber Using Fedora 4 25th December 2006 01:48 AM
Packaging a custom kernel, the Fedora Way™? Thetargos Programming & Packaging 0 22nd October 2005 12:02 AM


Current GMT-time: 15:15 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat