diff --git a/python-pyOCD.changes b/python-pyOCD.changes index 87f2994..61e0cc6 100644 --- a/python-pyOCD.changes +++ b/python-pyOCD.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jul 27 07:25:56 UTC 2023 - Steve Kowalik + +- 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 diff --git a/python-pyOCD.spec b/python-pyOCD.spec index 4b7774b..28e00e3 100644 --- a/python-pyOCD.spec +++ b/python-pyOCD.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -16,23 +16,22 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyOCD Version: 0.22.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 -BuildRequires: %{python_module setuptools_scm_git_archive} +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 +Requires(postun):update-alternatives Provides: python-pyocd = %{version} Obsoletes: python-pyocd < %{version} BuildArch: noarch @@ -45,10 +44,10 @@ On-chip debugger and flasher tool for ARM microcontrollers. %setup -q -n pyocd-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/pyocd %python_clone -a %{buildroot}%{_bindir}/pyocd-flashtool %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-gdbserver %python_alternative %{_bindir}/pyocd-tool -%{python_sitelib}/* +%{python_sitelib}/pyocd +%{python_sitelib}/pyocd-%{version}.dist-info %changelog