2007-01-15 23:06:07 +00:00
|
|
|
#
|
|
|
|
# spec file for package bonnie (Version 1.4)
|
|
|
|
#
|
2008-04-26 09:25:50 +00:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:06:07 +00:00
|
|
|
#
|
2008-10-13 14:16:55 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-01-15 23:06:07 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-26 09:25:50 +00:00
|
|
|
|
2007-01-15 23:06:07 +00:00
|
|
|
Name: bonnie
|
2008-04-26 09:25:50 +00:00
|
|
|
Url: http://www.garloff.de/kurt/linux/bonnie/
|
|
|
|
License: GPL v2 or later
|
2007-01-15 23:06:07 +00:00
|
|
|
Group: System/Benchmark
|
2008-04-26 09:25:50 +00:00
|
|
|
AutoReqProv: on
|
2007-01-15 23:06:07 +00:00
|
|
|
Summary: File System Benchmark
|
|
|
|
Version: 1.4
|
2008-10-13 14:16:55 +00:00
|
|
|
Release: 474
|
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: ctcstools.tar.bz2
|
|
|
|
Patch0: bonnie-1.4.dif
|
2007-01-15 23:06:07 +00:00
|
|
|
#Patch: %{name}-%{version}.diff
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-10-13 14:16:55 +00:00
|
|
|
#BuildRequires: linux-kernel-headers - fails on SLES-10-SP2
|
|
|
|
BuildRequires: kernel-source
|
2007-01-15 23:06:07 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Bonnie is a popular performance benchmark that targets various aspects
|
|
|
|
of Unix file systems.
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 14:16:55 +00:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Tim Bray <tbray@textuality.com>
|
|
|
|
Kurt Garloff <garloff@suse.de>
|
|
|
|
|
|
|
|
%package ctcs2-glue
|
|
|
|
License: GPL v2 or later
|
|
|
|
Summary: File System Benchmark
|
|
|
|
Group: System/Benchmark
|
|
|
|
Requires: bonnie ctcs2 >= 0.1.1
|
|
|
|
#BuildArchitectures: noarch
|
|
|
|
|
|
|
|
%description ctcs2-glue
|
|
|
|
Bonnie is a popular performance benchmark that targets various aspects
|
|
|
|
of Unix file systems.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-15 23:06:07 +00:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Tim Bray <tbray@textuality.com>
|
|
|
|
Kurt Garloff <garloff@suse.de>
|
|
|
|
|
|
|
|
%prep
|
2008-10-13 14:16:55 +00:00
|
|
|
%setup -n bonnie -a1
|
|
|
|
%patch0 -p1
|
2007-01-15 23:06:07 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
make CC=gcc CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir}
|
2008-10-13 14:16:55 +00:00
|
|
|
cd ctcstools
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/qa/bonnie/tcf
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/qa/tcf
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/ctcs2/tools
|
|
|
|
install -m 744 do_bonnie $RPM_BUILD_ROOT/usr/share/qa/bonnie/
|
|
|
|
install -m 644 *.tcf $RPM_BUILD_ROOT/usr/share/qa/bonnie/tcf/
|
|
|
|
for A in *.tcf; do ln -s ../../../../usr/share/qa/bonnie/tcf/$A $RPM_BUILD_ROOT/usr/share/qa/tcf/; done
|
|
|
|
install -m 744 bonnie-run $RPM_BUILD_ROOT/usr/lib/ctcs2/tools/
|
2007-01-15 23:06:07 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc bonnie.doc README
|
|
|
|
/usr/bin/bonnie
|
|
|
|
%{_mandir}/man1/bonnie.1.gz
|
|
|
|
|
2008-10-13 14:16:55 +00:00
|
|
|
%files ctcs2-glue
|
|
|
|
%defattr(-, root, root)
|
|
|
|
/usr/share/qa
|
|
|
|
/usr/lib/ctcs2
|
|
|
|
|
2008-04-26 09:25:50 +00:00
|
|
|
%changelog
|
2008-10-13 14:16:55 +00:00
|
|
|
* Fri Sep 26 2008 vmarsik@suse.cz
|
|
|
|
- added subpackage for CTCS2 integration
|
2008-04-26 09:25:50 +00:00
|
|
|
* Sat Apr 26 2008 coolo@suse.de
|
|
|
|
- remove unused header file
|
|
|
|
* Mon May 22 2006 schwab@suse.de
|
2007-01-15 23:06:07 +00:00
|
|
|
- Don't build as root.
|
|
|
|
- Don't strip binaries.
|
2008-04-26 09:25:50 +00:00
|
|
|
* Fri May 19 2006 ro@suse.de
|
2007-01-15 23:06:07 +00:00
|
|
|
- fix build on ppc64 (define PAGE_MASK if not done)
|
2008-04-26 09:25:50 +00:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-15 23:06:07 +00:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-04-26 09:25:50 +00:00
|
|
|
* Thu Apr 04 2002 garloff@suse.de
|
2007-01-15 23:06:07 +00:00
|
|
|
- Version-1.4:
|
|
|
|
* Fix seek benchmark: 1.3 read too large chunks (1MB instead
|
|
|
|
of 16k) after every seek, resulting in too low seek numbers.
|
|
|
|
bug #15642
|
2008-04-26 09:25:50 +00:00
|
|
|
* Sun Feb 24 2002 garloff@suse.de
|
2007-01-15 23:06:07 +00:00
|
|
|
- Compile fix for archs not supporting O_DIRECT (typo)
|
|
|
|
- Use O_DIRECT from fcntl.h if present.
|
2008-04-26 09:25:50 +00:00
|
|
|
* Wed Feb 20 2002 garloff@suse.de
|
2007-01-15 23:06:07 +00:00
|
|
|
- Update to bonnie-1.3:
|
|
|
|
* Fixed HTML output (thanks to Rupert Kolb for notfying/patch)
|
|
|
|
* Optionally use O_DIRECT (patch by Chris Mason / Andrea Arc.)
|
2008-04-26 09:25:50 +00:00
|
|
|
* Wed Aug 30 2000 garloff@suse.de
|
2007-01-15 23:06:07 +00:00
|
|
|
- Update to 1.2:
|
|
|
|
* New option -u for getc_/putc_unlocked.
|
|
|
|
* Fixed CPU percentage reports if equal or in excess of 100%%.
|
|
|
|
* Machine name defaults to hostname now.
|
|
|
|
- Use BuildRoot.
|
2008-04-26 09:25:50 +00:00
|
|
|
* Mon Feb 14 2000 garloff@suse.de
|
2007-01-15 23:06:07 +00:00
|
|
|
- Moved manpage to /usr/share/man
|
|
|
|
- new options -y, -S, -p
|
|
|
|
- Add warning if test-size smaller memsize
|
2008-04-26 09:25:50 +00:00
|
|
|
* Mon Sep 13 1999 bs@suse.de
|
2007-01-15 23:06:07 +00:00
|
|
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
2008-04-26 09:25:50 +00:00
|
|
|
* Tue Jul 20 1999 garloff@suse.de
|
2007-01-15 23:06:07 +00:00
|
|
|
- Initial check in of Big Bonnie.
|
|
|
|
- Added breakhandler to remove temporary files.
|