diff --git a/backport-provide-openssl-apis-related-to-SM-for-python.patch b/backport-provide-openssl-apis-related-to-SM-for-python.patch deleted file mode 100644 index a02e948caec9bb5cea6c32c7fe2b50b11b1b05a8..0000000000000000000000000000000000000000 --- a/backport-provide-openssl-apis-related-to-SM-for-python.patch +++ /dev/null @@ -1,43 +0,0 @@ -From 54b5e3998c42a74064d9af6667dd7ddd74ad3c90 Mon Sep 17 00:00:00 2001 -From: wang--ge -Date: Thu, 16 Jan 2025 11:04:49 +0800 -Subject: [PATCH] provide openssl apis related to SM for python - ---- - src/_cffi_src/openssl/evp.py | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/src/_cffi_src/openssl/evp.py b/src/_cffi_src/openssl/evp.py -index f25c9bb..bb00269 100644 ---- a/src/_cffi_src/openssl/evp.py -+++ b/src/_cffi_src/openssl/evp.py -@@ -22,6 +22,7 @@ static const int EVP_PKEY_EC; - static const int EVP_MAX_MD_SIZE; - - static const int Cryptography_HAS_EVP_PKEY_DHX; -+static const int EVP_PKEY_SM2; - """ - - FUNCTIONS = """ -@@ -44,6 +45,9 @@ int EVP_VerifyUpdate(EVP_MD_CTX *, const void *, size_t); - int EVP_VerifyFinal(EVP_MD_CTX *, const unsigned char *, unsigned int, - EVP_PKEY *); - -+int EVP_DigestVerifyUpdate(EVP_MD_CTX *, const void *, size_t); -+int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig, -+ size_t siglen); - - int EVP_PKEY_set1_RSA(EVP_PKEY *, RSA *); - int EVP_PKEY_set1_DSA(EVP_PKEY *, DSA *); -@@ -56,6 +60,8 @@ void EVP_MD_CTX_free(EVP_MD_CTX *); - int EVP_PKEY_bits(const EVP_PKEY *); - - int EVP_PKEY_assign_RSA(EVP_PKEY *, RSA *); -+void EVP_MD_CTX_set_pkey_ctx(EVP_MD_CTX *ctx, EVP_PKEY_CTX *pctx); -+const EVP_MD *EVP_sm3(void); - """ - - CUSTOMIZATIONS = """ --- -2.46.0 - diff --git a/cargo-vendor-cache.tar.gz b/cargo-vendor-cache similarity index 34% rename from cargo-vendor-cache.tar.gz rename to cargo-vendor-cache index 37135ebdf58c0d74daffca04e7a0819217648219..b79753d6f725d7a7cbe48fdf7b80fd6ed3c8433c 100644 Binary files a/cargo-vendor-cache.tar.gz and b/cargo-vendor-cache differ diff --git a/cryptography-44.0.0.tar.gz b/cryptography-44.0.0.tar.gz deleted file mode 100644 index 3844a7fa1702154cb488e242174d399c6557e4fd..0000000000000000000000000000000000000000 Binary files a/cryptography-44.0.0.tar.gz and /dev/null differ diff --git a/cryptography-45.0.5.tar.gz b/cryptography-45.0.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..57554c75628f3488f26ecb9477c1be310e001ae2 Binary files /dev/null and b/cryptography-45.0.5.tar.gz differ diff --git a/python-cryptography.spec b/python-cryptography.spec index f2cf48caff711fd8bf80be9d0e700569f45f1c98..9e7250539892394c6e33f57d50495ab0887e44c9 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -1,6 +1,6 @@ %global pypi_name cryptography Name: python-%{pypi_name} -Version: 44.0.0 +Version: 45.0.5 Release: 1 Summary: PyCA's cryptography library License: (Apache-2.0 OR BSD-3-Clause) AND PSF-2.0 @@ -9,11 +9,9 @@ Source0: %{pypi_source %{pypi_name}} # For Rust offline compile # Decompress the source code of cryptography, then enter ./src/rust directory, # execute "cargo vendor" to obtain "vendor" directory (Internet connection required), -# finally, tar -czvf cargo-vendor-cache.tar.gz vendor +# finally, tar -czvf cargo-vendor-cache vendor # Note: Cargo needs to be consistent with the cargo version in the compile environment. -Source1: cargo-vendor-cache.tar.gz - -Patch6002: backport-provide-openssl-apis-related-to-SM-for-python.patch +Source1: cargo-vendor-cache BuildRequires: openssl-devel cargo BuildRequires: gcc @@ -94,6 +92,9 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest --ignore vendo %doc README.rst docs %changelog +* Wed Jul 16 2025 Dongxing Wang - 45.0.5-1 +- Upgrade package to 45.0.5 + * Thu Jan 16 2025 Ge Wang - 44.0.0-1 - update to version 44.0.0