--- /dev/null
+Name: x86info
+License: GPL-2.0
+Url: http://www.codemonkey.org.uk/projects/x86info/
+Group: System/Monitoring
+AutoReqProv: on
+Version: 1.30
+Release: 1
+Summary: Show x86 CPU Information
+Source: http://www.codemonkey.org.uk/x86info/%{name}-%{version}.tgz
+BuildRequires: gcc
+BuildRequires: python
+BuildRequires: pkgconfig(libpci)
+ExclusiveArch: %{ix86} x86_64
+
+%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.
+
+%prep
+%setup -q
+
+%build
+make CFLAGS="$RPM_OPT_FLAGS"
+
+%install
+mkdir -p $RPM_BUILD_ROOT/usr/bin
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
+mkdir -p $RPM_BUILD_ROOT/usr/sbin
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
+install -m 755 x86info $RPM_BUILD_ROOT/usr/bin
+install -m 644 x86info.1 $RPM_BUILD_ROOT%{_mandir}/man1
+install -m 755 lsmsr $RPM_BUILD_ROOT/usr/sbin
+install -m 644 lsmsr.8 $RPM_BUILD_ROOT%{_mandir}/man8
+
+
+%files
+%defattr(-, root, root)
+%doc %{_mandir}/man1/%{name}.1.gz
+%doc %{_mandir}/man8/lsmsr.8.gz
+%doc README TODO
+%{_bindir}/%{name}
+%{_sbindir}/lsmsr
+
+%changelog