2024-01-06 11:26:50 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
|
|
|
Name: python-maturin
|
2024-08-23 14:50:54 +02:00
|
|
|
Version: 1.7.1
|
2024-01-06 11:26:50 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Build and publish crates with pyo3, rust-cpython and cffi bindings as well as rust binaries as python packages
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://github.com/pyo3/maturin
|
|
|
|
Source: http://pypi.debian.net/maturin/maturin-%{version}.tar.gz
|
|
|
|
License: MIT, Apache License 2.0
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libbzip2-devel
|
|
|
|
BuildRequires: libgcc
|
2024-01-06 11:26:50 +01:00
|
|
|
BuildRequires: libpython311-devel
|
2024-01-06 11:26:50 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%define _build_id_links none
|
|
|
|
|
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n maturin-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
|
|
|
|
|
|
|
%if "%{?with_pyver}" != "3"
|
|
|
|
# Rename any conflicting file outside of python site packages tree
|
|
|
|
for f in %{_bindir}/maturin; do
|
|
|
|
mv %{buildroot}${f}{,-%{?pyappend}}
|
|
|
|
done
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files %{?pyappend}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/maturin*
|
|
|
|
%dir %{python_sitearch}/%{pkgname}-%{version}.dist-info
|
|
|
|
%{python_sitearch}/%{pkgname}-%{version}.dist-info/*
|
|
|
|
%dir %{python_sitearch}/%{pkgname}
|
|
|
|
%{python_sitearch}/%{pkgname}/*
|
|
|
|
|
|
|
|
%changelog
|
2024-08-23 14:50:54 +02:00
|
|
|
* Thu Aug 22 2024 Automatic Build System <autodist@openmamba.org> 1.7.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-07-07 22:00:04 +02:00
|
|
|
* Sun Jul 07 2024 Automatic Build System <autodist@openmamba.org> 1.7.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-06-05 23:19:11 +02:00
|
|
|
* Tue Jun 04 2024 Automatic Build System <autodist@openmamba.org> 1.6.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-03-22 15:42:14 +01:00
|
|
|
* Fri Mar 22 2024 Automatic Build System <autodist@openmamba.org> 1.5.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-03-06 01:20:38 +01:00
|
|
|
* Tue Mar 05 2024 Automatic Build System <autodist@openmamba.org> 1.5.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:26:51 +01:00
|
|
|
* Sun Dec 03 2023 Automatic Build System <autodist@mambasoft.it> 1.4.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:26:51 +01:00
|
|
|
* Wed Nov 15 2023 Automatic Build System <autodist@mambasoft.it> 1.3.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:26:50 +01:00
|
|
|
* Wed Oct 25 2023 Automatic Build System <autodist@mambasoft.it> 1.3.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:26:50 +01:00
|
|
|
* Tue Oct 03 2023 Automatic Build System <autodist@mambasoft.it> 1.3.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:26:50 +01:00
|
|
|
* Sat Sep 09 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.3-1mamba
|
|
|
|
- package created using the webbuild interface
|