[Fedora-packaging] %bits macro?

Orion Poplawski orion at cora.nwra.com
Fri Feb 29 21:48:38 UTC 2008

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 

#if __WORDSIZE == 32
#include "myautoconfig-32.h"
#elif __WORDSIZE == 64
#include "myautoconfig-64.h"
#error "Unknown word size"

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


Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com

More information about the Fedora-packaging mailing list