Group :: Development/Python3
RPM: python3-module-rpds-py
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define pypi_name rpds
%def_with check
Name: python3-module-%pypi_name-py
Version: 0.10.3
Release: alt1
Summary: Python bindings to the Rust rpds crate for persistent data structures
License: MIT
Group: Development/Python3
URL: https://pypi.org/project/rpds-py
VCS: https://github.com/crate-py/rpds
Source0: %pypi_name-%version.tar
Source1: crates.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-maturin
BuildRequires: /proc
BuildRequires: rust-cargo
%if_with check
BuildRequires: python3-module-pytest
%endif
%description
%summary.
%prep
%setup -n %pypi_name-%version
mkdir -p .cargo
cat >> .cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"
[term]
verbose = true
quiet = false
[install]
root = "%buildroot%_prefix"
[build]
rustflags = ["-Copt-level=3", "-Cdebuginfo=1"]
[profile.release]
strip = false
EOF
tar xf %SOURCE1
%build
%pyproject_build
%install
%pyproject_install
%check
%pyproject_run_pytest -v
%files
%doc README.* LICENSE
%python3_sitelibdir/%pypi_name/
%python3_sitelibdir/rpds_py-%version.dist-info
%changelog
…
Full changelog you can see here
%def_with check
Name: python3-module-%pypi_name-py
Version: 0.10.3
Release: alt1
Summary: Python bindings to the Rust rpds crate for persistent data structures
License: MIT
Group: Development/Python3
URL: https://pypi.org/project/rpds-py
VCS: https://github.com/crate-py/rpds
Source0: %pypi_name-%version.tar
Source1: crates.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-maturin
BuildRequires: /proc
BuildRequires: rust-cargo
%if_with check
BuildRequires: python3-module-pytest
%endif
%description
%summary.
%prep
%setup -n %pypi_name-%version
mkdir -p .cargo
cat >> .cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"
[term]
verbose = true
quiet = false
[install]
root = "%buildroot%_prefix"
[build]
rustflags = ["-Copt-level=3", "-Cdebuginfo=1"]
[profile.release]
strip = false
EOF
tar xf %SOURCE1
%build
%pyproject_build
%install
%pyproject_install
%check
%pyproject_run_pytest -v
%files
%doc README.* LICENSE
%python3_sitelibdir/%pypi_name/
%python3_sitelibdir/rpds_py-%version.dist-info
%changelog
…
Full changelog you can see here