diff --git a/fio-mtd-stdint.patch b/fio-mtd-stdint.patch new file mode 100644 index 0000000..d0aa563 --- /dev/null +++ b/fio-mtd-stdint.patch @@ -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 + #include + #include ++#include + #include + #include + #include diff --git a/fio.spec b/fio.spec index f9e4062..41ca42a 100644 --- a/fio.spec +++ b/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 2.2.11-1 - New upstream version +- Add zlib-devel as build dependency * Thu Sep 22 2015 Eric Sandeen 2.2.10-1 - New upstream version