14
0
forked from pool/python-pyOCD

Accepting request 592874 from home:a_faerber:branches:devel:languages:python

Convert to singlespec and update to v0.8.1a1

OBS-URL: https://build.opensuse.org/request/show/592874
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOCD?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal
2018-04-02 06:25:38 +00:00
committed by Git OBS Bridge
parent 4f58a7655f
commit 2cf1c76156
4 changed files with 37 additions and 13 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c6b98ec53d347e3ae677e27f52056cd55fbd473bd548489b2aa7dcf967146dd7
size 33194

3
pyOCD-0.8.1a1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f81c49d0fafb47ef4a682633aaaf1510abf24ae42d0380ad4d98dd8107cbb351
size 441509

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Apr 1 01:33:46 UTC 2018 - afaerber@suse.de
- Convert to singlespec
- Update to v0.8.1a1
-------------------------------------------------------------------
Wed Jan 7 17:22:28 UTC 2015 - afaerber@suse.de

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyOCD
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@@ -13,20 +13,28 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pyOCD
Version: 0.2
Version: 0.8.1a1
Release: 0
License: Apache-2.0
Summary: CMSIS-DAP debugger for python
Url: https://github.com/mbedmicro/pyOCD
License: Apache-2.0
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/p/pyOCD/pyOCD-%{version}.tar.gz
BuildRequires: python-devel
Url: https://github.com/mbedmicro/pyOCD
Source: https://files.pythonhosted.org/packages/source/p/pyOCD/pyOCD-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-usb
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: python-usb
%python_subpackages
%description
On-chip debugger and flasher tool for ARM microcontrollers.
@@ -35,13 +43,23 @@ On-chip debugger and flasher tool for ARM microcontrollers.
%setup -q -n pyOCD-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%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
%files %{python_files}
%defattr(-,root,root,-)
%{_bindir}/pyocd-flashtool-%{python_bin_suffix}
%{_bindir}/pyocd-gdbserver-%{python_bin_suffix}
%{_bindir}/pyocd-tool-%{python_bin_suffix}
%python3_only %{_bindir}/pyocd-flashtool
%python3_only %{_bindir}/pyocd-gdbserver
%python3_only %{_bindir}/pyocd-tool
%{python_sitelib}/*
%changelog