Accepting request 811557 from KDE:Extra

- Add patch to build with Qt 5.15:
  * 0001-Fix-build-with-Qt-5.15.patch

OBS-URL: https://build.opensuse.org/request/show/811557
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/calligra-plan?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2020-06-05 18:19:44 +00:00 committed by Git OBS Bridge
commit 4f1d378dce
3 changed files with 48 additions and 3 deletions

View File

@ -0,0 +1,37 @@
From 46f0dabb9a5b995aba7b0cef53284b23d94e4266 Mon Sep 17 00:00:00 2001
From: Christophe Giboudeaux <christophe@krop.fr>
Date: Thu, 4 Jun 2020 17:49:50 +0200
Subject: [PATCH] Fix build with Qt 5.15
---
src/libs/main/KoDocument.cpp | 1 +
src/libs/ui/kptganttitemdelegate.cpp | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/libs/main/KoDocument.cpp b/src/libs/main/KoDocument.cpp
index 76ecad05..2eeb76b1 100644
--- a/src/libs/main/KoDocument.cpp
+++ b/src/libs/main/KoDocument.cpp
@@ -69,6 +69,7 @@
#include <QDir>
#include <QFileInfo>
#include <QPainter>
+#include <QPainterPath>
#include <QTimer>
#ifndef QT_NO_DBUS
#include <KJobWidgets>
diff --git a/src/libs/ui/kptganttitemdelegate.cpp b/src/libs/ui/kptganttitemdelegate.cpp
index 04217da4..d2f3e6d8 100644
--- a/src/libs/ui/kptganttitemdelegate.cpp
+++ b/src/libs/ui/kptganttitemdelegate.cpp
@@ -28,6 +28,7 @@
#include <QModelIndex>
#include <QApplication>
#include <QPainter>
+#include <QPainterPath>
#include <QLocale>
#include <KLocalizedString>
--
2.26.2

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 4 15:50:23 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
- Add patch to build with Qt 5.15:
* 0001-Fix-build-with-Qt-5.15.patch
-------------------------------------------------------------------
Fri Dec 13 23:01:17 UTC 2019 - Wolfgang Bauer <wbauer@tmo.at>

View File

@ -1,7 +1,7 @@
#
# spec file for package calligra-plan
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -24,6 +24,8 @@ License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
Group: Productivity/Office/Suite
URL: https://www.calligra.org/
Source0: https://download.kde.org/stable/calligra/%{version}/calligraplan-%{version}.tar.xz
# PATCH-FIX-UPSTREAM
Patch0: 0001-Fix-build-with-Qt-5.15.patch
BuildRequires: extra-cmake-modules
BuildRequires: kf5-filesystem
BuildRequires: perl-base
@ -72,11 +74,11 @@ Plan is the project management application of the Calligra Suite.
%lang_package
%prep
%setup -q -n calligraplan-%{version}
%autosetup -p1 -n calligraplan-%{version}
%build
%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}
%make_jobs
%cmake_build
%install
%kf5_makeinstall -C build