File x86info.spec of Package x86info

# spec file for package x86info
# Copyright (c) 2022 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

Name:           x86info
Version:        1.31+git.20200121
Release:        0
Summary:        Tool to show x86 CPU Information
License:        GPL-2.0-only
Group:          System/Monitoring
Source:         %{name}-%{version}.tar.xz
Patch0:         use-python3.patch
BuildRequires:  pkgconfig
BuildRequires:  python3
BuildRequires:  pkgconfig(libpci)
ExclusiveArch:  %{ix86} x86_64

Unlike other 'cpuinfo' tools which just parse /proc/cpuinfo, x86info
probes the CPU registers to find out more information. It can discover
the contents of model-specific registers, discover CPU silicon
revisions, and more.

%autosetup -p1

make CFLAGS="%{optflags} -Iinclude -DVERSION=%{version}" %{?_smp_mflags} V=1
make CFLAGS="%{optflags} -I. -I../include" %{?_smp_mflags} -C lsmsr V=1

install -Dpm 0575 x86info \
install -Dpm 0644 x86info.1 \
install -Dpm 0755 lsmsr/lsmsr \
install -Dpm 0644 lsmsr/lsmsr.8 \

%license COPYING

openSUSE Build Service is sponsored by