From 3a6f51272abdebee0440275bfdb31e8992123627e4b0e94daf1426899af374e2 Mon Sep 17 00:00:00 2001
From: Martin Pluskal <mpluskal@suse.com>
Date: Tue, 5 Nov 2019 08:07:43 +0000
Subject: [PATCH] OBS-URL:
 https://build.opensuse.org/package/show/benchmark/bonnie?expand=0&rev=8

---
 bonnie.spec | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/bonnie.spec b/bonnie.spec
index f7ffe7a..48b651a 100644
--- a/bonnie.spec
+++ b/bonnie.spec
@@ -21,10 +21,9 @@ Version:        1.6
 Release:        0
 Summary:        File System Benchmark
 License:        GPL-2.0-or-later
-Url:            https://code.google.com/p/bonnie-64/
-Source0:        https://fossies.org/linux/privat/old/%{name}-%{version}.tar.bz2
+URL:            https://code.google.com/p/bonnie-64/
+Source0:        %{name}-%{version}.tar.bz2
 Patch0:         bonnie-fix-o_direct.diff
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
 Bonnie is a popular performance benchmark that targets various aspects
@@ -32,7 +31,7 @@ of Unix file systems.
 
 %prep
 %setup -q -n %{name}
-%patch0 -p0
+%patch0
 
 %build
 make SYSFLAGS="%{optflags}" %{?_smp_mflags}
@@ -41,9 +40,8 @@ make SYSFLAGS="%{optflags}" %{?_smp_mflags}
 %make_install
 
 %files
-%defattr(-, root, root)
 %doc bonnie.doc README
 %{_bindir}/bonnie
-%{_mandir}/man1/bonnie.1%{ext_man}
+%{_mandir}/man1/bonnie.1%{?ext_man}
 
 %changelog