Name: dbench Version: 4.0 Release: 1 Summary: Filesystem load benchmarking tool Group: System Environment/Base License: GPLv2+ Source0: http://samba.org/ftp/tridge/dbench/%{name}-%{version}.tar.gz URL: http://samba.org/ftp/tridge/dbench/README Patch0: dbench-4.0-destdir.patch Patch1: dbench-4.0-datadir.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: autoconf BuildRequires: coreutils BuildRequires: patch BuildRequires: popt %description Dbench is a file system benchmark that generates load patterns similar to those of the commercial Netbench benchmark, but without requiring a lab of Windows load generators to run. It is now considered a de facto standard for generating load on the Linux VFS. %prep %setup -q export PATH=/opt/freeware/bin:$PATH %patch0 -p1 -b .destdir %patch1 -p1 -b .datadir %build ./autogen.sh ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir}/man1 make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT} INSTALLCMD='/opt/freeware/bin/install -p' /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc README COPYING %{_bindir}/* %{_mandir}/man1/* %dir %{_datadir}/dbench %{_datadir}/dbench/client.txt /usr/bin/* %changelog * Tue Jun 21 2011 Michael Perzl - 4.0-1 - first version for AIX V5.1 and higher