From 3bdf9b155becea1631b365d73cfdfa060eaf95e4ecdbd53eb04a24348e9b9117 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Mon, 7 Jun 2021 11:54:37 +0000 Subject: [PATCH] Accepting request 898017 from home:mnhauke - Add patch: * hobbits-dont-hardcode-python3-version.patch OBS-URL: https://build.opensuse.org/request/show/898017 OBS-URL: https://build.opensuse.org/package/show/editors/hobbits?expand=0&rev=4 --- hobbits-dont-hardcode-python3-version.patch | 13 +++++++++++++ hobbits.changes | 6 ++++++ hobbits.spec | 4 +++- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 hobbits-dont-hardcode-python3-version.patch diff --git a/hobbits-dont-hardcode-python3-version.patch b/hobbits-dont-hardcode-python3-version.patch new file mode 100644 index 0000000..ab53ead --- /dev/null +++ b/hobbits-dont-hardcode-python3-version.patch @@ -0,0 +1,13 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index c879237..6e2cecd 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -120,7 +120,7 @@ elseif( MANUAL_PYTHON_PATH ) + set ( Python3_ROOT_DIR "${MANUAL_PYTHON_PATH}" ) + endif() + +-find_package (Python3 3.9 EXACT COMPONENTS Interpreter Development REQUIRED) ++find_package (Python3 COMPONENTS Interpreter Development REQUIRED) + message("Python3 Libs: ${Python3_LIBRARIES}") + + # diff --git a/hobbits.changes b/hobbits.changes index 4dd2967..c7e6255 100644 --- a/hobbits.changes +++ b/hobbits.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jun 7 09:16:04 UTC 2021 - Martin Hauke + +- Add patch: + * hobbits-dont-hardcode-python3-version.patch + ------------------------------------------------------------------- Sun Jun 6 20:01:00 UTC 2021 - Jan Engelhardt diff --git a/hobbits.spec b/hobbits.spec index 82fd068..2326ae5 100644 --- a/hobbits.spec +++ b/hobbits.spec @@ -23,12 +23,13 @@ Summary: A GUI for bit-based analysis, processing, and visualization License: MIT URL: https://github.com/Mahlet-Inc/hobbits Source: https://github.com/Mahlet-Inc/hobbits/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch0: hobbits-dont-hardcode-python3-version.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libpcap-devel BuildRequires: pkgconfig BuildRequires: fdupes -BuildRequires: python39-devel +BuildRequires: python3-devel BuildRequires: pkgconfig(Qt5Concurrent) BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Network) @@ -54,6 +55,7 @@ This subpackage contains files for developing applications thatwant to make use %prep %setup -q +%patch0 -p1 %build cd src