Inclusion user rpm macros file in spec

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

 



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 
script.
Is there some variant of %include or similar?


-- 
With best wishes, Pavel Alexeev aka Pahan-Hubbitus.
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux