Re: Building from tar ball without a version string?

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

 



In regard to: Re: Building from tar ball without a version string?, Zac...:

From: Panu Matilainen <pmatilai@xxxxxxxxxxxxxxx>

Any ideas on how to tell rpmbuild to NOT demand a $version?

In %prep section of the spec:

%setup -n %{name}

..instead of plain %setup which actually is equal to %setup -n
%{name}-%{version}.

- Panu -

Brilliant!!!!  It works with just one snag which is not related to the
answer so maybe this needs a new subject.

After downloading the tarball  I attempt a build.

#rpmbuild -vv -tb demo.tar.gz
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 very much recommend you don't build as root, if you can at all avoid it.
Either build as your normal user, or create a special account (or role) for
package building.

I've seen that exact set of errors happen when the top portion of the spec file has comments, and those comments include something like %build
or %patch.  If you have comments at the top of your spec file, make sure
that you escape (by doubling up the % signs) any tokens that RPM might
expand.

Tim
--
Tim Mooney                              mooney@xxxxxxxxxxxxxxxxxxxxxxxxx
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

_______________________________________________
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