diff --git a/pyOCD-0.2.tar.gz b/pyOCD-0.2.tar.gz deleted file mode 100644 index 37e973e..0000000 --- a/pyOCD-0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c6b98ec53d347e3ae677e27f52056cd55fbd473bd548489b2aa7dcf967146dd7 -size 33194 diff --git a/pyOCD-0.8.1a1.tar.gz b/pyOCD-0.8.1a1.tar.gz new file mode 100644 index 0000000..0ff3c10 --- /dev/null +++ b/pyOCD-0.8.1a1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f81c49d0fafb47ef4a682633aaaf1510abf24ae42d0380ad4d98dd8107cbb351 +size 441509 diff --git a/python-pyOCD.changes b/python-pyOCD.changes index 9ca8dcc..9461c1a 100644 --- a/python-pyOCD.changes +++ b/python-pyOCD.changes @@ -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 diff --git a/python-pyOCD.spec b/python-pyOCD.spec index c8febc8..b08add9 100644 --- a/python-pyOCD.spec +++ b/python-pyOCD.spec @@ -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