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
%endif

%description
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 ...

%prep
%setup
%patch -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
make CFLAGS="$RPM_OPT_FLAGS"

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

%files
%defattr(-,root,root)
/usr/bin/tio*
%doc %{_docdir}/%{name}

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