Re: Inclusion user rpm macros file in spec

2010-06-04 Thread Pavel Alexeev (aka Pahan-Hubbitus)
30.05.2010 21:19, Pavel Alexeev (aka Pahan-Hubbitus) ?: 21.05.2010 20:58, Panu Matilainen ?: On Fri, 21 May 2010, Kevin Kofler wrote: Pavel Alexeev (aka Pahan-Hubbitus) wrote: I think because macroses should be included before it processed as shell script. Is there some var

Re: Inclusion user rpm macros file in spec

2010-05-30 Thread Pavel Alexeev (aka Pahan-Hubbitus)
21.05.2010 20:58, Panu Matilainen ?: On Fri, 21 May 2010, Kevin Kofler wrote: Pavel Alexeev (aka Pahan-Hubbitus) wrote: I think because macroses should be included before it processed as shell script. Is there some variant of %include or similar? AFAIK, no. E.g. in kde-f

Re: Inclusion user rpm macros file in spec

2010-05-21 Thread Panu Matilainen
On Fri, 21 May 2010, Kevin Kofler wrote: > Pavel Alexeev (aka Pahan-Hubbitus) wrote: >> I think because macroses should be included before it processed as shell >> script. >> Is there some variant of %include or similar? > > AFAIK, no. E.g. in kde-filesystem, we end up defining things twice, once

Re: Inclusion user rpm macros file in spec

2010-05-20 Thread Kevin Kofler
Pavel Alexeev (aka Pahan-Hubbitus) wrote: > I think because macroses should be included before it processed as shell > script. > Is there some variant of %include or similar? AFAIK, no. E.g. in kde-filesystem, we end up defining things twice, once for the specfile itself and once for the .macros f

Inclusion user rpm macros file in spec

2010-05-16 Thread Pavel Alexeev (aka Pahan-Hubbitus)
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 %{S