Inclusion user rpm macros file in spec

Pavel Alexeev (aka Pahan-Hubbitus) forum at
Sun May 16 15:27:15 UTC 2010

Hello, All!

I'm want share some rpm macros across few packages.
Try add it in separate file as source and install as devel file in package.

For example simple file, say testmacros as Source1 with next content:
%define testmacro() %{expand:%( echo TEST )}

Then, in spec file include it:
source %{SOURCE1}

but get error:
+ source testmacros
testmacros: line 1: syntax error near unexpected token `('

I think because macroses should be included before it processed as shell 
Is there some variant of %include or similar?

With best wishes, Pavel Alexeev aka Pahan-Hubbitus.

More information about the devel mailing list