diff --git a/.gitignore b/.gitignore index e69de29..3975b20 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/setuptools-rust-0.11.6.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..47615f6 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# python-setuptools-rust + +The python-setuptools-rust package diff --git a/python-setuptools-rust.spec b/python-setuptools-rust.spec new file mode 100644 index 0000000..498d218 --- /dev/null +++ b/python-setuptools-rust.spec @@ -0,0 +1,55 @@ +Name: python-setuptools-rust +Version: 0.11.6 +Release: 2%{?dist} +Summary: Setuptools Rust extension plugin + +License: MIT +URL: https://github.com/PyO3/setuptools-rust +Source0: %{pypi_source setuptools-rust} +BuildArch: noarch +ExclusiveArch: %{rust_arches} + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) >= 46.1 +BuildRequires: python3dist(setuptools-scm) >= 3.4.3 +BuildRequires: python3dist(toml) >= 0.9.0 +BuildRequires: python3dist(wheel) +BuildRequires: rust-packaging + +%description +Setuptools helpers for Rust Python extensions. Compile and distribute Python +extensions written in Rust as easily as if they were written in C. + +%package -n python3-setuptools-rust +Summary: %{summary} +Requires: python3dist(setuptools) >= 46.1 +Requires: rust-packaging + +%description -n python3-setuptools-rust +Setuptools helpers for Rust Python extensions. Compile and distribute Python +extensions written in Rust as easily as if they were written in C. + +%prep +%autosetup -n setuptools-rust-%{version} +# Remove bundled egg-info +rm -rf setuptools-rust.egg-info + +%build +%py3_build + +%install +%py3_install + +%files -n python3-setuptools-rust +%doc README.md CHANGELOG.md +%license LICENSE +%{python3_sitelib}/setuptools_rust/ +%{python3_sitelib}/setuptools_rust-%{version}-py%{python3_version}.egg-info/ + +%changelog +* Wed Jan 27 2021 Fedora Release Engineering - 0.11.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Jan 14 2021 Christian Heimes - 0.11.6-1 +- Initial package. +- Resolves: rhbz#1906490 diff --git a/sources b/sources new file mode 100644 index 0000000..f8d5bd3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (setuptools-rust-0.11.6.tar.gz) = 5ebc3944d7fb2fb8959c7fc7a897b7e658169bc07f8f29d6acd4a4710009c9c213005e3e846c30b565f743aff72f22582474b5ece9c4e58e43081d60c140a7cb