SHA256
1
0
forked from pool/cpuid
cpuid/cpuid.spec
Jan Engelhardt 92fdeabf67 Accepting request 1079377 from home:eeich:branches:utilities
- Update to release 20230406:
  * Fixed bug when interpreting leaf 0xb and 0x1f bit widths:
    Interpret as bit *offsets*, not *widths* of leaf 4. This fixes off by 1
    in (APIC width synth) and incorrectly shifted (APIC synth) PKG_ID & CORE_ID
    values.
  * For 0xb/*/eax & 0x1f/*/eax, rename field to "bit width of
    level & previous levels" to reflect this definition.
  * Support APIC bit fields for the newest 4 topology
    layers: module, tile, die, die group.  And for the mp version, also
    the older cu & pkg levels.
  * Use the extended APIC ID's when available in a variety of leaves.
  * Support leaf 0xb method for AMD/Hygon.
  * Added prelim Bergamo A1 stepping from sample from @YuuKi_AnS.
  * Added 7/1/edx AMX-COMPLEX instructions.
  * Added 7/2/edx UC-lock disable.
  * Added 0x10/n/ecx non-contiguous 1s value supported.
  * Added 0x1c/ecx event logging supported bitmap.
  * Added 0x23/0/ebx decoding.
  * Decode 0x80000026/1/ebx core type & native model.
  * For 0x80000021/eax, capitalize REP STOSB & REP CMPSB to match
    Intel versions in 7/1/eax.
  * For 0x80000022/ecx, shorten description, show bitmask only in
    hex.
  * Update CPUID utility with new feature bits as documented in
    the AMD Processor Programming Reference for Family 19h and Model 11h:
    0x8000000a/edx extended LVT offset fault change
    0x80000021/eax enhanced predictive store forwarding, FSRS, FSRC,
    FsGsKernelGsBaseNonSerializing
    0x80000022/ebx number of available UMC PMCs
    0x80000022/ecx bitmask representing active UMCs

OBS-URL: https://build.opensuse.org/request/show/1079377
OBS-URL: https://build.opensuse.org/package/show/utilities/cpuid?expand=0&rev=45
2023-04-14 08:56:36 +00:00

58 lines
1.8 KiB
RPMSpec

#
# spec file for package cpuid
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: cpuid
Version: 20230406
Release: 0
Summary: x86 CPU identification tool
License: GPL-2.0-or-later
Group: System/Management
URL: http://etallen.com/cpuid.html
Source: http://etallen.com/cpuid/%name-%version.src.tar.gz
BuildRequires: gcc
BuildRequires: glibc-devel
BuildRequires: make
ExclusiveArch: %ix86 x86_64
%description
cpuid executes the CPUID instruction on x86-family CPUs and decodes
the results into English descriptions. It knows about Intel, AMD, and
Cyrix CPUs, and is fairly complete.
%prep
%autosetup
%build
# remove -Werror=format-security which is used on Mandriva, as it produces
# a false positive compiler error on several printf calls:
CFLAGS=$(echo "%optflags -Wall" | sed 's/-Werror=format-security//g')
%make_build CFLAGS="$CFLAGS"
%install
mkdir -p "%buildroot/%_bindir" "%buildroot/%_mandir/man1"
install -pm0755 cpuid cpuinfo2cpuid "%buildroot/%_bindir/"
install -pm0644 cpuid.man "%buildroot/%_mandir/man1/cpuid.1"
%files
%doc ChangeLog
%license LICENSE
%_bindir/*
%_mandir/man1/*.1*
%changelog