forked from CentOS-Storage-SIG/iozone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiozone.spec
52 lines (42 loc) · 1.72 KB
/
iozone.spec
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
Summary: IOzone Filesystem Benchmark
Name: iozone
%define real_version 3_471
Version: 3.471
Release: 1%{?dist}
License: Freeware
Group: Applications/System
URL: http://www.iozone.org/
Source: http://www.iozone.org/src/current/iozone%{real_version}.tar
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%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
%setup -n %{name}%{real_version}
%build
%{__make} %{?_smp_mflags} -C src/current linux
%install
%{__rm} -rf %{buildroot}
%{__install} -Dp -m0755 src/current/iozone %{buildroot}%{_bindir}/iozone
%{__install} -Dp -m0755 src/current/Generate_Graphs %{buildroot}%{_datadir}/iozone/Generate_Graphs
%{__install} -Dp -m0755 src/current/gengnuplot.sh %{buildroot}%{_datadir}/iozone/gengnuplot.sh
%{__install} -Dp -m0755 src/current/gnu3d.dem %{buildroot}%{_datadir}/iozone/gnu3d.dem
%{__install} -Dp -m0644 docs/iozone.1 %{buildroot}%{_mandir}/man1/iozone.1
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc src/current/Changes.txt src/current/Gnuplot.txt
%doc src/current/*.pl src/current/*.sh docs/*
%doc %{_mandir}/man1/iozone.1*
%{_bindir}/iozone
%{_datadir}/iozone/
%changelog
* Wed Nov 8 2017 Niels de Vos <[email protected]> - 3.471-1
- Update to release 3.471
- Initial package based on an earlier version from RepoForge.Org