diff --git a/subversion.changes b/subversion.changes index f367149..88f6061 100644 --- a/subversion.changes +++ b/subversion.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 25 12:32:43 UTC 2018 - tchvatal@suse.com + +- Use macro to compile python objects, do not do it by hand + ------------------------------------------------------------------- Fri Apr 27 18:31:07 UTC 2018 - antoine.belvire@opensuse.org diff --git a/subversion.spec b/subversion.spec index 5349d35..c0a0291 100644 --- a/subversion.spec +++ b/subversion.spec @@ -333,7 +333,7 @@ make DESTDIR=%{buildroot} install-swig-py install-swig-pl install-javahl install make DESTDIR=%{buildroot} install-ctypes-python # remove csvn .pyc files and recompile them because they contain the $RPM_BUILD_ROOT path: find "%{buildroot}%{python_sitelib}/csvn/" -name "*.pyc" | xargs rm -f -python "%{py_libdir}/compileall.py" -f -d "%{python_sitelib}/csvn" "%{buildroot}/%{python_sitelib}/csvn" +%py_compile %{buildroot}/%{python_sitelib}/csvn %endif %perl_process_packlist