File bonnie++.spec of Package bonnie++

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

Name:           bonnie++
BuildRequires:  gcc-c++
Provides:       bonnie++-1.97
Summary:        A Bonnie-Like File System Benchmark
License:        MIT
Group:          System/Benchmark
Version:        1.97.1
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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


	make clean %{?_smp_mflags}
 	make MORECFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}

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

%doc readme.html