]> git.pld-linux.org Git - packages/kernel-tools.git/commitdiff
compile python scripts for python3 auto/th/kernel-tools-6.0.0-1
authorJan Palus <atler@pld-linux.org>
Fri, 7 Oct 2022 22:35:55 +0000 (00:35 +0200)
committerJan Palus <atler@pld-linux.org>
Fri, 7 Oct 2022 22:35:55 +0000 (00:35 +0200)
kernel-tools.spec

index bd0ce6817950988674b224e7cfacf75b210b64b5..924922c455cf7dd256ed46fba7e6f0fadda52964 100644 (file)
@@ -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
This page took 0.264454 seconds and 4 git commands to generate.