forked from pool/python-pyOCD
Accepting request 807623 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/807623 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOCD?expand=0&rev=10
This commit is contained in:
committed by
Git OBS Bridge
parent
42e965ce22
commit
3c0d7a41f4
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 20 07:26:37 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 10 12:47:32 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
Tue Sep 10 12:47:32 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pyOCD
|
# spec file for package python-pyOCD
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 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
|
||||||
@@ -31,6 +31,8 @@ BuildRequires: %{python_module setuptools}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-usb
|
Requires: python-usb
|
||||||
|
Requires(post): 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
|
||||||
@@ -47,21 +49,29 @@ On-chip debugger and flasher tool for ARM microcontrollers.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
%python_clone %{buildroot}%{_bindir}/pyocd
|
%python_clone -a %{buildroot}%{_bindir}/pyocd
|
||||||
%python_clone %{buildroot}%{_bindir}/pyocd-flashtool
|
%python_clone -a %{buildroot}%{_bindir}/pyocd-flashtool
|
||||||
%python_clone %{buildroot}%{_bindir}/pyocd-gdbserver
|
%python_clone -a %{buildroot}%{_bindir}/pyocd-gdbserver
|
||||||
%python_clone %{buildroot}%{_bindir}/pyocd-tool
|
%python_clone -a %{buildroot}%{_bindir}/pyocd-tool
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative pyocd
|
||||||
|
%python_install_alternative pyocd-flashtool
|
||||||
|
%python_install_alternative pyocd-gdbserver
|
||||||
|
%python_install_alternative pyocd-tool
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative pyocd
|
||||||
|
%python_uninstall_alternative pyocd-flashtool
|
||||||
|
%python_uninstall_alternative pyocd-gdbserver
|
||||||
|
%python_uninstall_alternative pyocd-tool
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%{_bindir}/pyocd-flashtool-%{python_bin_suffix}
|
%python_alternative %{_bindir}/pyocd
|
||||||
%{_bindir}/pyocd-gdbserver-%{python_bin_suffix}
|
%python_alternative %{_bindir}/pyocd-flashtool
|
||||||
%{_bindir}/pyocd-tool-%{python_bin_suffix}
|
%python_alternative %{_bindir}/pyocd-gdbserver
|
||||||
%{_bindir}/pyocd-%{python_bin_suffix}
|
%python_alternative %{_bindir}/pyocd-tool
|
||||||
%python3_only %{_bindir}/pyocd
|
|
||||||
%python3_only %{_bindir}/pyocd-flashtool
|
|
||||||
%python3_only %{_bindir}/pyocd-gdbserver
|
|
||||||
%python3_only %{_bindir}/pyocd-tool
|
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user