Macros in %files

Mamoru Tasaka mtasaka at ioa.s.u-tokyo.ac.jp
Fri Nov 14 05:36:31 UTC 2008


Orion Poplawski wrote, at 11/14/2008 07:47 AM +9:00:
> I'm reworking my plplot.spec and seeing the following build failure:
> 
> Processing files: plplot-5.9.0-2.svn8985.fc11
> + exit 0
> error: File must begin with "/": %{python_sitearch}/_plplotcmodule.so
> 
> spec has:
> 
> %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from 
> distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
> 
> at the top, and then:

Changing to %{!?python_sitearch: %global python_....}
works?

Regards,
Mamoru




More information about the fedora-devel-list mailing list