SHA256
1
0
forked from pool/cpuid
cpuid/cpuid.spec

39 lines
945 B
RPMSpec

# vim: set ts=4 sw=4 et:
Name: cpuid
Version: 20110305
Release: 0
Summary: X86 CPU Identification Tool
Source: http://www.etallen.com/cpuid/cpuid-%{version}.src.tar.gz
URL: http://www.etallen.com/
Group: System/Management
License: BSD
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: gcc make glibc-devel
%description
cpuid executes the CPUID instruction on x86-family CPUs and decodes the
results into English descriptions. It knows about Intel, AMD, and Cyrix CPUs,
and is fairly complete.
%prep
%setup -q
%build
%__make CFLAGS="%{optflags} -Wall"
%install
%__install -D -m 0755 cpuid "%{buildroot}%{_bindir}/cpuid"
%__install -D -m 0644 cpuid.man "%{buildroot}%{_mandir}/man1/cpuid.1"
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc ChangeLog FUTURE LICENSE
%{_bindir}/cpuid
%doc %{_mandir}/man1/cpuid.1*
%changelog