Sync from SUSE:SLFO:Main python-pyserial revision f514420ad293c073ca6bf265b271aa88
This commit is contained in:
parent
85edbeea54
commit
e5e30c7ed8
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 15 13:11:59 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
||||||
|
|
||||||
|
- Use libalternatives instead of update-alternatives, bsc#1235782
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Apr 23 23:19:35 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
Sun Apr 23 23:19:35 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -15,6 +15,11 @@
|
|||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pyserial
|
Name: python-pyserial
|
||||||
@ -29,8 +34,13 @@ BuildRequires: %{python_module setuptools}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
|
%if %{with libalternatives}
|
||||||
|
Requires: alts
|
||||||
|
BuildRequires: alts
|
||||||
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
Provides: python-serial = %{version}
|
Provides: python-serial = %{version}
|
||||||
Obsoletes: python-serial < %{version}
|
Obsoletes: python-serial < %{version}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -89,6 +99,11 @@ rm documentation/_build/doctrees/environment.pickle
|
|||||||
%check
|
%check
|
||||||
%python_exec test/run_all_tests.py
|
%python_exec test/run_all_tests.py
|
||||||
|
|
||||||
|
%pre
|
||||||
|
# If libalternatives is used: Removing old update-alternatives entries.
|
||||||
|
%python_libalternatives_reset_alternative pyserial-miniterm
|
||||||
|
%python_libalternatives_reset_alternative pyserial-ports
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative pyserial-miniterm
|
%python_install_alternative pyserial-miniterm
|
||||||
%python_install_alternative pyserial-ports
|
%python_install_alternative pyserial-ports
|
||||||
|
Loading…
x
Reference in New Issue
Block a user