Skip to content

Commit 66da0ea

Browse files
committed
redhat/kernel.spec: make python3-perf glob more specific
JIRA: https://issues.redhat.com/browse/RHEL-119658 Upstream Status: ARK commit 21ff03e3f35bfa42a0f86aa4eba356d56608c88e commit 21ff03e3f35bfa42a0f86aa4eba356d56608c88e Author: Jan Stancek <jstancek@redhat.com> Date: Fri Oct 17 08:31:25 2025 +0200 redhat/kernel.spec: make python3-perf glob more specific With introduction of pylibcpupower, python3-perf now includes it as well: kernel-tools-libs-devel-6.12.0-138.el10.x86_64 provides /usr/lib64/python3.12/site-packages/_raw_pylibcpupower.so which is also provided by python3-perf-6.12.0-136.el10.x86_64 kernel-tools-libs-devel-6.12.0-138.el10.x86_64 provides /usr/lib64/python3.12/site-packages/raw_pylibcpupower.py which is also provided by python3-perf-6.12.0-136.el10.x86_64 Make the glob for python3-perf more specific, so it includes only perf-related files. Also add missing pycache entry for raw_pylibcpupower. Signed-off-by: Jan Stancek <jstancek@redhat.com> Signed-off-by: Jan Stancek <jstancek@redhat.com>
1 parent b8bd692 commit 66da0ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

redhat/kernel.spec.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4046,7 +4046,7 @@ fi\
40464046
%{_docdir}/perf-tip/tips.txt
40474047

40484048
%files -n python3-perf
4049-
%{python3_sitearch}/*
4049+
%{python3_sitearch}/perf*
40504050

40514051
%if %{with_debuginfo}
40524052
%files -f perf-debuginfo.list -n perf-debuginfo
@@ -4154,6 +4154,8 @@ fi\
41544154
# libcpupower Python bindings
41554155
%{python3_sitearch}/_raw_pylibcpupower.so
41564156
%{python3_sitearch}/raw_pylibcpupower.py
4157+
%{python3_sitearch}/__pycache__/raw_pylibcpupower*
4158+
41574159
%endif
41584160
%if %{with_ynl}
41594161
%{_libdir}/libynl*

0 commit comments

Comments
 (0)