From ce91597f58d9e23796f67bb408e3e2eff178ad3f565b6333de02db7fcfec5887 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 13 Aug 2011 06:20:56 +0000 Subject: [PATCH] fix the compileall path OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm:svn/subversion?expand=0&rev=63 --- subversion.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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