commit 0b0c42999e3a5ea005d982ce730ca63094690bca
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Wed Apr 29 08:31:12 2020 +0100
Fix QT-5.14 build
fix_qt514_build.patch | 21 +++++++++++++++++++++
qtav.spec | 3 ++-
2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/fix_qt514_build.patch b/fix_qt514_build.patch
new file mode 100644
index 0000000..c81ccdd
--- /dev/null
+++ b/fix_qt514_build.patch
@@ -0,0 +1,21 @@
+From 5abba7f0505e75fceabd4dd8992a7e02bb149d64 Mon Sep 17 00:00:00 2001
+From: Alexander Ivash <Alexander.Ivash(a)StealthBits.com>
+Date: Tue, 24 Dec 2019 16:04:25 +0300
+Subject: [PATCH] add include
+
+---
+ qml/SGVideoNode.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/qml/SGVideoNode.cpp b/qml/SGVideoNode.cpp
+index b12089d8e..3f2a07d72 100644
+--- a/qml/SGVideoNode.cpp
++++ b/qml/SGVideoNode.cpp
+@@ -25,6 +25,7 @@
+ #include "QtAV/VideoFrame.h"
+ #include <QtCore/QScopedPointer>
+ #include <QtGui/QOpenGLFunctions>
++#include <QtQuick/QSGMaterial>
+ #include <QtQuick/QSGMaterialShader>
+
+ // all in QSGRenderThread
diff --git a/qtav.spec b/qtav.spec
index 16345ba..8afc4ab 100644
--- a/qtav.spec
+++ b/qtav.spec
@@ -8,6 +8,7 @@ Summary: A media playback framework based on Qt and FFmpeg
License: LGPLv2+ and GPLv3+ and BSD
URL:
http://www.qtav.org/
Source0:
https://github.com/wang-bin/QtAV/archive/v%{version}/%{project}-%{version...
+Patch0:
https://github.com/wang-bin/QtAV//commit/5abba7f0505e75fceabd4dd8992a7e02...
BuildRequires: desktop-file-utils
BuildRequires: qt5-qtbase-devel
@@ -105,7 +106,7 @@ High performance. User & developer friendly.
This package contains the QtAV based players.
%prep
-%autosetup -n %repo-%{version}
+%autosetup -p1 -n %repo-%{version}
# E: script-without-shebang /usr/share/icons/hicolor/scalable/apps/QtAV.svg
# ignore them src/QtAV.svg: SVG Scalable Vector Graphics image