How to create an RPM from a source tarball?
Ric Moore
wayward4now at gmail.com
Sat Aug 19 17:18:31 UTC 2006
On Sat, 2006-08-19 at 01:23 +0300, Kostas Sfakiotakis wrote:
> Greetings Aly,
>
> Aly Dharshi wrote:
> > Wouldn't it be a rpmbuild -ta source_tarball
>
> Exactly that. The command as you stated is :
>
> # rpmbuild -ta pine.tar.gz ( That would be pine , the email client ) .
>
> One note here , though , the Original Poster should be using Fedora Core
> 2 and above in order for the above command to work , for Fedora Core 1
> it is done differently ( man rpm would provide the way ).
>
> but it should have spec file in the tarball I believe, could be wrong.
>
> I believe you are not .
>
> Now as also stated
>
> # rpmbuild --rebuild would work but on *.src.rpm files only
>
> And a small addition for the Original Poster :
>
> http://www.rpm.org/RPM-HOWTO/
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]#
Ric
--
================================================
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
...the Sin of Ignorance, and
...the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
Linux user# 44256
Sign up at: http://counter.li.org/
http://www.sourceforge.net/projects/oar
http://www.wayward4now.net
================================================
More information about the fedora-list
mailing list