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