commit 02d8fc3d8d53edb889dff5ae5dfb5f98577d0d9a Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:14:43 2019 -0400 Package init diff --git a/backports.ssl_match_hostname-3.7.0.1.tar.gz b/backports.ssl_match_hostname-3.7.0.1.tar.gz new file mode 100644 index 0000000..f5614a1 Binary files /dev/null and b/backports.ssl_match_hostname-3.7.0.1.tar.gz differ diff --git a/python-backports-ssl_match_hostname.spec b/python-backports-ssl_match_hostname.spec new file mode 100644 index 0000000..7eafb69 --- /dev/null +++ b/python-backports-ssl_match_hostname.spec @@ -0,0 +1,68 @@ +%global module_name backports.ssl_match_hostname + +Name: python-backports-ssl_match_hostname +Version: 3.7.0.1 +Release: 1 +Summary: The ssl.match_hostname() function from Python 3 + +License: Python +URL: https://bitbucket.org/brandon/backports.ssl_match_hostname +Source0: https://pypi.python.org/packages/source/b/%{module_name}/%{module_name}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python2-devel + +%description +The Secure Sockets layer is only actually secure if you check the hostname in +the certificate returned by the server to which you are connecting, and verify +that it matches to hostname that you are trying to reach. +But the matching logic, defined in RFC2818, can be a bit tricky to implement on +your own. So the ssl package in the Standard Library of Python 3.2 now includes +a match_hostname() function for performing this check instead of requiring +every application to implement the check separately. +This backport brings match_hostname() to users of earlier versions of Python. +The actual code is only slightly modified from Python 3.5. + + +%package -n python2-backports-ssl_match_hostname +Summary: %summary +Requires: python2-backports +Requires: python2-ipaddress +Provides: python2-backports-ssl_match_hostname +%{?python_provide:%python_provide python2-backports-ssl_match_hostname} + +%description -n python2-backports-ssl_match_hostname +The Secure Sockets layer is only actually secure if you check the hostname in +the certificate returned by the server to which you are connecting, and verify +that it matches to hostname that you are trying to reach. +But the matching logic, defined in RFC2818, can be a bit tricky to implement on +your own. So the ssl package in the Standard Library of Python 3.2 now includes +a match_hostname() function for performing this check instead of requiring +every application to implement the check separately. +This backport brings match_hostname() to users of earlier versions of Python. +The actual code is only slightly modified from Python 3.5. + +%package_help + +%prep +%autosetup -n %{module_name}-%{version} + +%build +%{__python2} setup.py build + +%install +%{__python2} setup.py install --skip-build --root %{buildroot} +rm -f %{buildroot}%{python2_sitelib}/backports/__init__.py* + +%files -n python2-backports-ssl_match_hostname +%license LICENSE.txt +%{python2_sitelib}/backports/ssl_match_hostname/ +%{python2_sitelib}/backports.ssl_match_hostname-%{version}-*egg* + +%files help +%doc README.txt + +%changelog +* Fri Sep 20 2019 openEuler Buildteam - 3.5.0.1-1 +- Package init +