]> git.pld-linux.org Git - packages/iozone.git/blob - iozone.spec
9c382fbabb8848d9151ea19c572289b192acbbdf
[packages/iozone.git] / iozone.spec
1 Summary:        IO Zone Benchmark Program
2 Summary(es.UTF-8):   El IOzone es una ferramenta para prueba de rendimiento em sistemas de archivos
3 Summary(pl.UTF-8):   Program testujący wydajność I/O
4 Summary(pt_BR.UTF-8):   O IOzone é uma ferramenta para testes de performance em sistemas de arquivos
5 Name:           iozone
6 Version:        3.257
7 Release:        1
8 License:        distributable
9 Group:          Applications/System
10 Source0:        http://www.iozone.org/src/current/%{name}%(echo %{version} | tr . _).tar
11 # Source0-md5:  a4db361cd44e3273cc265a5cce08f938
12 Patch0:         %{name}-make.patch
13 URL:            http://www.iozone.org/
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 Iozone benchmarks IO performance. By default it benchmarks the speed
18 of sequential I/O to files, but it also supports a raw mode that
19 attempts a measurement of speed when accessing a raw device.
20
21 %description -l es.UTF-8
22 El IOzone es útil para prueba de rendimiento en sistemas de archivos.
23 Genera y medi una variedad de operacións en archivos.
24
25 %description -l pl.UTF-8
26 Iozone testuje wydajność I/O. Domyślnie testuje szybkość sekwencyjnego
27 odczytu/zapisu do plików, ale obsługuje także tryb surowy, w którym
28 próbuje określić szybkość dostępu do samego urządzenia.
29
30 %description -l pt_BR.UTF-8
31 O IOzone é uma ferramenta para testes de performance em sistemas de
32 arquivos. Gera e mede uma variedade de operações em arquivos.
33
34 %prep
35 %setup -q -n %{name}%(echo %{version} | tr . _)
36 %patch0 -p1
37
38 gzip -d docs/Iozone_ps.gz
39 mv -f docs/Iozone_ps docs/IOzone.ps
40 mv -f docs/IOzone_msword_98.pdf docs/IOzone.pdf
41
42 %build
43 cd src/current
44 %{__make} \
45 %ifarch arm
46         linux-arm
47 %else
48 %ifarch %{x8664}
49         linux-AMD64
50 %else
51 %ifarch ia64
52         linux-ia64
53 %else
54 %ifarch ppc
55         linux-powerpc \
56 %else
57 %ifarch ppc64
58         linux-powerpc64 \
59 %else
60 %ifarch sparc sparc64 sparcv9
61         linux-sparc \
62 %else
63         linux \
64 %endif
65 %endif
66 %endif
67 %endif
68 %endif
69 %endif
70         LDFLAGS="%{rpmldflags}" \
71         CFLAGS="%{rpmcflags}" \
72         CC="%{__cc}" \
73         GCC="%{__cc}"
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/iozone,%{_mandir}/man1}
78
79 install src/current/iozone $RPM_BUILD_ROOT%{_bindir}
80 install docs/iozone.1 $RPM_BUILD_ROOT%{_mandir}/man1
81 install src/current/*.dem $RPM_BUILD_ROOT%{_datadir}/iozone
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %files
87 %defattr(644,root,root,755)
88 %doc docs/*.ps docs/*.pdf src/current/Changes.txt
89 %attr(755,root,root) %{_bindir}/iozone
90 %dir %{_datadir}/iozone
91 %{_datadir}/iozone/*.dem
92 %{_mandir}/man1/iozone.1*
This page took 0.105912 seconds and 3 git commands to generate.