libdir and python on x86_64
Shahms E. King
shahms at shahms.com
Wed Jun 1 00:30:41 UTC 2005
Use the python_sitearch or python_sitelib defines:
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
Pick the appropriate one, put it at the top of the specfile, and use
that rather than %{_libdir}. There's more information in the wiki.
These are also defined in the python spec template in fedora-rpmdevtools.
--Shahms
More information about the fedora-extras-list
mailing list