automatic version update by autodist [release 42.0.2-1mamba;Fri Feb 02 2024]
This commit is contained in:
parent
e82da73602
commit
e1cc9410a1
@ -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 "0%{with_pyver}" != "03"
|
#%if "%{?with_pyver}" != "3"
|
||||||
## workaround for build-id file conflict
|
## Rename any conflicting file outside of python site packages tree
|
||||||
#rm -f %{buildroot}%{python_sitearch}/cryptography/hazmat/bindings/_rust.abi*.so
|
#for f in %{_bindir}/pdm; do
|
||||||
|
# mv %{buildroot}${f}{,-%{?pyappend}}
|
||||||
|
#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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user