automatic version update by autodist [release 42.0.2-1mamba;Fri Feb 02 2024]

This commit is contained in:
Automatic Build System 2024-02-03 10:09:20 +01:00
parent e82da73602
commit e1cc9410a1

View File

@ -1,5 +1,6 @@
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-cryptography Name: python-cryptography
Version: 41.0.7 Version: 42.0.2
Release: 1mamba Release: 1mamba
Summary: Cryptographic recipes and primitives to Python developers Summary: Cryptographic recipes and primitives to Python developers
Group: System/Libraries Group: System/Libraries
@ -34,32 +35,32 @@ BuildRequires: python-setuptools-rust-py310
%build %build
# https://github.com/pyca/cryptography/issues/9023 # https://github.com/pyca/cryptography/issues/9023
CC=clang RUSTFLAGS+="-Clinker-plugin-lto -Clinker=clang -Clink-arg=-fuse-ld=lld" %{__python} setup.py build CC=clang CFLAGS="%{optflags}" RUSTFLAGS+="-Clinker-plugin-lto -Clinker=clang -Clink-arg=-fuse-ld=lld" \
%{__python} -m build --no-isolation --wheel
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \ %{__python} -m installer --destdir=%{buildroot} dist/*.whl
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist #%if "%{?with_pyver}" != "3"
## Rename any conflicting file outside of python site packages tree
#%if "0%{with_pyver}" != "03" #for f in %{_bindir}/pdm; do
## workaround for build-id file conflict # mv %{buildroot}${f}{,-%{?pyappend}}
#rm -f %{buildroot}%{python_sitearch}/cryptography/hazmat/bindings/_rust.abi*.so #done
#%endif #%endif
%files %{?pyappend} -f %{name}.filelist %files %{?pyappend}
%defattr(-,root,root) %defattr(-,root,root)
%dir %{python_sitearch}/cryptography-%{version}-py*.egg-info %dir %{python_sitearch}/%{pkgname}-%{version}.dist-info
%{python_sitearch}/cryptography-%{version}-py*.egg-info/* %{python_sitearch}/%{pkgname}-%{version}.dist-info/*
%{python_sitearch}/cryptography/hazmat/bindings/_rust.abi*.so %dir %{python_sitearch}/%{pkgname}
%{python_sitearch}/%{pkgname}/*
%doc LICENSE %doc LICENSE
%changelog %changelog
* Fri Feb 02 2024 Automatic Build System <autodist@openmamba.org> 42.0.2-1mamba
- automatic version update by autodist
* Tue Nov 28 2023 Automatic Build System <autodist@mambasoft.it> 41.0.7-1mamba * Tue Nov 28 2023 Automatic Build System <autodist@mambasoft.it> 41.0.7-1mamba
- automatic version update by autodist - automatic version update by autodist