Unable to find Specfile in Archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

Having a strange issue. I am trying to create an RPM from a gzipped tarball (though I've also tried plain tar and Bzip'ed and am having the same issue).

This is my build command:

rpmbuild --define "_rpmdir `pwd`" \
--define '_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' \
        -tb packages/gotmail-0.8.9.tar.gz

I get the error messages:

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)
make: *** [rpm] Error 1

Now - I know this suggests the spec file isn't in the tar. But it is in there:

# tar -tf gotmail-0.8.9.tar.gz
gotmail-0.8.9/
gotmail-0.8.9/gotmail
gotmail-0.8.9/NEWS
gotmail-0.8.9/gotmail.man
gotmail-0.8.9/README
*** gotmail-0.8.9/gotmail.spec ***
gotmail-0.8.9/sample.gotmailrc
gotmail-0.8.9/PRESSRELEASE
gotmail-0.8.9/Makefile
gotmail-0.8.9/ChangeLog
gotmail-0.8.9/gotmail4evolution
gotmail-0.8.9/VERSION
gotmail-0.8.9/AUTHORS
gotmail-0.8.9/COPYING

I did an strace of the rpmbuild process and got:

Specfile: Not found in archive

I have no idea why it can't find the spec file in the archive and am stumped. What's worse is that it worked last time I built the package!

My environment:

Fedora Core 5 (2.6.17-1.2187_FC5)
RPM version 4.4.2

any help much appreciated!

Regards

James Turnbull

--
James Turnbull <james@xxxxxxxxxxxxxxxxx>
---
Author of Pro Nagios 2.0
(http://www.amazon.com/gp/product/1590596099/)

Hardening Linux
(http://www.amazon.com/gp/product/1590594444/)
---
PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40)

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux