Disable python2 build

i8ce changed/i8ce/python-service-identity-18.1.0-2.el8.inferit
Arkady L. Shane 7 months ago
parent 366546c942
commit 6d0654b0ee
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

@ -11,7 +11,7 @@
Name: python-%{modname} Name: python-%{modname}
Version: 18.1.0 Version: 18.1.0
Release: 2%{?dist} Release: 2%{?dist}.inferit
Summary: Service identity verification for pyOpenSSL Summary: Service identity verification for pyOpenSSL
License: MIT License: MIT
@ -34,30 +34,6 @@ relevant RFCs too.
%description %{_description} %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} %if %{with python3}
%package -n python3-%{modname} %package -n python3-%{modname}
Summary: %{summary} Summary: %{summary}
@ -94,13 +70,11 @@ Documentation for service-identity.
%autosetup -n %{srcname}-%{version} %autosetup -n %{srcname}-%{version}
%build %build
%py2_build
%if %{with python3} %if %{with python3}
%py3_build %py3_build
%endif %endif
%install %install
%py2_install
%if %{with python3} %if %{with python3}
%py3_install %py3_install
%endif %endif
@ -114,18 +88,11 @@ rm -rf html/.{doctrees,buildinfo}
%if %{with check} %if %{with check}
%check %check
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v
%if %{with python3} %if %{with python3}
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
%endif %endif
%endif %endif
%files -n python2-%{modname}
%license LICENSE
%doc README.rst
%{python2_sitelib}/%{srcname}-*.egg-info/
%{python2_sitelib}/%{srcname}/
%if %{with python3} %if %{with python3}
%files -n python3-%{modname} %files -n python3-%{modname}
%license LICENSE %license LICENSE
@ -139,6 +106,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
%endif %endif
%changelog %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 * Thu Jan 25 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 18.1.0-2
- Rebuilt for MSVSphere 8.9 - Rebuilt for MSVSphere 8.9

Loading…
Cancel
Save