%global debug_package %{nil}
Name: maturin
Version: 0.11.2
Release: 1%{?dist}
Summary: Build tool for publishing rust as python packages
License: MIT and ASL 2.0
URL: https://github.com/PyO3/maturin
Source0: %pypi_source %{name}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-toml
BuildRequires: rust-packaging
%description
Build and publish crates with pyo3, rust-cpython and cffi bindings as well as
rust binaries as python packages.
%prep
%autosetup
%build
%py3_build
%install
%py3_install
# FIXME: patch install script instead of cleaning up afterwards.
mv %{buildroot}/%{name} %{buildroot}/%{python3_sitelib}/%{name}
%files
%license license-mit license-apache
%doc Readme.md Changelog.md
%{_bindir}/%{name}
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/%{name}
%changelog
* Fri Aug 20 2021 Timothée Floure <fnux@fedoraproject.org> - 0.11.2-1
- New upstream release.
* Sun Mar 28 2021 Timothée Floure <fnux@fedoraproject.org> - 0.9.4-1
- Let there be package.