forked from pool/python-pyOCD
- Switch to setuptools_scm, rather than setuptools_scm_git_archive.
- Switch to pyproject macros. - Stop using greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOCD?expand=0&rev=12
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 27 07:25:56 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to setuptools_scm, rather than setuptools_scm_git_archive.
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
- Stop using greedy globs in %files.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 20 07:26:37 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
Wed May 20 07:26:37 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pyOCD
|
# spec file for package python-pyOCD
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,23 +16,22 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-pyOCD
|
Name: python-pyOCD
|
||||||
Version: 0.22.0
|
Version: 0.22.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: CMSIS-DAP debugger for python
|
Summary: CMSIS-DAP debugger for python
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/mbedmicro/pyOCD
|
URL: https://github.com/mbedmicro/pyOCD
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pyocd/pyocd-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pyocd/pyocd-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools_scm_git_archive}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-usb
|
Requires: python-usb
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun):update-alternatives
|
||||||
Provides: python-pyocd = %{version}
|
Provides: python-pyocd = %{version}
|
||||||
Obsoletes: python-pyocd < %{version}
|
Obsoletes: python-pyocd < %{version}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -45,10 +44,10 @@ On-chip debugger and flasher tool for ARM microcontrollers.
|
|||||||
%setup -q -n pyocd-%{version}
|
%setup -q -n pyocd-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/pyocd
|
%python_clone -a %{buildroot}%{_bindir}/pyocd
|
||||||
%python_clone -a %{buildroot}%{_bindir}/pyocd-flashtool
|
%python_clone -a %{buildroot}%{_bindir}/pyocd-flashtool
|
||||||
%python_clone -a %{buildroot}%{_bindir}/pyocd-gdbserver
|
%python_clone -a %{buildroot}%{_bindir}/pyocd-gdbserver
|
||||||
@@ -72,6 +71,7 @@ On-chip debugger and flasher tool for ARM microcontrollers.
|
|||||||
%python_alternative %{_bindir}/pyocd-flashtool
|
%python_alternative %{_bindir}/pyocd-flashtool
|
||||||
%python_alternative %{_bindir}/pyocd-gdbserver
|
%python_alternative %{_bindir}/pyocd-gdbserver
|
||||||
%python_alternative %{_bindir}/pyocd-tool
|
%python_alternative %{_bindir}/pyocd-tool
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/pyocd
|
||||||
|
%{python_sitelib}/pyocd-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user