File bonnie++-1.03d.spec of Package bonnie++
#
# spec file for package bonnie++ (Version 1.03d)
#
# 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: bonnie++
BuildRequires: gcc-c++
License: X11/MIT
Group: System/Benchmark
Provides: bonnie++-1.03d
AutoReqProv: on
Summary: A Bonnie-Like File System Benchmark
Version: 1.03d
Release: 2
Source: http://www.coker.com.au/bonnie++/bonnie++-1.03d.tgz
Patch: bonnie++-1.02_unlocked.patch
Patch1: bonnie++-gcc43.patch
Patch2: bnc442857_array_delete.patch
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.
Authors:
--------
Tim Bray <tbray@textuality.com>
Russell Coker <russell@coker.com.au>
Christian Kagerhuber <c.kagerhuber@t-online.net>
Olli Ries <ories@suse.de>
%prep
%setup
%patch -p1
%patch1
%patch2 -p1
%build
make clean
make MORECFLAGS="$RPM_OPT_FLAGS"
%install
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
%files
%defattr(-,root,root)
%doc readme.html
/usr/bin/bonnie++
/usr/bin/zcav
/usr/bin/bon_csv2html
/usr/bin/bon_csv2txt
%{_mandir}/man8/bonnie++.8.gz
%{_mandir}/man8/zcav.8.gz
%{_mandir}/man1/bon_csv2html.1.gz
%{_mandir}/man1/bon_csv2txt.1.gz
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Feb 11 2009 xxiao@suse.de
- fix bnc#442857 with right C++ delete
* Mon Feb 09 2009 yxu@suse.de
- upgraded source to version 1.03d, bnc#414150
* Mon Dec 03 2007 ro@suse.de
- fix build with gcc-4.3
* Fri May 26 2006 schwab@suse.de
- Use RPM_OPT_FLAGS.
- Don't strip binaries.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Oct 05 2005 dmueller@suse.de
- add norootforbuild
* Tue Dec 18 2001 ro@suse.de
- added <gpp,libgpp> to neededforbuild
- cleaned up install locations
* Tue Dec 18 2001 ories@suse.de
- initial package
- replaced getc/putc with getc_unlocked/putc_unlocked