Files
python-pyOCD/python-pyOCD.spec
Dirk Mueller 4e419281e8 - update to 0.42.0:
* `run` subcommand:
  * Introduce a new `run` subcommand capable of running targets
    until a time limit or EOT (suited for CI/CD workflows)
  * Supports semihosting console output/input and SWV output
  * Standard I/O routing:
  * Add new abstraction layer to unify STDIO routing for each
    core
  * Routing support for `console`, `telnet`, `file` and `off`
  * >Note: Currently only output is supported
  * CMSIS-Toolbox Run and Debug Management integration:
  * Add configuration layer in session options, which sits below
    command line arguments
  * Disable `*.cbuild-run.yml` processing if the
    `target_override` option is set
  * Improve port assignment logic for multi-core GDBServer and
    telnet configurations
  * Add processing for `connect` mode configuration
  * Add processing for `pre-reset` and `post-reset` options in
    `load-setup` configuration
  * Improve error messages for missing or invalid `*.cbuild-
    run.yml` file
  * Improve checking for required files
  * Raise a warning instead of an error for missing SVD files
  * Load SVD files only when available and when used by the
    subcommand
  * Flash programming:
  * Add new session options for configuring `pre-reset` and
    `post-reset` type in `load` subcommand
  * Relax flash algorithm requirement to require only RO section

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOCD?expand=0&rev=20
2026-01-26 08:23:06 +00:00

70 lines
2.1 KiB
RPMSpec

#
# spec file for package python-pyOCD
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-pyOCD
Version: 0.42.0
Release: 0
Summary: CMSIS-DAP debugger for python
License: Apache-2.0
URL: https://github.com/pyocd/pyOCD
Source: https://files.pythonhosted.org/packages/source/p/pyocd/pyocd-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-usb
Requires(post): update-alternatives
Requires(postun): update-alternatives
Provides: python-pyocd = %{version}
Obsoletes: python-pyocd < %{version}
BuildArch: noarch
%python_subpackages
%description
On-chip debugger and flasher tool for ARM microcontrollers.
%prep
%setup -q -n pyocd-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pyocd
%python_clone -a %{buildroot}%{_bindir}/pyocd-gdbserver
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative pyocd
%python_install_alternative pyocd-gdbserver
%postun
%python_uninstall_alternative pyocd
%python_uninstall_alternative pyocd-gdbserver
%files %{python_files}
%python_alternative %{_bindir}/pyocd
%python_alternative %{_bindir}/pyocd-gdbserver
%{python_sitelib}/pyocd
%{python_sitelib}/pyocd-%{version}.dist-info
%changelog