diff --git a/subversion.spec b/subversion.spec index e45e905..832e26a 100644 --- a/subversion.spec +++ b/subversion.spec @@ -548,8 +548,8 @@ python_ctypes_target= %__make DESTDIR="$RPM_BUILD_ROOT" install install-swig-pl install-swig-py $python_ctypes_target $ruby_target $with_jdk %if %with_python_ctypes # remove csvn .pyc files and recompile them because they contain the $RPM_BUILD_ROOT path: -find "%{buildroot}%{py_sitedir}/csvn/" -name "*.pyc" | xargs %__rm -f -%__python "%{py_libdir}/compileall.py" -f -d "%{py_sitedir}/csvn" "%{buildroot}/%{py_sitedir}/csvn" +find "%{buildroot}%{py_prefix}/lib/python%{py_ver}/site-packages/csvn/" -name "*.pyc" | xargs %__rm -f +%__python "%{py_libdir}/compileall.py" -f -d "%{py_prefix}/lib/python%{py_ver}/site-packages/csvn" "%{buildroot}/%{py_prefix}/lib/python%{py_ver}/csvn" %endif # with_python_ctypes # # double check that the essential repository access schemes have been compiled in