diff --git a/dbench-4.0-datadir.patch b/dbench-4.0-datadir.patch index ce803e3..38e1dcd 100644 --- a/dbench-4.0-datadir.patch +++ b/dbench-4.0-datadir.patch @@ -12,14 +12,15 @@ ${INSTALLCMD} -m644 dbench.1 $(DESTDIR)/$(mandir) ln -sf dbench.1 $(DESTDIR)/$(mandir)/tbench.1 ln -sf dbench.1 $(DESTDIR)/$(mandir)/tbench_srv.1 ---- dbench-4.0/dbench.c.datadir 2007-07-11 15:28:31.000000000 -0400 -+++ dbench-4.0/dbench.c 2007-07-11 15:29:50.000000000 -0400 -@@ -29,7 +29,7 @@ int sync_open = 0, sync_dirs = 0; - char *tcp_options = TCP_OPTIONS; - static int timelimit = 600, warmup; - static const char *directory = "."; --static char *loadfile = DATADIR "/client.txt"; -+static char *loadfile = DATADIR "/dbench/client.txt"; - static struct timeval tv_start; - static struct timeval tv_end; +--- dbench-4.0/dbench.c.datadir 2008-04-14 09:10:00.000000000 +0530 ++++ dbench-4.0/dbench.c 2008-04-14 09:10:22.000000000 +0530 +@@ -28,7 +28,7 @@ + + struct options options = { + .timelimit = 600, +- .loadfile = DATADIR "/client.txt", ++ .loadfile = DATADIR "/dbench/client.txt", + .directory = ".", + .tcp_options = TCP_OPTIONS, + .nprocs = 10, diff --git a/dbench.spec b/dbench.spec index 13402bb..6d84c27 100644 --- a/dbench.spec +++ b/dbench.spec @@ -1,6 +1,6 @@ Name: dbench Version: 4.0 -Release: 0%{?dist} +Release: 1%{?dist} Summary: Filesystem load benchmarking tool Group: System Environment/Base @@ -22,7 +22,8 @@ standard for generating load on the Linux VFS. %patch0 -p1 -b .destdir %patch1 -p1 -b .datadir -%build +%build +./autogen.sh %configure make %{?_smp_mflags} @@ -43,6 +44,8 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/* %changelog +* Mon Apr 14 2008 Rahul Sundaram -4.0-1 +- Fix patch * Mon Apr 14 2008 Rahul Sundaram -4.0-0 - New upstream release 4.0 * Sat Feb 9 2008 Rahul Sundaram - 3.04-7