File msr-tools.spec of Package msr-tools

# spec file for package msr-tools
# Copyright (c) 2019 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:           msr-tools
Version:        1.3.git10
Release:        0
Summary:        Tool for reading and writing MSRs (model specific register)
License:        GPL-2.0-or-later
Group:          System/Base
Source:         %{name}-%{version}.tar.xz
Source1:        COPYING
Patch1:         %{name}-xen_physical_msr_support.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  %ix86 x86_64
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool

Tool to read and write MSRs (model specific registers). You have to
load the "msr" module manually ("modprobe msr").

%autosetup -p1

make %{?_smp_mflags} CFLAGS="%{optflags}"

mkdir -p %{buildroot}/%{_sbindir}
cp %{SOURCE1} .
install -m 0755 rdmsr wrmsr msr-cpuid %{buildroot}/%{_sbindir}

%license COPYING

openSUSE Build Service is sponsored by