1Summary: Iozone Filesystem Benchmark 2Name: iozone 3Version: 3 4Release: 491 5License: Freeware 6Group: Applications/Engineering 7Source: %{name}%{version}_%{release}.tar 8Buildroot: /var/tmp/%{name}-buildroot 9 10%description 11IOzone is a filesystem benchmark tool. The benchmark generates and 12measures a variety of file operations. Iozone has been ported to many machines and runs under many operating systems. 13 14Iozone is useful for performing a broad filesystem analysis of a vendors 15computer platform. The benchmark tests file I/O performance for the following 16operations: Read, write, re-read, re-write, read backwards, read strided, 17fread, fwrite, random read, pread ,mmap, aio_read, aio_write. 18 19 20## 21## PREP 22## 23%prep 24 25## 26## SETUP and PATCH 27## 28%setup -n iozone3_491/src/current 29 30 31## 32## BUILD 33## 34## 35## BUILD 36## 37%build 38%ifarch %{ix86} 39 make linux 40%else 41 %ifarch x86_64 42 make linux-AMD64 43 %else 44 %ifarch ia64 45 make linux-ia64 46 %else 47 %ifarch ppc 48 make linux-powerpc 49 %else 50 %ifarch ppc64 51 make linux-powerpc64 52 %else 53 %ifarch s390 54 make linux-S390 55 %else 56 %ifarch s390x 57 make linux-S390X 58 %else 59 %ifarch %(arm) 60 make linux-arm 61 %else 62 echo "No idea how to build for your arch..." 63 exit 1 64 %endif 65 %endif 66 %endif 67 %endif 68 %endif 69 %endif 70 %endif 71%endif 72 73## 74## INSTALL 75## 76%install 77mkdir -p $RPM_BUILD_ROOT/opt/iozone/bin 78cp $RPM_BUILD_DIR/iozone3_491/src/current/iozone $RPM_BUILD_ROOT/opt/iozone/bin/ 79cp $RPM_BUILD_DIR/iozone3_491/src/current/fileop $RPM_BUILD_ROOT/opt/iozone/bin/ 80cp $RPM_BUILD_DIR/iozone3_491/src/current/pit_server $RPM_BUILD_ROOT/opt/iozone/bin/ 81cp $RPM_BUILD_DIR/iozone3_491/src/current/Generate_Graphs $RPM_BUILD_ROOT/opt/iozone/bin/ 82cp $RPM_BUILD_DIR/iozone3_491/src/current/gengnuplot.sh $RPM_BUILD_ROOT/opt/iozone/bin/ 83cp $RPM_BUILD_DIR/iozone3_491/src/current/gnu3d.dem $RPM_BUILD_ROOT/opt/iozone/bin/ 84 85mkdir -p $RPM_BUILD_ROOT/opt/iozone/docs 86cp $RPM_BUILD_DIR/iozone3_491/docs/IOzone_msword_98.pdf $RPM_BUILD_ROOT/opt/iozone/docs/ 87cp $RPM_BUILD_DIR/iozone3_491/docs/Run_rules.doc $RPM_BUILD_ROOT/opt/iozone/docs/ 88cp $RPM_BUILD_DIR/iozone3_491/docs/IOzone_msword_98.doc $RPM_BUILD_ROOT/opt/iozone/docs/ 89cp $RPM_BUILD_DIR/iozone3_491/docs/Iozone_ps.gz $RPM_BUILD_ROOT/opt/iozone/docs/ 90cp $RPM_BUILD_DIR/iozone3_491/src/current/Gnuplot.txt $RPM_BUILD_ROOT/opt/iozone/docs/ 91 92mkdir -p $RPM_BUILD_ROOT/opt/iozone/man/man1 93cp $RPM_BUILD_DIR/iozone3_491/docs/iozone.1 $RPM_BUILD_ROOT/opt/iozone/man/man1/ 94 95 96## 97## FILES 98## 99%files 100%attr(755,root,root) /opt/ 101 102 103## 104## CLEAN 105## 106%clean 107rm -rf $RPM_BUILD_ROOT 108