2021-02-01 14:38:23 +08:00
|
|
|
%global srcname cryptography
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
|
Version: 3.3.1
|
2021-02-23 09:56:05 +08:00
|
|
|
Release: 2
|
2020-02-13 16:45:17 +08:00
|
|
|
Summary: PyCA's cryptography library
|
|
|
|
|
License: ASL 2.0 or BSD
|
2020-08-08 16:27:57 +08:00
|
|
|
URL: https://cryptography.io/en/latest/
|
2021-02-01 14:38:23 +08:00
|
|
|
Source0: %{pypi_source}
|
2020-08-08 16:27:57 +08:00
|
|
|
|
2021-02-23 09:56:05 +08:00
|
|
|
Patch6000: backport-CVE-2020-36242.patch
|
2020-02-13 16:45:17 +08:00
|
|
|
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest >= 3.2.1
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pretend
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-iso8601
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-cryptography-vectors = %{version}
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-asn1crypto >= 0.21
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-hypothesis >= 1.11.4
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytz
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-idna >= 2.1
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-six >= 1.4.1
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-cffi >= 1.7
|
2019-09-30 11:14:49 -04:00
|
|
|
|
|
|
|
|
%description
|
2020-02-13 16:45:17 +08:00
|
|
|
cryptography is a package designed to expose cryptographic primitives and
|
|
|
|
|
recipes to Python developers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-cryptography
|
|
|
|
|
Summary: PyCA's cryptography library
|
|
|
|
|
|
|
|
|
|
Requires: openssl-libs
|
|
|
|
|
Requires: python%{python3_pkgversion}-idna >= 2.1
|
|
|
|
|
Requires: python%{python3_pkgversion}-asn1crypto >= 0.21
|
|
|
|
|
Requires: python%{python3_pkgversion}-six >= 1.4.1
|
|
|
|
|
Requires: python%{python3_pkgversion}-cffi >= 1.7
|
2019-09-30 11:14:49 -04:00
|
|
|
|
2020-02-13 16:45:17 +08:00
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-cryptography}
|
2019-09-30 11:14:49 -04:00
|
|
|
|
2020-02-13 16:45:17 +08:00
|
|
|
%description -n python%{python3_pkgversion}-cryptography
|
|
|
|
|
cryptography is a package designed to expose cryptographic primitives and
|
|
|
|
|
recipes to Python developers.
|
2019-09-30 11:14:49 -04:00
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n cryptography-%{version} -p1
|
2020-02-13 16:45:17 +08:00
|
|
|
|
2019-09-30 11:14:49 -04:00
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%check
|
2020-02-13 16:45:17 +08:00
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest -k "not (test_buffer_protocol_alternate_modes or test_dh_parameters_supported or test_load_ecdsa_no_named_curve)"
|
2019-09-30 11:14:49 -04:00
|
|
|
|
2020-02-13 16:45:17 +08:00
|
|
|
%files -n python%{python3_pkgversion}-cryptography
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc AUTHORS.rst
|
|
|
|
|
%license LICENSE LICENSE.APACHE LICENSE.BSD
|
2019-09-30 11:14:49 -04:00
|
|
|
%{python3_sitearch}/*
|
|
|
|
|
%{python3_sitearch}/cryptography-%{version}-py*.egg-info
|
|
|
|
|
|
|
|
|
|
%files help
|
2020-02-13 16:45:17 +08:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc README.rst docs
|
2019-09-30 11:14:49 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2021-02-23 09:56:05 +08:00
|
|
|
* Tue Feb 23 2021 shixuantong <shixuantong@huawei.com> - 3.3.1-2
|
|
|
|
|
- fix CVE-2020-36242
|
|
|
|
|
|
2021-02-01 14:38:23 +08:00
|
|
|
* Mon Feb 1 2021 liudabo <liudabo1@huawei.com> - 3.3.1-1
|
|
|
|
|
- upgrade version to 3.3.1
|
|
|
|
|
|
2020-08-11 16:12:48 +08:00
|
|
|
* Tue Aug 11 2020 tianwei<tianwei12@huawei.com> -3.0-2
|
2020-08-08 16:27:57 +08:00
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:delete python2
|
|
|
|
|
|
2020-07-24 17:19:17 +08:00
|
|
|
* Thu Jul 23 2020 dingyue<dingyue5@huawei.com> -3.0-1
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:NA
|
|
|
|
|
|
2020-05-11 16:20:09 +08:00
|
|
|
* Thu Apr 16 2020 chengquan<chengquan3@huawei.com> -2.9-1
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:upgrade software to v2.9
|
|
|
|
|
|
2020-02-13 16:45:17 +08:00
|
|
|
* Thu Feb 13 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.6.1-1
|
|
|
|
|
- Update to 2.6.1
|
|
|
|
|
|
2019-11-06 19:48:59 +08:00
|
|
|
* Tue Oct 22 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.3-5
|
|
|
|
|
- Package rebuild.
|
|
|
|
|
|
|
|
|
|
* Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.3-4
|
|
|
|
|
- Type: enhancement
|
|
|
|
|
- ID: NA
|
|
|
|
|
- SUG: NA
|
|
|
|
|
- DESC: fix build failed.
|
|
|
|
|
|
|
|
|
|
* Sat Sep 14 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.3-3
|
|
|
|
|
- Package init.
|