Christophe Marin 2024-02-07 16:25:02 +00:00 committed by Git OBS Bridge
parent 80525e0313
commit 677a885203
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,30 @@
From 792cf51f2e1f8850c425760e6aac87f68b4d6ad8 Mon Sep 17 00:00:00 2001
From: "Friedrich W. H. Kossebau" <kossebau@kde.org>
Date: Sun, 12 Jul 2020 15:01:04 +0200
Subject: [PATCH] Find also Python3 with find_package(PythonInterp)
At least with openSUSE TW searching with a version given seems to restrict
the versions accepted to the major version.
So if only python3 is available, searching for 2.6 yields no results.
Given 2.6 is stone-age old, we can assume any found version is good enough
these days
---
cmake/modules/KDbCreateSharedDataClasses.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmake/modules/KDbCreateSharedDataClasses.cmake b/cmake/modules/KDbCreateSharedDataClasses.cmake
index dc5101d9..b764cb36 100644
--- a/cmake/modules/KDbCreateSharedDataClasses.cmake
+++ b/cmake/modules/KDbCreateSharedDataClasses.cmake
@@ -23,7 +23,7 @@ macro(KDB_CREATE_SHARED_DATA_CLASSES)
list(GET _args 1 PREFIX)
list(REMOVE_AT _args 0 1)
# message(STATUS "OUTPUT_VAR: ${OUTPUT_VAR} ${_args}")
- find_package(PythonInterp 2.6)
+ find_package(PythonInterp)
set_package_properties(PythonInterp PROPERTIES DESCRIPTION "Python language interpreter"
URL "https://www.python.org" TYPE REQUIRED
PURPOSE "Required by the Shared Data Classes (SDC) tool")
--
2.43.0

View File

@ -3,6 +3,8 @@ Wed Feb 7 16:18:08 UTC 2024 - Christophe Marin <christophe@krop.fr>
- Build using python3 rather than python2
- Spec cleanup
- Add upstream change:
* 0001-Find-also-Python3-with-find_package-PythonInterp.patch
-------------------------------------------------------------------
Mon Jun 28 14:47:16 UTC 2021 - Wolfgang Bauer <wbauer@tmo.at>

View File

@ -26,6 +26,8 @@ URL: https://community.kde.org/KReport
Source0: https://download.kde.org/stable/%{name}/src/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM
Patch0: Fix-kexi-build-with-GCC-10.patch
# PATCH-FIX-UPSTREAM -- find python3
Patch1: 0001-Find-also-Python3-with-find_package-PythonInterp.patch
BuildRequires: extra-cmake-modules
BuildRequires: python3-base
BuildRequires: cmake(KF5Config)