set debug is true for build debug package and add rust to BuildRequires

This commit is contained in:
shixuantong 2024-04-18 11:59:55 +08:00
parent 83b704c30e
commit bce3362392

View File

@ -1,7 +1,7 @@
%global pypi_name cryptography
Name: python-%{pypi_name}
Version: 42.0.2
Release: 2
Release: 3
Summary: PyCA's cryptography library
License: ASL 2.0 or BSD
URL: https://cryptography.io/en/latest/
@ -18,7 +18,7 @@ Patch6003: backport-CVE-2024-26130.patch
BuildRequires: openssl-devel cargo
BuildRequires: gcc
BuildRequires: rust-packaging
BuildRequires: rust-packaging rust
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-pytest >= 3.2.1
@ -63,6 +63,9 @@ replace-with = "vendored-sources"
[source.vendored-sources]
directory = "src/rust/vendor"
[profile.release]
debug = true # https://doc.rust-lang.org/rustc/codegen-options/index.html#debuginfo
EOF
@ -87,6 +90,10 @@ EOF
%doc README.rst docs
%changelog
* Thu Apr 18 2024 shixuantong <shixuantong1@huawei.com> - 42.0.2-3
- set debug is true for build debug package
- add rust to BuildRequires
* Tue Feb 27 2024 shixuantong <shixuantong1@huawei.com> - 42.0.2-2
- fix CVE-2024-26130