Use %py3_dist macro for build requirements

epel8
Carl George 4 years ago
parent 1b50d52edf
commit ad880c95fd

@ -35,13 +35,9 @@ BuildArch: noarch
%package -n python3-%{pkgname} %package -n python3-%{pkgname}
Summary: %{summary} Summary: %{summary}
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: %{py3_dist setuptools}
%if %{with tests} %if %{with tests}
BuildRequires: python3-pytest BuildRequires: %{py3_dist pytest pyopenssl service-identity cryptography idna}
BuildRequires: python3-pyOpenSSL
BuildRequires: python3-service-identity
BuildRequires: python3-cryptography
BuildRequires: python3-idna
%endif %endif
%{?python_provide:%python_provide python3-%{pkgname}} %{?python_provide:%python_provide python3-%{pkgname}}

Loading…
Cancel
Save