Fix mtd build, add zlib builddep
This commit is contained in:
parent
438698d4d1
commit
4712099cfc
12
fio-mtd-stdint.patch
Normal file
12
fio-mtd-stdint.patch
Normal file
@ -0,0 +1,12 @@
|
||||
Index: fio-2.2.11/lib/libmtd_legacy.c
|
||||
===================================================================
|
||||
--- fio-2.2.11.orig/lib/libmtd_legacy.c
|
||||
+++ fio-2.2.11/lib/libmtd_legacy.c
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
+#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/ioctl.h>
|
5
fio.spec
5
fio.spec
@ -12,6 +12,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: libaio-devel
|
||||
BuildRequires: librbd1-devel
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
Patch0: fio-mtd-stdint.patch
|
||||
|
||||
%description
|
||||
fio is an I/O tool that will spawn a number of threads or processes doing
|
||||
@ -23,6 +26,7 @@ one wants to simulate.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
EXTFLAGS="$RPM_OPT_FLAGS" make V=1 %{?_smp_mflags}
|
||||
@ -45,6 +49,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%changelog
|
||||
* Tue Nov 10 2015 Eric Sandeen <sandeen@redhat.com> 2.2.11-1
|
||||
- New upstream version
|
||||
- Add zlib-devel as build dependency
|
||||
|
||||
* Thu Sep 22 2015 Eric Sandeen <sandeen@redhat.com> 2.2.10-1
|
||||
- New upstream version
|
||||
|
Loading…
Reference in New Issue
Block a user