Limit libcpupower dependency to where it is present

JIRA: https://issues.redhat.com/browse/RHEL-65488

Only add BuildRequires for kernel-tools-libs-devel on architectures
which are in kernel's cpupowerarchs, i.e. i686, x86_64, ppc64le,
aarch64.

Signed-off-by: Tomas Glozar <tglozar@redhat.com>
This commit is contained in:
Tomas Glozar 2024-12-13 12:48:21 +01:00
parent 2562766d45
commit 3c987f307d

View File

@ -1,7 +1,7 @@
Name: realtime-tests
Summary: Programs that test various rt-features
Version: 2.8
Release: 2%{?dist}
Release: 3%{?dist}
License: GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND LGPL-2.1-or-later
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
@ -11,7 +11,10 @@ BuildRequires: make
BuildRequires: gcc
BuildRequires: numactl-devel
BuildRequires: python3-devel
# Architectures we build tools/cpupower on
%ifarch i686 x86_64 ppc64le aarch64
BuildRequires: kernel-tools-libs-devel
%endif
Requires: bash
Requires: bc
@ -75,7 +78,11 @@ latency. It also tests the functioning of priority-inheritance mutexes.
%{_mandir}/man8/determine_maximum_mpps.8.*
%changelog
* Wed Dec 09 2024 Tomas Glozar <tglozar@redhat.com> - 2.8-2
* Fri Dec 13 2024 Tomas Glozar <tglozar@redhat.com> - 2.8-3
- Limit libcpupower dependency to where it is present
Resolves: RHEL-65488
* Wed Dec 04 2024 Tomas Glozar <tglozar@redhat.com> - 2.8-2
- Fix building against libcpupower
Resolves: RHEL-65488