diff --git a/python-spsdk.spec b/python-spsdk.spec index 0d90a13..1f6fbc6 100644 --- a/python-spsdk.spec +++ b/python-spsdk.spec @@ -103,13 +103,13 @@ 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;}' {} + # compile all here to avoid python-bytecode-inconsistent-mtime -%{python_compileall} +%python_compileall %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 %pre -%python_libalternatives_reset_alternative blhost ifr nxpcrypto nxpdebugmbox nxpdevhsm nxpdevscan nxpele nxpimage pfr sdphost sdpshost shadowregs spsdk tpconfig tphost dk6prog nxpmemcfg nxpwpc +%python_libalternatives_reset_alternative blhost %files %{python_files} %doc README.md