diff --git a/cargo-vendor-cache b/cargo-vendor-cache new file mode 100644 index 0000000000000000000000000000000000000000..f7b3a99cfc574ca7705189fe39daba19f52eee51 Binary files /dev/null and b/cargo-vendor-cache differ diff --git a/maturin-1.1.0.tar.gz b/maturin-1.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..2d05de646582d9f897231783fb777f9506b4857a Binary files /dev/null and b/maturin-1.1.0.tar.gz differ diff --git a/python-maturin.spec b/python-maturin.spec new file mode 100644 index 0000000000000000000000000000000000000000..44336730b48e0564b5dfe18540256e8ce465f2ce --- /dev/null +++ b/python-maturin.spec @@ -0,0 +1,61 @@ +%global _empty_manifest_terminate_build 0 +%global pypi_name maturin + +Name: python-%{pypi_name} +Version: 1.1.0 +Release: 1 +Summary: Build and publish Rust crates as Python packages. + +License: MIT OR Apache-2.0 +URL: https://github.com/PyO3/maturin +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +Source1: cargo-vendor-cache + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools-rust +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: rust-packaging + +%description +Miscellaneous utilities for dealing with filesystems, paths, projects, subprocesses, and more. + + +%package -n python3-%{pypi_name} +Summary: %{summary} + +%description -n python3-%{pypi_name} +Miscellaneous utilities for dealing with filesystems, paths, projects, subprocesses, and more. + + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} +tar xzvf %{SOURCE1} -C . +mkdir .cargo +cat >> .cargo/config.toml << EOF +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" +EOF + + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-%{pypi_name} +%doc README.md Changelog.md +%license license-apache license-mit +%{_bindir}/maturin +%{python3_sitearch}/%{pypi_name} +%{python3_sitearch}/%{pypi_name}*.dist-info/ + +%changelog +* Tue Jun 27 2023 Dongxing Wang - 1.1.0-1 +- Initial package