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.

-- 
Chris
Registered Linux User 283774 http://counter.li.org
21:32:40 up 39 days, 35 min, 3 users, load average: 0.34, 0.79, 0.74
Mandriva Linux 10.1 Official, kernel 2.6.8.1-12mdk

Attachment: pgp1NRtyoe8Nz.pgp
Description: PGP signature

Reply via email to