spec file for rpms

Paul W. Frields stickster at gmail.com
Mon Sep 22 20:32:23 UTC 2008


On Mon, 2008-09-22 at 11:50 -0600, Phil Meyer wrote:
> David Hláèik wrote:
> > Hi guys,
> >
> > i am new at this.
> >
> > I want to make a rpm from a program source. It does not contain rpm 
> > spec file by default so i need to create one.
> >
> > Is there any way to make creation of spec files easier? some tools etc 
> > ... ?
> >
> > Thanks in advance!
> >
> > David
> 
> Both vim and emacs will create a basic spec for you by simply editing a 
> non existant spec file.
> 
> $ vim new.spec
> 
> will create a basic spec file if new.spec does not exist in the current 
> directory.
> 
> However, creating good spec files is a bit of a black art, I am afraid 
> to say.
> 
> You will need to install:
> 
> rpmdevtools
> 
> and run:
> 
> /usr/bin/rpmdev-setuptree
> 
> That creates your rpmbuild directory tree.
> 
>  From there, you will find the field is broad, and the sky is the limit. :)

And you can use 'rpmdev-newspec' to create a skeleton specfile, making
things even easier.  Run 'rpmdev-newspec --help' to see some available
options and other guidance.

-- 
Paul W. Frields
  gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233  5906 ACDB C937 BD11 3717
  http://paul.frields.org/   -  -   http://pfrields.fedorapeople.org/
  irc.freenode.net: stickster @ #fedora-docs, #fedora-devel, #fredlug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080922/4fab05a3/attachment-0001.sig>


More information about the fedora-list mailing list