commit 08688262f1fa9d274a75be6eaddf57684e76b391
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Tue Aug 4 09:26:16 2020 +0100
Fix cmake
svt-hevc.spec | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/svt-hevc.spec b/svt-hevc.spec
index 1bb20c8..86ca028 100644
--- a/svt-hevc.spec
+++ b/svt-hevc.spec
@@ -1,3 +1,5 @@
+%undefine __cmake_in_source_build
+
Name: svt-hevc
Version: 1.5.0
Release: 1%{?dist}
@@ -51,7 +53,11 @@ This package provides %{name}-based GStreamer plug-in.
%build
-%cmake -G Ninja
+%cmake -G Ninja \
+%if 0%{?rhel} && 0%{?rhel} > 7
+ -B %{_target_platform} -S .
+%endif
+
%ninja_build -C %{_target_platform}
pushd gstreamer-plugin