Accepting request 784168 from devel:languages:python
- Fix build without python2 available OBS-URL: https://build.opensuse.org/request/show/784168 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typing_extensions?expand=0&rev=6
This commit is contained in:
commit
74b06df66e
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 12 07:52:02 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fix build without python2 available
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 6 17:15:46 UTC 2019 - Lars Vogdt <lars@linux-schulserver.de>
|
Wed Nov 6 17:15:46 UTC 2019 - Lars Vogdt <lars@linux-schulserver.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-typing_extensions
|
# spec file for package python-typing_extensions
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,32 +18,33 @@
|
|||||||
|
|
||||||
%define modname typing_extensions
|
%define modname typing_extensions
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without python2
|
||||||
Name: python-typing_extensions
|
Name: python-typing_extensions
|
||||||
Version: 3.7.4.1
|
Version: 3.7.4.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Backported and Experimental Type Hints for Python 35+
|
Summary: Backported and Experimental Type Hints for Python 35+
|
||||||
License: Python-2.0
|
License: Python-2.0
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/python/typing/
|
URL: https://github.com/python/typing/
|
||||||
Source0: https://files.pythonhosted.org/packages/source/t/typing_extensions/%{modname}-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/t/typing_extensions/%{modname}-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
%if %{python3_version_nodots} < 35
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildArch: noarch
|
||||||
|
%if %{with python2}
|
||||||
|
BuildRequires: python-typing >= 3.7.4
|
||||||
|
%endif
|
||||||
|
%if 0%{?suse_version} < 1500
|
||||||
BuildRequires: python3-typing >= 3.7.4
|
BuildRequires: python3-typing >= 3.7.4
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: python2-typing >= 3.7.4
|
|
||||||
%if 0%{?suse_version} > 1320
|
%if 0%{?suse_version} > 1320
|
||||||
BuildRequires: python3-testsuite
|
BuildRequires: python3-testsuite
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: fdupes
|
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
%if %{python3_version_nodots} < 35
|
%if %{python3_version_nodots} < 35
|
||||||
Requires: python3-typing >= 3.7.4
|
Requires: python-typing >= 3.7.4
|
||||||
%endif
|
%endif
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Requires: python2-typing >= 3.7.4
|
Requires: python-typing >= 3.7.4
|
||||||
%endif
|
%endif
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
Loading…
Reference in New Issue
Block a user