|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
|
|
|
|
|
Name: python-%{modname}
|
|
|
|
|
Version: 18.1.0
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Release: 2%{?dist}.inferit
|
|
|
|
|
Summary: Service identity verification for pyOpenSSL
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
@ -34,30 +34,6 @@ relevant RFCs too.
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
%package -n python2-%{modname}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python2-%{modname}}
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python2dist(setuptools)
|
|
|
|
|
%if %{with check}
|
|
|
|
|
BuildRequires: python2dist(attrs)
|
|
|
|
|
BuildRequires: python2dist(idna) >= 0.6
|
|
|
|
|
BuildRequires: python2dist(ipaddress)
|
|
|
|
|
BuildRequires: python2dist(pyasn1)
|
|
|
|
|
BuildRequires: python2dist(pyasn1-modules)
|
|
|
|
|
BuildRequires: python2dist(pyopenssl) >= 0.14
|
|
|
|
|
BuildRequires: python2dist(pytest)
|
|
|
|
|
%endif
|
|
|
|
|
Requires: python2dist(attrs)
|
|
|
|
|
Requires: python2dist(pyasn1)
|
|
|
|
|
Requires: python2dist(pyasn1-modules)
|
|
|
|
|
Requires: python2dist(pyopenssl) >= 0.14
|
|
|
|
|
Recommends: python2dist(idna) >= 0.6
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{modname} %{_description}
|
|
|
|
|
|
|
|
|
|
Python 2 version.
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%package -n python3-%{modname}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -94,13 +70,11 @@ Documentation for service-identity.
|
|
|
|
|
%autosetup -n %{srcname}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py2_build
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%py3_build
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py2_install
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%py3_install
|
|
|
|
|
%endif
|
|
|
|
@ -114,18 +88,11 @@ rm -rf html/.{doctrees,buildinfo}
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
%check
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n python2-%{modname}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%{python2_sitelib}/%{srcname}-*.egg-info/
|
|
|
|
|
%{python2_sitelib}/%{srcname}/
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%files -n python3-%{modname}
|
|
|
|
|
%license LICENSE
|
|
|
|
@ -139,6 +106,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Jul 12 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 18.1.0-2.inferit
|
|
|
|
|
- Disable python2 build
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 18.1.0-2
|
|
|
|
|
- Rebuilt for MSVSphere 8.9
|
|
|
|
|
|
|
|
|
|