diff --git a/PyKDE.spec b/PyKDE.spec index 529bf5b..4bdbb75 100644 --- a/PyKDE.spec +++ b/PyKDE.spec @@ -21,7 +21,7 @@ Patch3: PyKDE-3.16.0-python25.patch BuildRequires: python-devel >= 2.3 %global python_ver %(%{__python} -c "import sys ; print sys.version[:3]") -%global python_sitedir %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)") +%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)") ## python >=2.4 automatically uses python(abi) %if "%{?python_ver}" > "1" && "%{?python_ver}" < "2.4" Requires: python-abi = %{python_ver} @@ -75,7 +75,7 @@ Sip files and documentation needed for developing with %{name} %build unset QTDIR || : ; source /etc/profile.d/qt.sh -%{__python} configure.py -L %{_lib} -d %{python_sitedir} +%{__python} configure.py -L %{_lib} -d %{python_sitearch} # smp broken, do the best we can make -k %{?_smp_mflags} || make @@ -97,7 +97,7 @@ rm -rf $RPM_BUILD_ROOT %doc AUTHORS ChangeLog COPYING NEWS README THANKS %{_bindir}/* %{_libdir}/libkonsolepart.* -%{python_sitedir}/* +%{python_sitearch}/* %files devel %defattr(-,root,root,-)