forked from pool/python-maturin
Accepting request 887097 from home:mia
Submitting as dependency of python-adblock, which is recommended by qutebrowser but not in Factory yet. Packaging Rust dependencies seems hopeless, hence the vendor tarball. OBS-URL: https://build.opensuse.org/request/show/887097 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-maturin?expand=0&rev=1
This commit is contained in:
commit
05a2e662e5
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
maturin-0.10.3.tar.gz
Normal file
3
maturin-0.10.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ec91c40d74cda5721d63e125b93e35cea3231fd5e247a47044136c98587516dd
|
||||
size 101893
|
4
python-maturin.changes
Normal file
4
python-maturin.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 20 17:46:51 UTC 2021 - Mia Herkt <mia@0x0.st>
|
||||
|
||||
- init, 0.10.3
|
69
python-maturin.spec
Normal file
69
python-maturin.spec
Normal file
@ -0,0 +1,69 @@
|
||||
#
|
||||
# spec file for package python-maturin
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-maturin
|
||||
Version: 0.10.3
|
||||
Release: 0
|
||||
Summary: Rust/Python Interoperability
|
||||
License: MIT OR Apache-2.0
|
||||
URL: https://github.com/PyO3/maturin
|
||||
Source: https://files.pythonhosted.org/packages/source/m/maturin/maturin-%{version}.tar.gz
|
||||
Source1: vendor.tar.xz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module toml}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: rust-packaging
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Build and publish crates with pyo3, rust-cpython and cffi bindings
|
||||
as well as rust binaries as python packages.
|
||||
|
||||
This project is a zero-configuration replacement for
|
||||
setuptools-rust milksnake. It supports building wheels for Python
|
||||
3.5+, can upload them to PyPI and has basic PyPy support.
|
||||
|
||||
%prep
|
||||
%setup -q -n maturin-%{version}
|
||||
tar -xf %{SOURCE1}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_clone -a %{buildroot}%{_bindir}/maturin
|
||||
|
||||
%post
|
||||
%python_install_alternative maturin
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative maturin
|
||||
|
||||
%files %{python_files}
|
||||
%license license-apache license-mit
|
||||
%doc Changelog.md Readme.md
|
||||
%python_alternative %{_bindir}/maturin
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
3
vendor.tar.xz
Normal file
3
vendor.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e71a636f370078ed77e0add8fa08f54dad280ab6fe7ec1a25a19412d0554ce17
|
||||
size 17194800
|
Loading…
x
Reference in New Issue
Block a user