From 7f204b6d1f7e58b2d25446f1b79e74632db039eecfa2dc9c4224fa1ab123d730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 17 Jun 2025 08:05:53 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=16 --- python-spsdk.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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