diff --git a/libc-0.2.150.tar.gz b/libc-0.2.150.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..575ab6d27caa66b3738afb48b5a7c41cd33131bf Binary files /dev/null and b/libc-0.2.150.tar.gz differ diff --git a/python-cryptography.spec b/python-cryptography.spec index 9a460d7d1c55a08cc9c7b09b2ee9a46860742f8f..6633feafad0c7779022f6406ac45d680c105e153 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -1,7 +1,7 @@ %global srcname cryptography Name: python-%{srcname} Version: 35.0.0 -Release: 1 +Release: 2 Summary: PyCA's cryptography library License: ASL 2.0 or BSD URL: https://cryptography.io/en/latest/ @@ -13,6 +13,10 @@ Source0: %{srcname}-%{version}.tar.gz # Note: Cargo needs to be consistent with the cargo version in the compile environment. Source1: cargo-vendor-cache.tar.gz +# source from rustc-1.77.0-src/vendor/libc-0.2.150 directory of the rustc-1.77.0-src.tar.xz compressed package. +# branch: openEuler-24.03-LTS +# commit: 8af59cc67e548d8016cd55411f225bb0aee0f84d +Source2: libc-0.2.150.tar.gz # Patch0001: backport-provide-openssl-apis-related-to-SM-for-python.patch BuildRequires: openssl-devel @@ -60,6 +64,10 @@ recipes to Python developers. %prep %autosetup -n cryptography-%{version} tar xzvf %{SOURCE1} -C ./src/rust/ +%ifarch loongarch64 +rm -rf ./src/rust/vendor/libc/* +tar -xf %{SOURCE2} --strip-components 1 -C ./src/rust/vendor/libc/ +%endif mkdir .cargo cat >> .cargo/config.toml << EOF [source.crates-io] @@ -90,6 +98,9 @@ EOF %doc README.rst docs %changelog +* Thu Jul 3 2025 Wenlong Zhang - 35.0.0-2 +- add loongarch64 support for python-cryptography + * Sun Apr 28 2024 tzing_t - 35.0.0-1 - Upgrade package to version 35.0.0