diff --git a/0001-QtPDF-Fix-compilation-with-Qt-5.15.patch b/0001-QtPDF-Fix-compilation-with-Qt-5.15.patch new file mode 100644 index 0000000..a6a468f --- /dev/null +++ b/0001-QtPDF-Fix-compilation-with-Qt-5.15.patch @@ -0,0 +1,24 @@ +From a5afacf4ca64988927690919ce85a1e3b493bd08 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Stefan=20L=C3=B6ffler?= +Date: Fri, 1 May 2020 08:05:46 +0200 +Subject: [PATCH] Fix compilation with Qt 5.15 + +--- + modules/QtPDF/src/PDFBackend.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/modules/QtPDF/src/PDFBackend.cpp b/modules/QtPDF/src/PDFBackend.cpp +index 0305d87..500d20a 100644 +--- a/modules/QtPDF/src/PDFBackend.cpp ++++ b/modules/QtPDF/src/PDFBackend.cpp +@@ -14,6 +14,7 @@ + + #include + #include ++#include + #include + + namespace QtPDF { +-- +2.26.2 + diff --git a/texworks.changes b/texworks.changes index 7c3b018..942742e 100644 --- a/texworks.changes +++ b/texworks.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jun 5 18:48:42 UTC 2020 - Christophe Giboudeaux + +- Add upstream patch: + * 0001-QtPDF-Fix-compilation-with-Qt-5.15.patch + ------------------------------------------------------------------- Fri Mar 27 08:48:46 UTC 2020 - Atri Bhattacharya diff --git a/texworks.spec b/texworks.spec index 4fa09f4..01d4612 100644 --- a/texworks.spec +++ b/texworks.spec @@ -25,6 +25,8 @@ License: GPL-2.0-or-later Group: Productivity/Publishing/TeX/Frontends URL: https://www.tug.org/texworks/ Source0: https://github.com/TeXworks/texworks/archive/release-%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM +Patch0: 0001-QtPDF-Fix-compilation-with-Qt-5.15.patch BuildRequires: cmake BuildRequires: dbus-1-devel BuildRequires: desktop-file-utils @@ -82,6 +84,7 @@ This package adds lua scripting abitilies to TeXworks. %prep %setup -q -n texworks-release-%{version} +%patch0 -p1 %build