[Fedora-packaging] %bits macro?
Patrice Dumas
pertusus at free.fr
Fri Feb 29 22:50:05 UTC 2008
On Fri, Feb 29, 2008 at 02:48:38PM -0700, Orion Poplawski wrote:
> It might me useful to have a %bits macro automatically set to 32 or 64 as
> appropriate. Does this seem useful or is there a better way?
>
> I'm try to follow the following tip from
> http://fedoraproject.org/wiki/PackagingDrafts/MultilibTricks:
>
> #if __WORDSIZE == 32
> #include "myautoconfig-32.h"
> #elif __WORDSIZE == 64
> #include "myautoconfig-64.h"
> #else
> #error "Unknown word size"
> #endif
>
> So in my spec I want to move "myautoconfig.h" to "myautoconfig-32.h" (or
> 64) as appropriate. Would be nice to do:
>
> mv myautoconfig.h myautoconfig-%{bits}.h
>
> Thoughts?
You can use %_arch instead.
--
Pat
More information about the Fedora-packaging
mailing list