-
Notifications
You must be signed in to change notification settings - Fork 15
/
spec.in
100 lines (86 loc) · 2.66 KB
/
spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
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