Accepting request 923472 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/923472 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wheel?expand=0&rev=24
This commit is contained in:
commit
758a91877a
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 5 16:06:03 UTC 2021 - Stefan Schubert <schubi@suse.de>
|
||||
|
||||
- Added BuildRequires: alts
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 1 08:45:20 UTC 2021 - Stefan Schubert <schubi@suse.de>
|
||||
|
||||
- Use libalternatives instead of update-alternatives.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 28 23:25:52 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@ -16,6 +16,12 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} > 1500
|
||||
%bcond_without libalternatives
|
||||
%else
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
@ -35,10 +41,15 @@ URL: https://github.com/pypa/wheel
|
||||
Source: https://github.com/pypa/wheel/archive/%{version}.tar.gz#/wheel-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python-rpm-macros >= 20210929
|
||||
Requires: python-setuptools
|
||||
%if %{with libalternatives}
|
||||
Requires: alts
|
||||
BuildRequires: alts
|
||||
%else
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module devel}
|
||||
@ -81,6 +92,11 @@ export PYTHONDONTWRITEBYTECODE=1
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
|
||||
%pre
|
||||
# If libalternatives is used: Removing old update-alternatives entries.
|
||||
%python_libalternatives_reset_alternative wheel
|
||||
|
||||
%post
|
||||
%python_install_alternative wheel
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user