From: Jan Rękorajski Date: Sun, 3 Nov 2019 13:38:07 +0000 (+0100) Subject: - fix building with python 3.8 X-Git-Tag: auto/th/ka5-cantor-19.04.1-3 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fka5-cantor.git;a=commitdiff_plain;h=3d7a1dd84f9b7776a81dee95fb2b79230303d8b1;ds=sidebyside - fix building with python 3.8 - rel 3 --- diff --git a/ka5-cantor.spec b/ka5-cantor.spec index 5ee5201..c6695df 100644 --- a/ka5-cantor.spec +++ b/ka5-cantor.spec @@ -13,11 +13,12 @@ Summary: Cantor Name: ka5-%{kaname} Version: 19.04.1 -Release: 2 +Release: 3 License: GPL v2+/LGPL v2.1+ Group: X11/Libraries Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz # Source0-md5: 0a2d78da9b7a785adeddd1094e9bbe67 +Patch0: python-3.8.patch URL: http://www.kde.org/ BuildRequires: Qt5Core-devel >= %{qtver} BuildRequires: Qt5Gui-devel @@ -92,6 +93,7 @@ Pliki nagłówkowe dla programistów używających %{kaname}. %prep %setup -q -n %{kaname}-%{version} +%patch0 -p1 %build install -d build diff --git a/python-3.8.patch b/python-3.8.patch new file mode 100644 index 0000000..2de8f0a --- /dev/null +++ b/python-3.8.patch @@ -0,0 +1,11 @@ +--- cantor-19.04.1/cmake/FindPythonLibs3.cmake~ 2019-05-02 22:14:10.000000000 +0200 ++++ cantor-19.04.1/cmake/FindPythonLibs3.cmake 2019-11-03 14:34:28.109784898 +0100 +@@ -6,7 +6,7 @@ + find_library(PYTHONLIBS3_LIBRARY NAMES python32 python33 python34 python35 python36 python37 + 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 + HINTS ${PYTHONLIBS3_LIBDIR} ${PYTHONLIBS3_LIBRARY_DIRS} ) + ENDIF() +