Macros in %files

Orion Poplawski orion at cora.nwra.com
Fri Nov 14 15:55:57 UTC 2008


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.

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 at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com




More information about the fedora-devel-list mailing list