From cded09b966054962a0fc22f48aaa62a799f81e2148ac67f57f8d38e5f19b3499 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Tue, 26 Mar 2024 11:35:36 +0000 Subject: [PATCH] - 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 --- python-spsdk-remove_pypemicro.patch | 27 +++++++++++++++++++++++++++ python-spsdk.changes | 6 ++++++ python-spsdk.spec | 10 +++++++--- 3 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 python-spsdk-remove_pypemicro.patch diff --git a/python-spsdk-remove_pypemicro.patch b/python-spsdk-remove_pypemicro.patch new file mode 100644 index 0000000..e6ea673 --- /dev/null +++ b/python-spsdk-remove_pypemicro.patch @@ -0,0 +1,27 @@ +From 835e24b7cd0b3ba6a62f0abfbb094ad7ee3ab524 Mon Sep 17 00:00:00 2001 +From: Johannes Kastl +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 +--- + 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"] diff --git a/python-spsdk.changes b/python-spsdk.changes index dfd3dfd..d719590 100644 --- a/python-spsdk.changes +++ b/python-spsdk.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 26 11:33:45 UTC 2024 - Daniel Garcia + +- 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 diff --git a/python-spsdk.spec b/python-spsdk.spec index f20ccf1..16691a6 100644 --- a/python-spsdk.spec +++ b/python-spsdk.spec @@ -24,6 +24,8 @@ Summary: Unified, reliable and easy to use SW library working across NXP License: BSD-3-Clause URL: https://github.com/nxp-mcuxpresso/spsdk 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 pip} BuildRequires: %{python_module setuptools} @@ -50,13 +52,15 @@ Requires: python-platformdirs Requires: python-prettytable Requires: python-pylink-square Requires: python-pyocd -Requires: python-pyocd-pemicro -Requires: python-pypemicro Requires: python-pyserial Requires: python-requests Requires: python-ruamel.yaml Requires: python-sly Requires: python-typing-extensions +# Removed dependencies +# Requires: python-pyocd-pemicro +# dependency no longer required due to Patch0 +# Requires: python-pypemicro BuildArch: noarch Requires(post): 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. %prep -%setup -q -n spsdk-%{version} +%autosetup -p1 -n spsdk-%{version} %build %pyproject_wheel