- Use macro to compile python objects, do not do it by hand

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm:svn/subversion?expand=0&rev=283
This commit is contained in:
Tomáš Chvátal 2018-07-25 13:14:45 +00:00 committed by Git OBS Bridge
parent 2c1b809338
commit 041a8b520a
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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