[packages/kernel-tools] compile python scripts for python3

atler atler at pld-linux.org
Sat Oct 8 00:36:19 CEST 2022


commit ab2e3b2c2c805427a80f50dfac4517132c2e22b8
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Oct 8 00:35:55 2022 +0200

    compile python scripts for python3

 kernel-tools.spec | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/kernel-tools.spec b/kernel-tools.spec
index bd0ce68..924922c 100644
--- a/kernel-tools.spec
+++ b/kernel-tools.spec
@@ -606,8 +606,8 @@ install -p tools/power/cpupower/debug/x86_64/{centrino,powernow-k8}-decode $RPM_
 	lib=%{_lib} \
 	DESTDIR=$RPM_BUILD_ROOT
 
-%py_comp $RPM_BUILD_ROOT%{_libdir}/perf-core/scripts/python
-%py_ocomp $RPM_BUILD_ROOT%{_libdir}/perf-core/scripts/python
+%py3_comp $RPM_BUILD_ROOT%{_libdir}/perf-core/scripts/python
+%py3_ocomp $RPM_BUILD_ROOT%{_libdir}/perf-core/scripts/python
 
 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/perf-core/tests
 %endif
@@ -777,10 +777,12 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_libdir}/perf-core/scripts/python/Perf-Trace-Util/lib
 %dir %{_libdir}/perf-core/scripts/python/Perf-Trace-Util/lib/Perf
 %dir %{_libdir}/perf-core/scripts/python/Perf-Trace-Util/lib/Perf/Trace
-%{_libdir}/perf-core/scripts/python/Perf-Trace-Util/lib/Perf/Trace/*.py*
+%{_libdir}/perf-core/scripts/python/Perf-Trace-Util/lib/Perf/Trace/*.py
+%{_libdir}/perf-core/scripts/python/Perf-Trace-Util/lib/Perf/Trace/__pycache__/*.py[co]
 %dir %{_libdir}/perf-core/scripts/python/bin
 %attr(755,root,root) %{_libdir}/perf-core/scripts/python/bin/*
-%{_libdir}/perf-core/scripts/python/*.py*
+%{_libdir}/perf-core/scripts/python/*.py
+%{_libdir}/perf-core/scripts/python/__pycache__/*.py[co]
 
 %dir %{_libdir}/traceevent
 %dir %{_libdir}/traceevent/plugins
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel-tools.git/commitdiff/ab2e3b2c2c805427a80f50dfac4517132c2e22b8



More information about the pld-cvs-commit mailing list