[packages/python3-setuptools_rust] - initial

arekm arekm at pld-linux.org
Thu Apr 8 21:55:49 CEST 2021


commit 30a1b9151992ec8655971d74a4824b249445354a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Apr 8 21:55:38 2021 +0200

    - initial

 python3-setuptools_rust.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
---
diff --git a/python3-setuptools_rust.spec b/python3-setuptools_rust.spec
new file mode 100644
index 0000000..6cfcd84
--- /dev/null
+++ b/python3-setuptools_rust.spec
@@ -0,0 +1,56 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests (need rust configured)
+%bcond_with	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	Setuptools plugin to build Rust Python extensions
+Summary(pl.UTF-8):	Wtyczka setuptools do budowania rozszerzeń pythonowych Rust
+Name:		python3-setuptools_rust
+Version:	0.12.1
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/setuptools-rust/
+Source0:	https://pypi.debian.net/setuptools_rust/setuptools-rust-%{version}.tar.gz
+# Source0-md5:	33c3fd3bcde2877483ab782353bee54c
+URL:		https://rusthub.com/msabramo/setuptools-rust
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.5
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-setuptools >= 1:46.0
+%endif
+%if %{with tests}
+BuildRequires:	rust-core
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Compile and distribute Python extensions written in Rust as easily as if they were written in C.
+
+%prep
+%setup -q -n setuptools-rust-%{version}
+
+%build
+%py3_build %{?with_tests:test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md README.md
+%{py3_sitescriptdir}/setuptools_rust
+%{py3_sitescriptdir}/setuptools_rust-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-setuptools_rust.git/commitdiff/30a1b9151992ec8655971d74a4824b249445354a



More information about the pld-cvs-commit mailing list