2020-03-04 10:07:44 +08:00
|
|
|
Name: python-service-identity
|
|
|
|
|
Version: 16.0.0
|
|
|
|
|
Release: 12
|
|
|
|
|
Summary: Service Identity Verification for pyOpenSSL & cryptography
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/pyca/service_identity
|
|
|
|
|
Source0: https://github.com/pyca/service_identity/archive/%{version}/service-identity-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Service_identity aspires to give you all the tools you need for
|
|
|
|
|
verifying whether a certificate is valid for the intended purposes.
|
|
|
|
|
|
|
|
|
|
In the simplest case, this means host name verification. However,
|
|
|
|
|
service_identity implements RFC 6125 fully and plans to add other
|
|
|
|
|
relevant RFCs too.
|
|
|
|
|
|
|
|
|
|
%package -n python2-service-identity
|
|
|
|
|
Summary: Service Identity Verification for pyOpenSSL & cryptography
|
|
|
|
|
%{?python_provide:%python_provide python2-service-identity}
|
|
|
|
|
BuildRequires: python2-pytest python2-attrs python2-pyasn1 python2-pyasn1-modules
|
|
|
|
|
BuildRequires: python2-pyOpenSSL python2-idna python2-setuptools python2-devel
|
|
|
|
|
Requires: python2-attrs python2-pyasn1 python2-pyasn1-modules python2-pyOpenSSL
|
|
|
|
|
Recommends: python2-idna
|
|
|
|
|
|
|
|
|
|
%description -n python2-service-identity
|
|
|
|
|
Service_identity aspires to give you all the tools you need for
|
|
|
|
|
verifying whether a certificate is valid for the intended purposes.
|
|
|
|
|
|
|
|
|
|
In the simplest case, this means host name verification. However,
|
|
|
|
|
service_identity implements RFC 6125 fully and plans to add other
|
|
|
|
|
relevant RFCs too.
|
|
|
|
|
|
|
|
|
|
Python 2 version.
|
|
|
|
|
|
|
|
|
|
%package -n python3-service-identity
|
|
|
|
|
Summary: Service Identity Verification for pyOpenSSL & cryptography
|
|
|
|
|
%{?python_provide:%python_provide python3-service-identity}
|
|
|
|
|
BuildRequires: python3-devel python3-setuptools python3-pytest python3-attrs
|
|
|
|
|
BuildRequires: python3-pyasn1 python3-pyasn1-modules python3-pyOpenSSL python3-idna
|
|
|
|
|
Requires: python3-attrs python3-pyasn1 python3-pyasn1-modules python3-pyOpenSSL
|
|
|
|
|
Recommends: python3-idna
|
|
|
|
|
|
|
|
|
|
%description -n python3-service-identity
|
|
|
|
|
Service_identity aspires to give you all the tools you need for
|
|
|
|
|
verifying whether a certificate is valid for the intended purposes.
|
|
|
|
|
|
|
|
|
|
In the simplest case, this means host name verification. However,
|
|
|
|
|
service_identity implements RFC 6125 fully and plans to add other
|
|
|
|
|
relevant RFCs too.
|
|
|
|
|
Python 3 version.
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-03-09 09:52:11 +08:00
|
|
|
%autosetup -n service-identity-%{version}
|
2020-03-04 10:07:44 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py2_build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py2_install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
|
|
|
|
|
|
|
|
|
%files -n python2-service-identity
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%{python2_sitelib}/{service_identity-*.egg-info/,service_identity/}
|
|
|
|
|
|
|
|
|
|
%files -n python3-service-identity
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%{python3_sitelib}/{service_identity-*.egg-info/,service_identity/}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Feb 27 2020 duyeyu <duyeyu@huawei.com> - 16.0.0-12
|
|
|
|
|
- Initial package.
|