File x86info.spec of Package x86info

# spec file for package x86info
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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.30
Release:        0
Summary:        Show x86 CPU Information
License:        GPL-2.0
Group:          System/Monitoring
Source:         %{name}-%{version}.tar.xz
BuildRequires:  pciutils-devel
BuildRequires:  python
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
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.

%setup -q

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

mkdir -p %{buildroot}%{_prefix}/bin
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_prefix}/sbin
mkdir -p %{buildroot}%{_mandir}/man8
install -m 755 x86info %{buildroot}%{_prefix}/bin
install -m 644 x86info.1 %{buildroot}%{_mandir}/man1
install -m 755 lsmsr/lsmsr %{buildroot}%{_prefix}/sbin
install -m 644 lsmsr/lsmsr.8 %{buildroot}%{_mandir}/man8

%defattr(-, root, root)

openSUSE Build Service is sponsored by