cpuid/cpuid.spec

Name: cpuid
Summary: Provide processor CPUID information
Version: 0.0
Release: 20120601.1
License: BSD
Group: System Environment/Base
URL: http://www.etallen.com/cpuid.html
Description: cpuid dumps detailed information about the CPU(s) gathered from the CPUID instruction, and also determines the exact model of CPU(s).

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Todd Allen <cpuid$etallen,com>

Summary: Provide processor CPUID information
Name: cpuid
%define real_version 20120601
Version: 0.0
Release: 20120601.1%{?dist}
License: BSD
Group: System Environment/Base
URL: http://www.etallen.com/cpuid.html

Source: http://www.etallen.com/cpuid/cpuid-%{real_version}.src.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
cpuid dumps detailed information about the CPU(s) gathered from the CPUID 
instruction, and also determines the exact model of CPU(s).

%prep
%setup -n %{name}-%{real_version}

%build
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
### FIXME: Default install target changes owner/group to root/root
#%{__make} install BUILDROOT="%{buildroot}"
%{__install} -D -m0755 cpuid %{buildroot}%{_sbindir}/cpuid
%{__install} -D -m0644 cpuid.man %{buildroot}%{_mandir}/man1/cpuid.1

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc ChangeLog FUTURE LICENSE
%doc %{_mandir}/man1/cpuid.1*
%{_sbindir}/cpuid

%changelog
* Fri Jun 08 2012 Dag Wieers <dag@wieers.com> - 0.0-20120601.1
- Updated to release 20120601.

* Wed Mar 09 2011 Dag Wieers <dag@wieers.com> - 0.0-20110325.1
- Updated to release 20110325.

* Thu Aug 24 2006 Dag Wieers <dag@wieers.com> - 0.0-20060823.1
- Updated to release 20060823.

* Mon Aug 07 2006 Dag Wieers <dag@wieers.com> - 0.0-20060806.1
- Updated to release 20060806.

* Mon Jul 31 2006 Dag Wieers <dag@wieers.com> - 0.0-20060730.1
- Initial package. (using DAR)