Macros in %files
Michael Schwendt
mschwendt at gmail.com
Fri Nov 14 16:39:07 UTC 2008
On Fri, 14 Nov 2008 08:55:57 -0700, Orion Poplawski wrote:
> Michael Schwendt wrote:
> > On Thu, 13 Nov 2008 22:50:04 -0700 (MST), Orion Poplawski wrote:
> >
> >> On Thu, November 13, 2008 10:36 pm, Mamoru Tasaka wrote:
> >>> Changing to %{!?python_sitearch: %global python_....}
> >>> works?
> >> That's the ticket. Some rpm change I guess I didn't quite pick up on...
> >
> > Alternatively, simply override it without any nested macros:
> >
> > %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
> >
>
> Well, it's take directly from:
>
> http://fedoraproject.org/wiki/Packaging/Python#System_Architecture
>
> If that doesn't work any more, it seems many spec templates may need to
> get changed.
True.
> I also count 1089 occurrences of this construct in current fedora spec
> files.
:)
I've searched a bit:
https://fedoraproject.org/wiki/Packaging/Minutes20070424
More information about the devel
mailing list