How to create an RPM from a source tarball?

Aly Dharshi aly.dharshi at telus.net
Sun Aug 20 05:59:30 UTC 2006


For an example try the apache build I believe it has a .spec file in the 
tarball, that should help you see how it works.

Kostas Sfakiotakis wrote:
> Greetings Aly
> Aly Dharshi wrote:
>>
>>> I guess the rpmbuild process has specifics that it needs within the 
>>> tarball:
>>>
>>> root at wayward4now Desktop]# rpmbuild -ta nxbuilder-2.0.0-23.tar.gz
>>> error: Name field must be present in package: (main package)
>>> error: Version field must be present in package: (main package)
>>> error: Release field must be present in package: (main package)
>>> error: Summary field must be present in package: (main package)
>>> error: Group field must be present in package: (main package)
>>> error: License field must be present in package: (main package)
>>> [root at wayward4now Desktop]#
>>
> 
> The above error is printed when the tarball doesn't include a *.spec file .
> 
> 
>> Which is a spec file, to tell the rpmbuild -ta command (and 
>> parameters) how to build the package to an end rpm.
> 
> After several failed attempts i have found that rpmbuild will be 
> successful when the spec file is present and in the root directory of 
> the tarball .
> 
> HTH,
> 
> Kostas
> 

-- 
Aly Dharshi
aly.dharshi at telus.net
http://www.mytelus.com/tv

          "A good speech is like a good dress
           that's short enough to be interesting
           and long enough to cover the subject"




More information about the fedora-list mailing list