File msr-tools.spec of Package msr-tools
#
# spec file for package msr-tools
#
# Copyright (c) 2011 SUSE LINUX Products 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: msr-tools
Url: http://www.kernel.org/pub/linux/utils/cpu/msr-tools/
Summary: Tool for reading and writing MSRs (model specific register)
Version: 1.2
Release: 1
License: GPL-2.0+
Group: System/Base
Source: %{name}-%{version}.tar.bz2
Source1: COPYING
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch0: msr-tools-fix-compile-warning.diff
Patch1: %{name}-xen_physical_msr_support.patch
ExclusiveArch: %ix86 x86_64
%description
Tool to read and write MSRs (model specific registers). You have to
load the "msr" module manually ("modprobe msr").
Authors:
--------
H. Peter Anvin <hpa@zytor.com>
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
make CFLAGS="$RPM_OPT_FLAGS"
%install
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
cp %{SOURCE1} .
install -m 0755 rdmsr wrmsr $RPM_BUILD_ROOT/%{_sbindir}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING
%{_sbindir}/*
%changelog