Complex conditional %define in .rpmmacros

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

 



Hi there

I have a group of packages that i have to create different versions
based on the compiler brand and version.
These variables ( compiler brand and version ) define some features of
the binary rpms i'm generating,
like "%_prefix", "%release" , "%optflags" and so on ...

My idea is to make something like this http://pastebin.com/EHKwE59C

I can do it with a few "%if ... %else ... %endif" , in the package spec file,
but i'd like to put in ~/.rpmacros to avoid the copy & paste to every
.spec file. Eeek!

I also tried the lua bindings, but no deal too.

The machine is running centos 5.8 x86-64 , rpm version 4.4.2.3

TIA
Fabricio
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/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