blob: 0eb7cae8f78e2ade5ac660bd853391f6de09eaee [file] [log] [blame]
Summary: Iozone Filesystem Benchmark
Name: iozone
Version: 3
Release: 347
License: Freeware
Group: Applications/Engineering
Source: %{name}%{version}_%{release}.tar
Buildroot: /var/tmp/%{name}-buildroot
%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
##
%prep
##
## SETUP and PATCH
##
%setup -n iozone3_347/src/current
##
## BUILD
##
##
## BUILD
##
%build
%ifarch %{ix86}
make linux
%else
%ifarch x86_64
make linux-AMD64
%else
%ifarch ia64
make linux-ia64
%else
%ifarch ppc
make linux-powerpc
%else
%ifarch ppc64
make linux-powerpc64
%else
%ifarch s390
make linux-S390
%else
%ifarch s390x
make linux-S390X
%endif
%endif
%endif
%endif
%endif
%endif
%endif
##
## INSTALL
##
%install
mkdir -p $RPM_BUILD_ROOT/opt/iozone/bin
cp $RPM_BUILD_DIR/iozone3_347/src/current/iozone $RPM_BUILD_ROOT/opt/iozone/bin/
cp $RPM_BUILD_DIR/iozone3_347/src/current/fileop $RPM_BUILD_ROOT/opt/iozone/bin/
cp $RPM_BUILD_DIR/iozone3_347/src/current/pit_server $RPM_BUILD_ROOT/opt/iozone/bin/
cp $RPM_BUILD_DIR/iozone3_347/src/current/Generate_Graphs $RPM_BUILD_ROOT/opt/iozone/bin/
cp $RPM_BUILD_DIR/iozone3_347/src/current/gengnuplot.sh $RPM_BUILD_ROOT/opt/iozone/bin/
cp $RPM_BUILD_DIR/iozone3_347/src/current/gnu3d.dem $RPM_BUILD_ROOT/opt/iozone/bin/
mkdir -p $RPM_BUILD_ROOT/opt/iozone/docs
cp $RPM_BUILD_DIR/iozone3_347/docs/IOzone_msword_98.pdf $RPM_BUILD_ROOT/opt/iozone/docs/
cp $RPM_BUILD_DIR/iozone3_347/docs/Run_rules.doc $RPM_BUILD_ROOT/opt/iozone/docs/
cp $RPM_BUILD_DIR/iozone3_347/docs/IOzone_msword_98.doc $RPM_BUILD_ROOT/opt/iozone/docs/
cp $RPM_BUILD_DIR/iozone3_347/docs/Iozone_ps.gz $RPM_BUILD_ROOT/opt/iozone/docs/
cp $RPM_BUILD_DIR/iozone3_347/src/current/Gnuplot.txt $RPM_BUILD_ROOT/opt/iozone/docs/
mkdir -p $RPM_BUILD_ROOT/opt/iozone/man/man1
cp $RPM_BUILD_DIR/iozone3_347/docs/iozone.1 $RPM_BUILD_ROOT/opt/iozone/man/man1/
##
## FILES
##
%files
%attr(755,root,root) /opt/
##
## CLEAN
##
%clean
rm -rf $RPM_BUILD_ROOT