--- /dev/null
+--- vmaf-1.5.3/libvmaf/src/feature/adm_tools.c.orig 2020-08-25 01:35:41.000000000 +0200
++++ vmaf-1.5.3/libvmaf/src/feature/adm_tools.c 2021-01-12 18:58:18.525832313 +0100
+@@ -35,8 +35,7 @@
+ #define MIN(x, y) (((x) < (y)) ? (x) : (y))
+ #define MAX(x, y) (((x) > (y)) ? (x) : (y))
+
+-#if ARCH_X86
+-#ifdef ADM_OPT_RECIP_DIVISION
++#if ARCH_X86 && defined(ADM_OPT_RECIP_DIVISION)
+
+ #include <emmintrin.h>
+
+@@ -47,7 +46,6 @@
+ }
+
+ #define DIVS(n, d) ((n) * rcp_s(d))
+-#endif //ADM_OPT_RECIP_DIVISION
+ #else
+ #define DIVS(n, d) ((n) / (d))
+ #endif //ARCH_X86
Summary: Netflix's VMAF library
Summary(pl.UTF-8): Biblioteka Netflix VMAF
Name: vmaf
-Version: 1.5.2
+Version: 1.5.3
Release: 1
License: BSD+patent
Group: Libraries
#Source0Download: https://github.com/Netflix/vmaf/releases
Source0: https://github.com/Netflix/vmaf/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 0bffac819d2f65c8efaf90c9ab43d27d
+# Source0-md5: 73914f1bc2e15a82162549f1eba735fa
+Patch0: %{name}-x86-nosimd.patch
URL: https://github.com/Netflix/vmaf
BuildRequires: libstdc++-devel >= 6:4.8
BuildRequires: meson >= 0.47.0
%prep
%setup -q
+%patch0 -p1
%if %{without sse2}
%{__sed} -i -e 's,#define ADM_OPT_RECIP_DIVISION,/* & */,' libvmaf/src/feature/adm_options.h