Accepting request 862662 from home:bnavigator:branches:devel:languages:python

- clean requirements specifications for python flavors

OBS-URL: https://build.opensuse.org/request/show/862662
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=26
This commit is contained in:
Matej Cepl 2021-01-12 15:23:06 +00:00 committed by Git OBS Bridge
parent 3a28fe667e
commit 341fffb615
2 changed files with 12 additions and 10 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jan 12 14:44:39 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
- clean requirements specifications for python flavors
-------------------------------------------------------------------
Sun Dec 20 09:11:23 UTC 2020 - Dirk Müller <dmueller@suse.com>

View File

@ -31,19 +31,14 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
Provides: python-typing-extensions = %{version}
%if %{with python2}
BuildRequires: python-typing >= 3.7.4
%endif
%if 0%{?suse_version} < 1500
BuildRequires: python3-typing >= 3.7.4
%endif
%if 0%{?suse_version} > 1320
BuildRequires: %{python_module testsuite}
%endif
%if %{python3_version_nodots} < 35
Requires: python-typing >= 3.7.4
%if %{with python2}
BuildRequires: python-typing >= 3.7.4
%endif
%ifpython2
BuildRequires: (python3-typing >= 3.7.4 if python3-base < 3.5)
%if %{python_version_nodots} < 35
Requires: python-typing >= 3.7.4
%endif
%python_subpackages
@ -84,6 +79,8 @@ $python src_py${current_bin_suffix:0:1}/test_typing_extensions.py
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%{python_sitelib}/typing_extensions.py*
%pycache_only %{python_sitelib}/__pycache__/typing_extensions*
%{python_sitelib}/typing_extensions-%{version}*-info
%changelog