File iozone.spec of Package iozone

#
# spec file for package iozone (Version 3.283)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

%define src_version 3
%define src_release 283

Summary: Iozone Filesystem Benchmark
Name: iozone
Version: %{src_version}.%{src_release}
Release: 0
License: Restricted Shareware
Group: System/Benchmark
Source: %{name}%{src_version}_%{src_release}.tar.bz2
URL: http://www.iozone.org
Buildroot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc

%description
IOzone is a filesystem benchmark tool. The benchmark generates and 
measures a variety of file operations. Iozone has been ported to many machines and runs under many operating systems.

Iozone is useful for performing a broad filesystem analysis of a vendors
computer platform. The benchmark tests file I/O performance for the following
operations: Read, write, re-read, re-write, read backwards, read strided,
fread, fwrite, random read, pread ,mmap, aio_read, aio_write.

%prep
%setup -q -n %{name}%{src_version}_%{src_release}

%build
cd src/current
# doesn't build with CFLAGS="$RPM_OPT_FLAGS"
# since the license is too bad I don't fix the package
make linux

%install
install -m 755 -d $RPM_BUILD_ROOT%{_bindir}
install -m 755 src/current/iozone $RPM_BUILD_ROOT%{_bindir}
install -m 755 src/current/fileop $RPM_BUILD_ROOT%{_bindir}
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/%{name}
install -m 644 src/current/client_list $RPM_BUILD_ROOT%{_datadir}/%{name}
install -m 755 src/current/Generate_Graphs $RPM_BUILD_ROOT%{_datadir}/%{name}
install -m 755 src/current/gengnuplot.sh $RPM_BUILD_ROOT%{_datadir}/%{name}
install -m 644 src/current/gnu3d.dem $RPM_BUILD_ROOT%{_datadir}/%{name}
install -m 644 src/current/gnuplot.dem $RPM_BUILD_ROOT%{_datadir}/%{name}
install -m 644 src/current/gnuplotps.dem $RPM_BUILD_ROOT%{_datadir}/%{name}
install -m 755 src/current/report.pl $RPM_BUILD_ROOT%{_datadir}/%{name}
install -m 644 src/current/write_telemetry $RPM_BUILD_ROOT%{_datadir}/%{name}
install -m 755 -d $RPM_BUILD_ROOT%{_mandir}/man1
install -m 644 docs/iozone.1 $RPM_BUILD_ROOT%{_mandir}/man1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc docs/*.gz docs/*.pdf docs/*.doc src/current/Gnuplot.txt src/current/Changes.txt
%{_bindir}/*
%{_datadir}/%{name}/
%{_mandir}/man1/iozone.1*

%changelog
* Thu Mar 29 2007 - jblunck@suse.de
- initial package
openSUSE Build Service is sponsored by