~fnux/qutebrowser-adblock-rpm

ref: 6d485cc4b65f78976ebd5fec70fe1aac46b5791e qutebrowser-adblock-rpm/maturin/maturin.spec -rw-r--r-- 963 bytes
6d485cc4Timothée Floure python-adblock: bump to 0.5.0 1 year, 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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.