Clean up SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dnspython?expand=0&rev=67
This commit is contained in:
parent
8f6f04114c
commit
295e25005a
@ -24,8 +24,6 @@
|
|||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python3-%{**}}
|
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-dnspython%{psuffix}
|
Name: python-dnspython%{psuffix}
|
||||||
Version: 2.3.0
|
Version: 2.3.0
|
||||||
@ -40,47 +38,46 @@ BuildRequires: %{python_module pip}
|
|||||||
BuildRequires: %{python_module poetry-core}
|
BuildRequires: %{python_module poetry-core}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
%if %{with test}
|
# dnssec
|
||||||
BuildRequires: %{python_module typing}
|
Requires: python-cryptography
|
||||||
# doh:
|
Requires: python-httpx
|
||||||
BuildRequires: %{python_module httpx}
|
|
||||||
BuildRequires: %{python_module h2}
|
|
||||||
BuildRequires: %{python_module requests-toolbelt}
|
|
||||||
BuildRequires: %{python_module requests}
|
|
||||||
# idna
|
# idna
|
||||||
BuildRequires: %{python_module idna}
|
Requires: python-idna >= 2.1
|
||||||
|
# Requires despite optional: see description
|
||||||
|
# doh
|
||||||
|
Requires: python-requests
|
||||||
|
Requires: python-requests-toolbelt
|
||||||
|
# HTTP/2 support in httpx
|
||||||
|
Recommends: python-h2
|
||||||
|
Suggests: python-curio >= 1.2
|
||||||
|
# curio
|
||||||
|
Suggests: python-sniffio >= 1.1
|
||||||
|
# trio
|
||||||
|
Suggests: python-trio >= 0.14.0
|
||||||
|
BuildArch: noarch
|
||||||
|
%if %{with test}
|
||||||
# dnssec
|
# dnssec
|
||||||
BuildRequires: %{python_module cryptography}
|
BuildRequires: %{python_module cryptography}
|
||||||
# trio
|
BuildRequires: %{python_module curio >= 1.2}
|
||||||
BuildRequires: %{python_module trio >= 0.14.0}
|
BuildRequires: %{python_module h2}
|
||||||
|
# doh:
|
||||||
|
BuildRequires: %{python_module httpx}
|
||||||
|
# idna
|
||||||
|
BuildRequires: %{python_module idna}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module requests-toolbelt}
|
||||||
|
BuildRequires: %{python_module requests}
|
||||||
# curio
|
# curio
|
||||||
BuildRequires: %{python_module sniffio >= 1.1}
|
BuildRequires: %{python_module sniffio >= 1.1}
|
||||||
BuildRequires: %{python_module curio >= 1.2}
|
# trio
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module trio >= 0.14.0}
|
||||||
|
BuildRequires: %{python_module typing}
|
||||||
BuildRequires: netcfg
|
BuildRequires: netcfg
|
||||||
BuildRequires: (python3-contextvars if python3-base < 3.7)
|
BuildRequires: (python3-contextvars if python3-base < 3.7)
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?python_version_nodots} < 37
|
%if 0%{?python_version_nodots} < 37
|
||||||
Requires: python-contextvars
|
Requires: python-contextvars
|
||||||
%endif
|
%endif
|
||||||
# Requires despite optional: see description
|
|
||||||
# doh
|
|
||||||
Requires: python-requests
|
|
||||||
Requires: python-httpx
|
|
||||||
Requires: python-requests-toolbelt
|
|
||||||
# idna
|
|
||||||
Requires: python-idna >= 2.1
|
|
||||||
# dnssec
|
|
||||||
Requires: python-cryptography
|
|
||||||
# trio
|
|
||||||
Suggests: python-trio >= 0.14.0
|
|
||||||
# curio
|
|
||||||
Suggests: python-sniffio >= 1.1
|
|
||||||
Suggests: python-curio >= 1.2
|
|
||||||
# HTTP/2 support in httpx
|
|
||||||
Recommends: python-h2
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
Loading…
Reference in New Issue
Block a user