File x86info.spec of Package x86info

#
# spec file for package x86info (Version 1.21)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           x86info
License:        GPL v2 only
Url:            http://www.codemonkey.org.uk/projects/x86info/
Group:          System/Monitoring
AutoReqProv:    on
Version:        1.21
Release:        1
Summary:        Show x86 CPU Information
Source:         http://www.codemonkey.org.uk/x86info/%{name}-%{version}.tar.bz2
BuildRequires:  gcc
ExclusiveArch:  %{ix86} x86_64
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch0:         x86info-1.21-optflags.patch

%description
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.



Authors:
--------
    Dave Jones <davej@codemonkey.org.uk>

%prep
%setup -q
%patch0

%build
export CFLAGS="$RPM_OPT_FLAGS"
make

%install
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -m 755 x86info $RPM_BUILD_ROOT/usr/bin
install -m 644 x86info.1 $RPM_BUILD_ROOT%{_mandir}/man1

%clean
rm -rf $RPM_BUILD_ROOT;

%files
%defattr(-, root, root)
%doc %{_mandir}/man1/%{name}.1.gz
%doc README TODO
%{_bindir}/%{name}

%changelog
* Thu May 08 2008 crrodriguez@suse.de
- use RPM_OPT_FLAGS
- update to version 1.21 (see ChangeLog for full list of changes)
* Wed Sep 12 2007 bwalle@suse.de
- update to version 1.20
* Fri Jul 26 2002 rommel@suse.de
- Update to version 1.10 (see ChangeLog for full list of changes)
* Thu Dec 20 2001 grimmer@suse.de
- Update to version 1.7 (see ChangeLog for full list of changes)
* Thu Nov 22 2001 grimmer@suse.de
- Update to version 1.6 (see ChangeLog for full list of changes)
* Tue Aug 28 2001 grimmer@suse.de
- Initial package for SuSE Linux (Version 1.5)
openSUSE Build Service is sponsored by