File bonnie++.spec of Package bonnie++

#
# spec file for package bonnie++
#
# Copyright (c) 2014 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/
#


Name:           bonnie++
Version:        1.97
Release:        0
Summary:        A Bonnie-Like File System Benchmark
License:        MIT
Group:          System/Benchmark
Url:            http://www.coker.com.au/bonnie++/
Source:         http://www.coker.com.au/bonnie++/experimental/%{name}-%{version}.tgz
BuildRequires:  gcc-c++
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Bonnie++ is a benchmark suite aimed at performing a number of simple
hard drive and file system performance tests.

%prep
# match the upstream tarball, there's no diff against 1.97
%setup -q -n bonnie++-1.97.1

%build
make clean %{?_smp_mflags}
make MORECFLAGS="%{optflags}" %{?_smp_mflags}

%install
mkdir -p %{buildroot}%{_prefix}/bin
%{_bindir}/install -c bonnie++ zcav %{buildroot}%{_prefix}/bin
%{_bindir}/install -c bon_csv2html bon_csv2txt %{buildroot}%{_prefix}/bin
mkdir -p %{buildroot}%{_mandir}/man{1,8}
%{_bindir}/install -c -m 644 bon_csv2html.1 bon_csv2txt.1 %{buildroot}%{_mandir}/man1
%{_bindir}/install -c -m 644 bonnie++.8 zcav.8 %{buildroot}%{_mandir}/man8

%files
%defattr(-,root,root)
%doc readme.html
%{_bindir}/bonnie++
%{_bindir}/zcav
%{_bindir}/bon_csv2html
%{_bindir}/bon_csv2txt
%{_mandir}/man8/bonnie++.8.gz
%{_mandir}/man8/zcav.8.gz
%{_mandir}/man1/bon_csv2html.1.gz
%{_mandir}/man1/bon_csv2txt.1.gz

%changelog