| Summary: Iozone Filesystem Benchmark |
| Name: iozone |
| Version: 3 |
| Release: 398 |
| 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_398/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 |
| %else |
| %ifarch %(arm) |
| make linux-arm |
| %else |
| echo "No idea how to build for your arch..." |
| exit 1 |
| %endif |
| %endif |
| %endif |
| %endif |
| %endif |
| %endif |
| %endif |
| %endif |
| |
| ## |
| ## INSTALL |
| ## |
| %install |
| mkdir -p $RPM_BUILD_ROOT/opt/iozone/bin |
| cp $RPM_BUILD_DIR/iozone3_398/src/current/iozone $RPM_BUILD_ROOT/opt/iozone/bin/ |
| cp $RPM_BUILD_DIR/iozone3_398/src/current/fileop $RPM_BUILD_ROOT/opt/iozone/bin/ |
| cp $RPM_BUILD_DIR/iozone3_398/src/current/pit_server $RPM_BUILD_ROOT/opt/iozone/bin/ |
| cp $RPM_BUILD_DIR/iozone3_398/src/current/Generate_Graphs $RPM_BUILD_ROOT/opt/iozone/bin/ |
| cp $RPM_BUILD_DIR/iozone3_398/src/current/gengnuplot.sh $RPM_BUILD_ROOT/opt/iozone/bin/ |
| cp $RPM_BUILD_DIR/iozone3_398/src/current/gnu3d.dem $RPM_BUILD_ROOT/opt/iozone/bin/ |
| |
| mkdir -p $RPM_BUILD_ROOT/opt/iozone/docs |
| cp $RPM_BUILD_DIR/iozone3_398/docs/IOzone_msword_98.pdf $RPM_BUILD_ROOT/opt/iozone/docs/ |
| cp $RPM_BUILD_DIR/iozone3_398/docs/Run_rules.doc $RPM_BUILD_ROOT/opt/iozone/docs/ |
| cp $RPM_BUILD_DIR/iozone3_398/docs/IOzone_msword_98.doc $RPM_BUILD_ROOT/opt/iozone/docs/ |
| cp $RPM_BUILD_DIR/iozone3_398/docs/Iozone_ps.gz $RPM_BUILD_ROOT/opt/iozone/docs/ |
| cp $RPM_BUILD_DIR/iozone3_398/src/current/Gnuplot.txt $RPM_BUILD_ROOT/opt/iozone/docs/ |
| |
| mkdir -p $RPM_BUILD_ROOT/opt/iozone/man/man1 |
| cp $RPM_BUILD_DIR/iozone3_398/docs/iozone.1 $RPM_BUILD_ROOT/opt/iozone/man/man1/ |
| |
| |
| ## |
| ## FILES |
| ## |
| %files |
| %attr(755,root,root) /opt/ |
| |
| |
| ## |
| ## CLEAN |
| ## |
| %clean |
| rm -rf $RPM_BUILD_ROOT |