RPM Community Forums

Mailing List Message of <rpm-users>

Re: Spec file help

From: Anders F Björklund <afb@rpm5.org>
Date: Mon 22 Dec 2008 - 16:27:51 CET
Message-Id: <4C3262CC-BC44-4F8F-BE6A-41A6493CD69E@rpm5.org>
Eric MSP Veith wrote:

> Have a look at your macros file, a %_buildroot directive there has
> precedence over what is defined in the spec file.
> You should clean up the spec file a bit, though. Have a look at the  
> attached
> one.

The %{__make_install} macro is not defined by default,
so better to just use a "%{__make} install" there ?

Ditto with the "update-info-dir" script, so might want
to convert that to use the regular install-info(1) ?

And these lines are not needed anymore, with RPM 5:
Buildroot: %{_tmppath}/%{name}-root
[[ '%{buildroot}' != '/' ]] && %{__rm} -rf '%{buildroot}'
The BuildRoot is automatically handled by RPM now...

GCC and Make are normally in the default BuildRequires,
so not explicitly listed (might even come from non-rpm) ?

Received on Mon Dec 22 16:42:58 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.