Chris ([EMAIL PROTECTED]) wrote:
> On Friday 07 April 2006 9:23 pm, John Bowden wrote:
> > Chris writes:
> 
> > > 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)
> > >
> > > I'm sure I'm doing something wrong here, however, the archives didn't
> > > seem to be much help.  Can I build a source rpm from a .gz file?  The
> > > rpmbuild man page says it can be done or thats the way I read it.
> > >
> > > Any help would be appreciated.
> > >
> > > Thanks
> 
> >
> > I may not be much help here as I use Mandriva control centre to
> > install but have you uncompressed the gz file into the
> > /usr/src/RPMS/SOURCES  first and then run the rpmbuild command?
> >
> 
> Yep, tried that which gives me:
> 
> [EMAIL PROTECTED] SOURCES]# rpmbuild -ts -bs clamav-0.88.1
> error: File clamav-0.88.1 is smaller than 4 bytes
> cat: -: Is a directory
> cat: -: Is a directory
> 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)
> 
> One thing I just tried was to run gzip -d on the file which gave me just 
> clamav-0.88.1.tar, but running:
> 
> [EMAIL PROTECTED] SOURCES]# rpmbuild -ts clamav-0.88.1.tar
> 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)
> 
> still gives the errors.  At this point I'm unsure where the above would be 
> located, they're not in the clamav source that I can find.
> 
Why are you doing that ? Oden and Vincent have done a lot of work
for this 8) 
you can download the srpm from here:
ftp://ftp.uvsq.fr/pub/mandrake/official/updates/2006.0/SRPMS/clamav-0.88-0.1.20060mdk.src.rpm

To answer your question though, what your missing is a spec file:
e.g.
[EMAIL PROTECTED]:~/rpmbuild/SPECS]$> cat idesk.spec
%define name idesk
%%define version 0.7.4
%%define release %mkrel 1
%
%Version:        %{version}
%Summary:        Plops icons on your root window
%Name:           %{name}
%Release:        %{release}
%License:        GPL
%Group:          Graphical desktop/Other
%Source:         %{name}-%{version}.tar.bz2

HTH
-- 
RickS
By golly, I'm beginning to think Linux really *is* the best thing
since sliced bread.
        -- Vance Petree, Virginia Power
____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to