%global debug_package %{nil} Name: maturin Version: 1.14.1 Release: 1%{?dist} Summary: Build and publish crates with pyo3, cffi and uniffi bindings License: MIT OR Apache-2.0 URL: https://github.com/PyO3/maturin Source0: https://files.pythonhosted.org/packages/source/m/maturin/maturin-%{version}.tar.gz Source1: maturin-%{version}-vendor.tar.bz2 BuildRequires: rust >= 1.89 BuildRequires: cargo BuildRequires: openssl-devel BuildRequires: perl-interpreter %description Build and publish crates with pyo3, cffi and uniffi bindings as well as Rust binaries as Python packages. %prep %autosetup -n maturin-%{version} tar xjf %{SOURCE1} mkdir -p .cargo cat > .cargo/config.toml << 'CARGOEOF' [source.crates-io] replace-with = "vendored-sources" [source.vendored-sources] directory = "vendor" CARGOEOF %build export CARGO_HOME=$(pwd)/.cargo-home cargo build --release --frozen 2>&1 | tail -5 %install install -D -m 755 target/release/maturin %{buildroot}%{_bindir}/maturin %check %{buildroot}%{_bindir}/maturin --version %files %license license-mit license-apache %{_bindir}/maturin %changelog * Thu Jul 09 2026 Yonghang Wang - 1.14.1-1%{?dist} - Build for al2023