RPM build error

Mertens, Bram mertensb at mazdaeur.com
Tue Jun 30 10:19:04 UTC 2009


> 


Mazda Motor Logistics Europe NV, Blaasveldstraat 162, B-2830 Willebroek
VAT BE 0406.024.281, RPR Mechelen, ING  310-0092504-52, IBAN : BE64 3100 0925 0452, SWIFT : BBRUBEBB

-----Original Message-----
> From: redhat-list-bounces at redhat.com [mailto:redhat-list-
> bounces at redhat.com] On Behalf Of a bv
> Sent: dinsdag 30 juni 2009 11:00
> To: redhat-list at redhat.com
> Subject: RPM build error
> 
> Hi list,
> 
> On a Redhat EL 5.x machine i have used the command rpmbuild -ta
> filename.tar tu build a rpm package but i had the below error. Im new
> to building rpm packages so im in a need to fix this.
> 
> 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 haven't build RPM packages directly from tar files yet but it seems to
me that the tar file either doesn't have a SPEC file included or if it
does it is missing some required fields.

Try listing the contents of the tar file and look for a file with
extension .spec:
Tar tf filename.tar|grep spec

If this doesn't return anything you'll need to write your own spec file
or look for one on the web.

HTH

Bram




More information about the redhat-list mailing list