[PLUG] rpm spec file macro expansion

Paul Heinlein heinlein at madboa.com
Mon Oct 3 16:32:09 UTC 2005


On Sun, 2 Oct 2005, Galen Seitz wrote:

> I'm trying to build some cross tools for the AVR microcontrollers, 
> and I need to work around an issue with file collisions.  When I 
> build cross versions of binutils, gcc, and gdb, the info files that 
> get created have the same name and path as the corresponding files 
> for the native host tools.  In order to eliminate the conflict, I'd 
> like to do something like the following in my spec file:
>
> %define _infodir %{_infodir}/avr

Generally, I'd just a) specify your longer path throughout the spec 
file or b) define _infodir with a macro further up the chain or with a 
full pathname

a) When building and installing, specify --infodir=%{_infodir}/avr,
    and include that path in your %files section.

b) %define _infodir %{_datadir}/info/avr

    or

    %define _infodir /usr/share/info/avr

-- 
Paul Heinlein <> heinlein at madboa.com <> www.madboa.com



More information about the PLUG mailing list