2007-01-15 23:06:07 +00:00
|
|
|
#
|
2011-09-21 14:53:56 +00:00
|
|
|
# spec file for package bonnie
|
2007-01-15 23:06:07 +00:00
|
|
|
#
|
2012-03-09 20:21:46 +00:00
|
|
|
# Copyright (c) 2012 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
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/
|
2011-12-06 17:01:10 +00:00
|
|
|
License: GPL-2.0+
|
2007-01-15 23:06:07 +00:00
|
|
|
Group: System/Benchmark
|
|
|
|
Summary: File System Benchmark
|
2012-03-09 20:21:46 +00:00
|
|
|
Version: 1.5
|
2009-08-31 20:18:45 +00:00
|
|
|
Release: 476
|
2008-10-13 14:16:55 +00:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: ctcstools.tar.bz2
|
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
|
|
|
%package ctcs2-glue
|
2011-12-06 17:01:10 +00:00
|
|
|
License: GPL-2.0+
|
2008-10-13 14:16:55 +00:00
|
|
|
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
|
|
|
%prep
|
2008-10-13 14:16:55 +00:00
|
|
|
%setup -n bonnie -a1
|
2007-01-15 23:06:07 +00:00
|
|
|
|
|
|
|
%build
|
2011-09-21 14:53:56 +00:00
|
|
|
make CC=gcc CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
|
2007-01-15 23:06:07 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir}
|
2011-09-21 14:53:56 +00:00
|
|
|
%if %suse_version < 1210
|
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/
|
2011-09-21 14:53:56 +00:00
|
|
|
%endif
|
2007-01-15 23:06:07 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc bonnie.doc README
|
|
|
|
/usr/bin/bonnie
|
|
|
|
%{_mandir}/man1/bonnie.1.gz
|
|
|
|
|
2011-09-21 14:53:56 +00:00
|
|
|
%if %suse_version < 1210
|
|
|
|
|
2008-10-13 14:16:55 +00:00
|
|
|
%files ctcs2-glue
|
|
|
|
%defattr(-, root, root)
|
|
|
|
/usr/share/qa
|
|
|
|
/usr/lib/ctcs2
|
2011-09-21 14:53:56 +00:00
|
|
|
%endif
|
2008-10-13 14:16:55 +00:00
|
|
|
|
2008-04-26 09:25:50 +00:00
|
|
|
%changelog
|