From c9302d43e1992556170ca62e3fe7fc05ea8d270028f2479e3e284489042f94dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 23 Jan 2018 08:56:57 +0000 Subject: [PATCH] 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 --- libpfm-python3.patch | 2 +- libpfm.changes | 6 ++++++ libpfm.spec | 5 ----- 3 files changed, 7 insertions(+), 6 deletions(-) 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