File cpuburn.spec of Package cpuburn
#
# spec file for package [spectemplate]
#
# Copyright (c) 2010 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/
#
Summary: CPU maximum load (heat) stability test
Name: cpuburn
Version: 1.4a
Release: 1.0
License: GPL-2.0
Group: System/Monitoring
URL: http://users.ev1.net/~redelm/
Source: %{name}-%{version}.tar.gz
Patch: %{name}-makefile.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#ExclusiveArch: i586 i686 athlon
%description
cpuburn is a suite of assembly-coded routines designed to put maximum
heat stress on the CPU and motherboard components by a
P6/P5/K6/K7-optimized mix of FPU and ALU instructions. There are also
routines to test RAM controllers (burnMMX/BX). Please note that this
program is designed to heavily load chips. Undercooled, overclocked,
or otherwise weak systems may fail, causing data loss (filesystem
corruption) and possibly permanent damage to electronic components.
Use it at your own risk!!
%prep
%setup
%patch
%{__perl} -pi.orig -e 's|gcc|\$(CC) \$(CFLAGS)|' Makefile
%build
%ifarch x86_64
make CC="gcc -m32" AS="as --32"
%else
%{__make} %{?_smp_mflags} \
CC="%{__cc}" \
CFLAGS="%{optflags}"
%endif
%install
%{__rm} -rf %{buildroot}
%{__install} -d -m0755 %{buildroot}%{_sbindir}
%{__install} -p -m0755 burn{BX,K6,K7,MMX,P5,P6} %{buildroot}%{_sbindir}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc Design README
%{_sbindir}/burn*
%changelog
* Sun Oct 7 2012 tom_enos@live.com
- initial release