File hackbench.spec of Package hackbench
#
# spec file for package hackbench (Version svn1649)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: hackbench
Url: http://devresources.linux-foundation.org/craiger/hackbench/
License: GPL v2 or later
Group: System/Benchmark
AutoReqProv: on
Summary: Performance, overhead, and scalability benchmark for the Linux scheduler
Version: svn1649
Release: 41
Source0: %{name}-%{version}.tar.bz2
Patch0: gcc-warning-fixes.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The hackbench test is a benchmark for measuring the performance,
overhead, and scalability of the Linux scheduler.
Authors:
--------
Rusty Russell
%prep
%setup
%patch0 -p0
%build
gcc $RPM_OPT_FLAGS hackbench.c -o hackbench
%install
mkdir -p ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 hackbench ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 hackbench_run.sh ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 hackbench_plot.sh ${RPM_BUILD_ROOT}/%{_bindir}
%files
%defattr(-, root, root)
%doc README
%{_bindir}/hackbench
%{_bindir}/hackbench_run.sh
%{_bindir}/hackbench_plot.sh
%changelog