File tiobench.spec of Package tiobench

Name: tiobench
Version: 0.3.3
Release: 0
License: GNU GPL v2
Source: tiobench-%{version}.tar.gz
Patch: tiobench-warn.diff
Patch1: tiobench-moredigits.diff
Patch2: tiotest-aligned-alloc.diff
Patch3:	tiobench-inline-static-crc32.diff
Group: System/Benchmark
Summary: Fully-threaded I/O benchmark program
BuildRoot: /var/tmp/%{name}-%{version}-buildroot
%if 0%{?rhel_version} == 600
BuildRequires:  -libcom_err2
BuildRequires:  -libext2fs2

A simple multithreaded I/O benchmark, popular amongst kernel developers.
The results tend to be realistic enough to have some bearing on real
world results, while the tests are simple enough for kernel engineers to
analyze changes ...

%patch -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1


make install PREFIX="$RPM_BUILD_ROOT%{_prefix}" DOCDIR="$RPM_BUILD_ROOT%{_docdir}/%{name}"
chmod -x $RPM_BUILD_ROOT%{_docdir}/%{name}/*

%doc %{_docdir}/%{name}

* Wed Sep  9 2015 -
- Fix build with gcc-5+. (inline fn can't reference
  static inline entities.)
* Tue Jul 14 2009 -
- Initial creation of package