forked from pool/python-spsdk
Accepting request 1089928 from home:ojkastl_buildservice:Branch_devel_languages_python
do no longer package the *.c and *.bin files in spsdk/data/cpu_data/ OBS-URL: https://build.opensuse.org/request/show/1089928 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 31 05:46:17 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
||||
|
||||
- do no longer package the *.c and *.bin files in
|
||||
spsdk/data/cpu_data/ (see
|
||||
https://github.com/nxp-mcuxpresso/spsdk/issues/60)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 15 11:57:52 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
||||
|
||||
|
@@ -28,13 +28,13 @@ Source: https://files.pythonhosted.org/packages/source/s/spsdk/spsdk-%{v
|
||||
# https://github.com/archlinux/svntogit-community/blob/19938f5cab9adf93da26c09ebeb8111ed1bdc59b/trunk/python-spsdk-1.6.0-remove_pypemicro.patch
|
||||
#
|
||||
Patch0: python-spsdk-remove_pypemicro.patch
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module flit}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-asn1crypto
|
||||
Requires: python-astunparse
|
||||
Requires: python-bincopy
|
||||
@@ -65,7 +65,7 @@ Requires: python-sly
|
||||
Requires: python-typing-extensions
|
||||
BuildArch: noarch
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -105,6 +105,8 @@ find . -type f -name README.md -exec dos2unix {} +
|
||||
# remove shebangs
|
||||
%python_expand find %{buildroot}%{$python_sitelib} -iname "*.py" -exec sed -i '1{/env python/d;}' {} +
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
# remove unneccesary *.c and *.bin files
|
||||
%python_expand rm -vf %{buildroot}%{$python_sitelib}/spsdk/data/cpu_data/*.c %{buildroot}%{$python_sitelib}/spsdk/data/cpu_data/*.bin
|
||||
|
||||
%post
|
||||
%python_install_alternative blhost elftosb ifr nxpcertgen nxpcrypto nxpdebugmbox nxpdevhsm nxpdevscan nxpimage nxpkeygen pfr sdphost sdpshost shadowregs spsdk tpconfig tphost
|
||||
|
Reference in New Issue
Block a user