Fix architecture list

Explicitly limit to x86 and ARM instead of explicitly excluding
all other architectures.

This ensures that the package keeps behaving correctly as more
architectures (e.g. riscv64) are introduced.

Resolves: RHEL-154273

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
Andrea Bolognani 2026-03-09 13:52:02 +01:00
parent f196e055af
commit 7d56915e59

View File

@ -1,6 +1,6 @@
Name: libcpuid Name: libcpuid
Version: 0.7.0 Version: 0.7.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: Provides CPU identification for x86 and ARM Summary: Provides CPU identification for x86 and ARM
License: BSD-2-Clause License: BSD-2-Clause
URL: https://github.com/anrieff/libcpuid URL: https://github.com/anrieff/libcpuid
@ -8,7 +8,7 @@ Source0: https://github.com/anrieff/libcpuid/archive/v%{version}.tar.gz#/
# https://github.com/anrieff/libcpuid/pull/203 # https://github.com/anrieff/libcpuid/pull/203
Patch0: 0001-Python-Refactor-the-build-of-the-bindings.patch Patch0: 0001-Python-Refactor-the-build-of-the-bindings.patch
Patch1: 0002-Python-Do-not-fail-sanity-tests-if-current-CPU-is-un.patch Patch1: 0002-Python-Do-not-fail-sanity-tests-if-current-CPU-is-un.patch
ExcludeArch: ppc64le s390x ExclusiveArch: %{ix86} x86_64 %{arm} aarch64
BuildRequires: automake BuildRequires: automake
BuildRequires: autoconf BuildRequires: autoconf
@ -90,6 +90,10 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} %pytest python/tests
%changelog %changelog
* Mon Mar 09 2026 Andrea Bolognani <abologna@redhat.com> - 0.7.0-3
- Fix architecture list (explicitly limit to x86 and ARM)
Resolves: RHEL-154273
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.7.0-2 * Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.7.0-2
- Bump release for October 2024 mass rebuild: - Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018 Resolves: RHEL-64018