diff --git a/cryptography-36.0.1.tar.gz b/cargo-vendor-cache similarity index 55% rename from cryptography-36.0.1.tar.gz rename to cargo-vendor-cache index 9189a1aa080cc2fbbfe3bcd6c4cfce37e3a65f09..3219f7769361a56045267f85b4fcdf41de74defc 100644 Binary files a/cryptography-36.0.1.tar.gz and b/cargo-vendor-cache differ diff --git a/cryptography-38.0.2.tar.gz b/cryptography-38.0.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1cb67ea0dc62b79621cb533d8b626ecd21f199b9 Binary files /dev/null and b/cryptography-38.0.2.tar.gz differ diff --git a/python-cryptography.spec b/python-cryptography.spec index 87a3dd5278d531ca3a28a8489ff3f016337ea40e..c65ec162106f5c928d6d4ff4816755710f948c95 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -1,16 +1,18 @@ -%global srcname cryptography -Name: python-%{srcname} -Version: 36.0.1 +%global pypi_name cryptography +Name: python-%{pypi_name} +Version: 38.0.2 Release: 1 Summary: PyCA's cryptography library License: ASL 2.0 or BSD URL: https://cryptography.io/en/latest/ -Source0: %{srcname}-%{version}.tar.gz +Source0: %{pypi_source %{pypi_name}} +Source1: cargo-vendor-cache Patch6002: backport-provide-openssl-apis-related-to-SM-for-python.patch BuildRequires: openssl-devel cargo BuildRequires: gcc +BuildRequires: rust-packaging BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-pytest >= 3.2.1 @@ -51,6 +53,7 @@ recipes to Python developers. %prep %autosetup -n cryptography-%{version} -p1 +tar xzvf %{SOURCE1} -C ./src/rust/ mkdir .cargo cat >> .cargo/config.toml << EOF [source.crates-io] @@ -82,6 +85,9 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest -k "not (test_ %doc README.rst docs %changelog +* Fri Apr 19 2024 Dongxing Wang - 38.0.2-1 +- Upgrade with version 38.0.2 to support OpenStack-Antelope + * Tue Jul 19 2022 huangtianhua - 36.0.1-1 - Upgrade package to 36.0.1 and provide openssl apis related to SM for python