14
0
forked from pool/python-spsdk

- Add python-spsdk-remove_pypemicro.patch to remove dependency on

python-pypemcro and pyocd-pemicro.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=9
This commit is contained in:
2024-03-26 11:35:36 +00:00
committed by Git OBS Bridge
parent aac3b151b8
commit cded09b966
3 changed files with 40 additions and 3 deletions

View File

@@ -0,0 +1,27 @@
From 835e24b7cd0b3ba6a62f0abfbb094ad7ee3ab524 Mon Sep 17 00:00:00 2001
From: Johannes Kastl <kastl@b1-systems.de>
Date: Mon, 15 May 2023 13:27:29 +0200
Subject: [PATCH] remove pypemicro
based on
https://github.com/archlinux/svntogit-community/blob/19938f5cab9adf93da26c09ebeb8111ed1bdc59b/trunk/python-spsdk-1.6.0-remove_pypemicro.patch
Signed-off-by: Johannes Kastl <kastl@b1-systems.de>
---
spsdk/debuggers/__init__.py | 1 -
spsdk/debuggers/utils.py | 2 --
2 files changed, 3 deletions(-)
Index: spsdk-2.1.0/spsdk/debuggers/__init__.py
===================================================================
--- spsdk-2.1.0.orig/spsdk/debuggers/__init__.py
+++ spsdk-2.1.0/spsdk/debuggers/__init__.py
@@ -8,7 +8,6 @@
"""Wrappers for various types of debuggers."""
from .debug_probe_jlink import DebugProbePyLink
-from .debug_probe_pemicro import DebugProbePemicro
from .debug_probe_pyocd import DebugProbePyOCD
-__all__ = ["DebugProbePyLink", "DebugProbePemicro", "DebugProbePyOCD"]
+__all__ = ["DebugProbePyLink", "DebugProbePyOCD"]

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 26 11:33:45 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Add python-spsdk-remove_pypemicro.patch to remove dependency on
python-pypemcro and pyocd-pemicro.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 25 12:34:46 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com> Mon Mar 25 12:34:46 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>

View File

@@ -24,6 +24,8 @@ Summary: Unified, reliable and easy to use SW library working across NXP
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/nxp-mcuxpresso/spsdk URL: https://github.com/nxp-mcuxpresso/spsdk
Source: https://files.pythonhosted.org/packages/source/s/spsdk/spsdk-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/s/spsdk/spsdk-%{version}.tar.gz
# PATCH-FIX-OPENSUSE python-spsdk-remove_pypemicro.patch
Patch0: python-spsdk-remove_pypemicro.patch
BuildRequires: %{python_module flit} BuildRequires: %{python_module flit}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
@@ -50,13 +52,15 @@ Requires: python-platformdirs
Requires: python-prettytable Requires: python-prettytable
Requires: python-pylink-square Requires: python-pylink-square
Requires: python-pyocd Requires: python-pyocd
Requires: python-pyocd-pemicro
Requires: python-pypemicro
Requires: python-pyserial Requires: python-pyserial
Requires: python-requests Requires: python-requests
Requires: python-ruamel.yaml Requires: python-ruamel.yaml
Requires: python-sly Requires: python-sly
Requires: python-typing-extensions Requires: python-typing-extensions
# Removed dependencies
# Requires: python-pyocd-pemicro
# dependency no longer required due to Patch0
# Requires: python-pypemicro
BuildArch: noarch BuildArch: noarch
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun): update-alternatives
@@ -66,7 +70,7 @@ Requires(postun): update-alternatives
Secure Provisioning SDK (SPSDK) is unified, reliable and easy to use SW library working across NXP MCU portfolio providing strong foundation from quick customer prototyping up to production deployment. Secure Provisioning SDK (SPSDK) is unified, reliable and easy to use SW library working across NXP MCU portfolio providing strong foundation from quick customer prototyping up to production deployment.
%prep %prep
%setup -q -n spsdk-%{version} %autosetup -p1 -n spsdk-%{version}
%build %build
%pyproject_wheel %pyproject_wheel