diff --git a/python-spsdk.changes b/python-spsdk.changes index ae79545..8848143 100644 --- a/python-spsdk.changes +++ b/python-spsdk.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed May 31 05:46:17 UTC 2023 - Johannes Kastl + +- 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 diff --git a/python-spsdk.spec b/python-spsdk.spec index 4e1a010..885eccf 100644 --- a/python-spsdk.spec +++ b/python-spsdk.spec @@ -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