~fnux/qutebrowser-adblock-rpm

ff12d3ae0e1beb0d2757f763036085a3b9bf39bb — Timothée Floure 1 year, 11 months ago
Initial maturin package definition
1 files changed, 43 insertions(+), 0 deletions(-)

A maturin/maturin.spec
A  => maturin/maturin.spec +43 -0
@@ 1,43 @@
%global debug_package %{nil}

Name:		maturin
Version:	0.9.4
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
* Sun Mar 28 2021 Timothée Floure <fnux@fedoraproject.org> - 0.9.4-1
- Let there be package.