diff --git a/libpfm-python3.patch b/libpfm-python3.patch index ee9de48..7e8431c 100644 --- a/libpfm-python3.patch +++ b/libpfm-python3.patch @@ -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 diff --git a/libpfm.changes b/libpfm.changes index d70f6ad..5ee3a93 100644 --- a/libpfm.changes +++ b/libpfm.changes @@ -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 diff --git a/libpfm.spec b/libpfm.spec index efb39a6..d5d6055 100644 --- a/libpfm.spec +++ b/libpfm.spec @@ -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