diff --git a/fio-3.32.tar.gz b/fio-3.32.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..76006473bfedcf4995206c33c2d2008d1f70a3fa Binary files /dev/null and b/fio-3.32.tar.gz differ diff --git a/fio.spec b/fio.spec index 41fc3665657a59e4145b42299c01df78087b520a..442799a902debc5121bea1c55ac7f5d9aab0c4aa 100644 --- a/fio.spec +++ b/fio.spec @@ -1,19 +1,37 @@ -Name: fio -Version: 3.30 -Release: 1 -Summary: Versatile IO workload generator -License: GPLv2 -URL: http://git.kernel.dk/?p=fio.git;a=summary -Source: http://brick.kernel.dk/snaps/%{name}-%{version}.tar.bz2 -BuildRequires: libaio-devel python3-devel zlib-devel librbd1-devel numactl-devel librdmacm-devel gcc - -%ifarch x86_64 -BuildRequires: libpmem-devel libpmemblk-devel +Name: fio +Version: 3.32 +Release: 1 +Summary: Multithreaded IO generation tool + +License: GPLv2 +URL: http://git.kernel.dk/?p=fio.git;a=summary +Source0: https://github.com/axboe/fio/archive/refs/tags/fio-3.32.tar.gz + + +BuildRequires: gcc +BuildRequires: libaio-devel +BuildRequires: zlib-devel +BuildRequires: python3-devel +BuildRequires: libcurl-devel +BuildRequires: openssl-devel +%ifarch x86_64 ppc64le +BuildRequires: libpmem-devel +BuildRequires: libpmemblk-devel %endif + +BuildRequires: make + +%global __provides_exclude_from ^%{_libdir}/fio/ + + %description -fio is a tool used to spawn many threads or processes that perform a specific type -of io operation specified by the user.It accepts many global parameters inherited -by threads.Its common method is to simulate jobs that match the specified io load. +fio is an I/O tool that will spawn a number of threads or processes doing +a particular type of io action as specified by the user. fio takes a +number of global parameters, each inherited by the thread unless +otherwise parameters given to them overriding that setting is given. +The typical use of fio is to write a job file matching the io load +one wants to simulate. + %package help Summary: Help document for the fio @@ -31,25 +49,36 @@ pathfix.py -i %{__python3} -pn \ tools/plot/fio2gnuplot \ t/steadystate_tests.py +# Edit /usr/local/lib path in os/os-linux.h to match Fedora conventions. +sed -e 's,/usr/local/lib/,%{_libdir}/,g' -i os/os-linux.h + %build -./configure --disable-optimizations -export EXTFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" -%make_build V=1 +./configure --disable-optimizations --dynamic-libengines + +EXTFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" make V=1 %{?_smp_mflags} %install -%make_install prefix=%{_prefix} mandir=%{_mandir} +make install prefix=%{_prefix} mandir=%{_mandir} libdir=%{_libdir}/fio DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" + +%check +make test %files %doc COPYING %dir %{_datadir}/%{name} %{_bindir}/* %{_datadir}/%{name}/* +%{_libdir}/fio/*.so %files help %doc REPORTING-BUGS examples MORAL-LICENSE GFIO-TODO SERVER-TODO STEADYSTATE-TODO %{_mandir}/man1/* + %changelog +* Sun Nov 6 2022 huyab<1229981468@qq.com> - 3.32-1 +- update version to 3.32-1 + * Sun Aug 14 2022 tianlijing - 3.30-1 - upgrade to 3.30