]> git.pld-linux.org Git - packages/ka5-cantor.git/commitdiff
- build fixes: python 3.9, qt 5.15, shebangs
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 11 Mar 2021 20:48:34 +0000 (21:48 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 11 Mar 2021 20:48:34 +0000 (21:48 +0100)
ka5-cantor.spec
python-3.8.patch
qt5.15.patch [new file with mode: 0644]

index c6695df2b128cb1fd642611b6c606e260637aaec..b6e2b033a0d1de6ea386676e1d296bf7da37ba55 100644 (file)
@@ -19,6 +19,7 @@ Group:                X11/Libraries
 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
@@ -94,6 +95,10 @@ Pliki nagłówkowe dla programistów używających %{kaname}.
 %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
index 2de8f0a0b2dec940e6038da093fcf35d5f2ebf43..794eaf45e7dd11a7cfd43023f2a1f6348b2b2a80 100644 (file)
@@ -5,7 +5,7 @@
                 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()
  
diff --git a/qt5.15.patch b/qt5.15.patch
new file mode 100644 (file)
index 0000000..9a75adf
--- /dev/null
@@ -0,0 +1,12 @@
+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;
This page took 0.278982 seconds and 4 git commands to generate.