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

Re: Macros in %files

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_....}
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:


If that doesn't work any more, it seems many spec templates may need to get changed.

I also count 1089 occurrences of this construct in current fedora spec files.

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

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