forked from pool/micropython
Fix 15.6 fixes
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=34
This commit is contained in:
@@ -46,7 +46,6 @@ BuildRequires: %{python_module pip}
|
|||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
%python_subpackages
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A lean and efficient Python implementation for microcontrollers and constrained systems
|
A lean and efficient Python implementation for microcontrollers and constrained systems
|
||||||
@@ -80,9 +79,11 @@ install -d %{buildroot}%{_bindir}
|
|||||||
install -t %{buildroot}%{_bindir} ports/unix/build-standard/micropython
|
install -t %{buildroot}%{_bindir} ports/unix/build-standard/micropython
|
||||||
pushd tools/mpremote
|
pushd tools/mpremote
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%python3_fix_shebang
|
|
||||||
%fdupes %{buildroot}%{python3_sitelib}
|
|
||||||
popd
|
popd
|
||||||
|
%python3_fix_shebang
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
# remove pycache to get rid of rpmlint "W: python-bytecode-inconsistent-mtime" warnings
|
||||||
|
%python_expand rm -rf %{buildroot}%{$python_sitelib}/mpremote/__pycache__
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%ifnarch x86_64
|
%ifnarch x86_64
|
||||||
@@ -99,11 +100,11 @@ make -C ports/unix PYTHON=%{_bindir}/python%python_version V=1 test
|
|||||||
%doc docs/unix/*
|
%doc docs/unix/*
|
||||||
%{_bindir}/micropython
|
%{_bindir}/micropython
|
||||||
|
|
||||||
%files -n mpremote %{python_files}
|
%files -n mpremote
|
||||||
%license tools/mpremote/LICENSE
|
%license tools/mpremote/LICENSE
|
||||||
%doc tools/mpremote/README.md
|
%doc tools/mpremote/README.md
|
||||||
%{python_sitelib}/mpremote
|
%{_prefix}/lib/python%{python_version}/site-packages/mpremote
|
||||||
%{python_sitelib}/mpremote-%{version}.dist-info
|
%{_prefix}/lib/python%{python_version}/site-packages/mpremote-%{version}.dist-info
|
||||||
%{_bindir}/mpremote
|
%{_bindir}/mpremote
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user