14
0
forked from pool/python-pyOCD

- Update to 0.21.0:

* Too many changes to enumerate

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOCD?expand=0&rev=6
This commit is contained in:
Tomáš Chvátal
2019-07-23 10:49:01 +00:00
committed by Git OBS Bridge
parent 6d4c100abc
commit 5bbeaaea52
4 changed files with 20 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyOCD
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,44 +18,47 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pyOCD
Version: 0.8.1a1
Version: 0.21.0
Release: 0
Summary: CMSIS-DAP debugger for python
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/mbedmicro/pyOCD
Source: https://files.pythonhosted.org/packages/source/p/pyOCD/pyOCD-%{version}.tar.gz
URL: https://github.com/mbedmicro/pyOCD
Source: https://files.pythonhosted.org/packages/source/p/pyocd/pyocd-%{version}.tar.gz
BuildRequires: %{python_module setuptools_scm_git_archive}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-usb
BuildRoot: %{_tmppath}/%{name}-%{version}-build
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}
%setup -q -n pyocd-%{version}
%build
%python_build
%install
%python_install
%python_clone %{buildroot}%{_bindir}/pyocd
%python_clone %{buildroot}%{_bindir}/pyocd-flashtool
%python_clone %{buildroot}%{_bindir}/pyocd-gdbserver
%python_clone %{buildroot}%{_bindir}/pyocd-tool
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%defattr(-,root,root,-)
%{_bindir}/pyocd-flashtool-%{python_bin_suffix}
%{_bindir}/pyocd-gdbserver-%{python_bin_suffix}
%{_bindir}/pyocd-tool-%{python_bin_suffix}
%{_bindir}/pyocd-%{python_bin_suffix}
%python3_only %{_bindir}/pyocd
%python3_only %{_bindir}/pyocd-flashtool
%python3_only %{_bindir}/pyocd-gdbserver
%python3_only %{_bindir}/pyocd-tool