File msr-tools.spec of Package msr-tools
#
# spec file for package msr-tools (Version 1.1.2)
#
# Copyright (c) 2008 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.1.2
Release: 34
License: GPL v2 or later
Group: System/Base
Source: %{name}-%{version}.tar.bz2
Source1: COPYING
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch0: %{name}-fix-compile-warning.diff
%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
%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
* Thu Oct 09 2008 bwalle@suse.de
- Add "#define _XOPEN_SOURCE 500" to fix compile warning that
pread() is undefined.
* Thu Apr 10 2008 bwalle@suse.de
- new package