Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
# Source0-md5: 0a2d78da9b7a785adeddd1094e9bbe67
Patch0: python-3.8.patch
+Patch1: qt5.15.patch
URL: http://www.kde.org/
BuildRequires: Qt5Core-devel >= %{qtver}
BuildRequires: Qt5Gui-devel
%prep
%setup -q -n %{kaname}-%{version}
%patch0 -p1
+%patch1 -p1
+
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+bash(\s|$),#!/bin/bash\1,' \
+ src/backends/sage/cantor-execsage
%build
install -d build
HINTS ${PYTHONLIBS3_LIBDIR} ${PYTHONLIBS3_LIBRARY_DIRS} )
ELSE()
- find_library(PYTHONLIBS3_LIBRARY NAMES python3.2m python3.3m python3.4m python3.5m python3.6m python3.7m
-+ find_library(PYTHONLIBS3_LIBRARY NAMES python3.2m python3.3m python3.4m python3.5m python3.6m python3.7m python3.8m python3.8
++ find_library(PYTHONLIBS3_LIBRARY NAMES python3.2m python3.3m python3.4m python3.5m python3.6m python3.7m python3.8m python3.8 python3.9
HINTS ${PYTHONLIBS3_LIBDIR} ${PYTHONLIBS3_LIBRARY_DIRS} )
ENDIF()
--- /dev/null
+diff -urN cantor-19.04.1/src/cantor.h cantor-19.08.3/src/cantor.h
+--- cantor-19.04.1/src/cantor.h 2019-05-02 22:14:10.000000000 +0200
++++ cantor-19.08.3/src/cantor.h 2019-11-01 22:50:43.000000000 +0100
+@@ -25,6 +25,8 @@
+ #include <KParts/MainWindow>
+
+ #include <QList>
++#include <QStringList>
++#include <QMap>
+
+ class QTabWidget;
+ class KTextEdit;