From a240ad0dc7d47fec67c6780dc67070ff27fbd327 Mon Sep 17 00:00:00 2001 From: John Kacur Date: Wed, 16 Dec 2020 00:59:09 -0500 Subject: [PATCH] Use the %pycached macro as described in the packaging-guidlines for Python --- realtime-tests.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/realtime-tests.spec b/realtime-tests.spec index 52e0c15..32731eb 100644 --- a/realtime-tests.spec +++ b/realtime-tests.spec @@ -6,7 +6,7 @@ Name: realtime-tests # Numa argument to make: NUMA=1 # Version: 1.9 -Release: 7%{?dist} +Release: 8%{?dist} License: GPLv2 URL: https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git Source0: https://www.kernel.org/pub/linux/utils/rt-tests/rt-tests-%{version}.tar.xz @@ -44,8 +44,7 @@ latency. It also tests the functioning of priority-inheritance mutexes. %make_install prefix=%{_prefix} %files -%{python3_sitelib}/hwlatdetect.py* -%{python3_sitelib}/__pycache__/hwlatdetect* +%pycached %{python3_sitelib}/hwlatdetect.py %caps(cap_sys_rawio+ep) /usr/bin/cyclictest %{_bindir}/pi_stress %{_bindir}/signaltest @@ -64,8 +63,7 @@ latency. It also tests the functioning of priority-inheritance mutexes. %{_bindir}/oslat %{_bindir}/determine_maximum_mpps.sh %{_bindir}/get_cyclictest_snapshot -%{python3_sitelib}/get_cyclictest_snapshot.py* -%{python3_sitelib}/__pycache__/get_cyclictest_snapshot* +%pycached %{python3_sitelib}/get_cyclictest_snapshot.py %doc %{_mandir}/man8/cyclictest.8.* %{_mandir}/man8/hackbench.8.* @@ -87,6 +85,9 @@ latency. It also tests the functioning of priority-inheritance mutexes. %{_mandir}/man8/determine_maximum_mpps.8.* %changelog +* Wed Dec 16 2020 John Kacur - 1.9-8 +- Use the %%pycached macro as described in the packaging-guidlines for Python + * Fri Dec 11 2020 John Kacur - 1.9-7 - Escape all necessary percent symbols in the changelog - Remove some unncessary constructs in the rpm file