On Thu Feb 07, 2002 at 07:43:31AM -0700, SoloCDM wrote: > > > What options are needed with the rpm command to build a RPM from a > > > tarball? > > > > > rpm <options> <whatever_name>.tar.gz > > > > rpm -ta (file).tar.gz will build a bin/source rpm, so you could likely > > just do rpm -tb to build the binary only. > > I have problems with the execution of the options on a tarball, which > reflects in the following: > > Name field must be present in package: (main package) > Version field must be present in package: (main package) > Release field must be present in package: (main package) > Summary field must be present in package: (main package) > Group field must be present in package: (main package) > License field must be present in package: (main package) > > I take it that this means there needs to be a spec file or what?
Yes, there should be a spec file in the tarball. I don't know all of the specifics (ie. where the spec file should be located, etc.) because I've never really played with this, but I suspect that rpm must have a spec to work with. If you want to convert a tarball to rpm, you probably want to use something like alien (I think it does that), or some other conversion program. -- MandrakeSoft Security, OpenPGP key available on www.keyserver.net 1024D/FE6F2AFD 88D8 0D23 8D4B 3407 5BD7 66F9 2043 D0E5 FE6F 2AFD Current Linux kernel 2.4.8-34.1mdk uptime: 15 days 16 hours 49 minutes.
msg00068/pgp00000.pgp
Description: PGP signature
