rebuilt with clang to fix issue seend with certbot [release 41.0.3-2mamba;Tue Aug 15 2023]

This commit is contained in:
Silvan Calarco 2024-01-06 10:59:59 +01:00
parent f2951e292a
commit 1858bc033b

View File

@ -1,6 +1,6 @@
Name: python-cryptography
Version: 41.0.3
Release: 1mamba
Release: 2mamba
Summary: Cryptographic recipes and primitives to Python developers
Group: System/Libraries
Vendor: openmamba
@ -32,7 +32,8 @@ BuildRequires: python-setuptools-rust-py310
#%patch0 -p1
%build
CFLAGS="%{optflags}" %{__python} setup.py build
# https://github.com/pyca/cryptography/issues/9023
CC=clang RUSTFLAGS+="-Clinker-plugin-lto -Clinker=clang -Clink-arg=-fuse-ld=lld" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -42,24 +43,25 @@ CFLAGS="%{optflags}" %{__python} setup.py build
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%if "0%{with_pyver}" != "03"
# workaround for build-id file conflict
rm -f %{buildroot}%{python_sitearch}/cryptography/hazmat/bindings/_rust.abi*.so
%endif
#%if "0%{with_pyver}" != "03"
## workaround for build-id file conflict
#rm -f %{buildroot}%{python_sitearch}/cryptography/hazmat/bindings/_rust.abi*.so
#%endif
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%dir %{python_sitearch}/cryptography-%{version}-py*.egg-info
%{python_sitearch}/cryptography-%{version}-py*.egg-info/*
%if "0%{with_pyver}" == "03"
%{python_sitearch}/cryptography/hazmat/bindings/_rust.abi*.so
%endif
%doc LICENSE
%changelog
* Tue Aug 15 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 41.0.3-2mamba
- rebuilt with clang to fix issue seend with certbot
* Wed Aug 02 2023 Automatic Build System <autodist@mambasoft.it> 41.0.3-1mamba
- automatic version update by autodist