OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=16
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user