Accepting request 568493 from openSUSE:Factory:Staging:O

- Remove useless byte-compiling for py2 that breaks py3 only build
- Update libpfm-python3.patch to fix one stray identation issue

OBS-URL: https://build.opensuse.org/request/show/568493
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libpfm?expand=0&rev=32
This commit is contained in:
Tomáš Chvátal 2018-01-23 08:56:57 +00:00 committed by Git OBS Bridge
parent 8aba95afba
commit c9302d43e1
3 changed files with 7 additions and 6 deletions

View File

@ -22,7 +22,7 @@ Index: libpfm-4.9.0/python/src/pmu.py
+ print(e.info.name, e.info.code)
for a in e.attrs():
- print '\t\t', a.name, a.code
+ print('\t\t', a.name, a.code)
+ print('\t\t', a.name, a.code)
Index: libpfm-4.9.0/python/sys.py
===================================================================
--- libpfm-4.9.0.orig/python/sys.py

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jan 23 08:52:49 UTC 2018 - tchvatal@suse.com
- Remove useless byte-compiling for py2 that breaks py3 only build
- Update libpfm-python3.patch to fix one stray identation issue
-------------------------------------------------------------------
Wed Jan 17 15:52:07 UTC 2018 - tchvatal@suse.com

View File

@ -122,11 +122,6 @@ pushd python
%python_install
popd
# temp hack to fix rpmlint file-contains-buildroot for *.pyc
# http://lists.opensuse.org/opensuse-factory/2012-01/msg00235.html
find "%{buildroot}/%{python_sitearch}/" -name '*.pyc' -delete
python -c 'import compileall; compileall.compile_dir("%{buildroot}%{python_sitearch}/", ddir="%{python_sitearch}/", force=1)'
%post -n %{vname} -p /sbin/ldconfig
%postun -n %{vname} -p /sbin/ldconfig