Accepting request 923246 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/923246 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tempora?expand=0&rev=11
This commit is contained in:
commit
1efb7e98bd
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 5 13:30:13 UTC 2021 - Stefan Schubert <schubi@suse.de>
|
||||||
|
|
||||||
|
- Added BuildRequires: alts
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 30 07:54:19 UTC 2021 - Stefan Schubert <schubi@suse.de>
|
||||||
|
|
||||||
|
- Use libalternatives instead of update-alternatives.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 1 11:24:10 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
Wed Sep 1 11:24:10 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@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-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-tempora
|
Name: python-tempora
|
||||||
@ -34,11 +40,16 @@ BuildRequires: %{python_module setuptools_scm >= 3.4.1}
|
|||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module toml}
|
BuildRequires: %{python_module toml}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros >= 20210929
|
||||||
Requires: python-jaraco.functools >= 1.20
|
Requires: python-jaraco.functools >= 1.20
|
||||||
Requires: python-pytz
|
Requires: python-pytz
|
||||||
|
%if %{with libalternatives}
|
||||||
|
Requires: alts
|
||||||
|
BuildRequires: alts
|
||||||
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -66,6 +77,10 @@ sed -i '/--mypy/d' pytest.ini
|
|||||||
sed -i -e 's:--black::' -e 's:--cov::' -e 's/--flake8//g' pytest.ini
|
sed -i -e 's:--black::' -e 's:--cov::' -e 's/--flake8//g' pytest.ini
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
|
%pre
|
||||||
|
# If libalternatives is used: Removing old update-alternatives entries.
|
||||||
|
%python_libalternatives_reset_alternative calc-prorate
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative calc-prorate
|
%python_install_alternative calc-prorate
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user