python-setuptools-rust/python-setuptools-rust.spec

76 lines
2.5 KiB
RPMSpec
Raw Normal View History

2021-08-13 22:32:52 +00:00
%global _empty_manifest_terminate_build 0
Name: python-setuptools-rust
2024-02-04 03:27:15 +00:00
Version: 1.8.1
2021-08-13 22:32:52 +00:00
Release: 1
Summary: Setuptools Rust extension plugin
License: MIT
URL: https://github.com/PyO3/setuptools-rust
2024-02-04 03:27:15 +00:00
Source0: https://files.pythonhosted.org/packages/f2/40/f1e9fedb88462248e94ea4383cda0065111582a4d5a32ca84acf60ab1107/setuptools-rust-1.8.1.tar.gz
2021-08-13 22:32:52 +00:00
BuildArch: noarch
%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: Setuptools Rust extension plugin
Provides: python-setuptools-rust
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-semantic_version
BuildRequires: python3-toml
BuildRequires: python3-setuptools_scm
2023-05-09 16:33:19 +08:00
BuildRequires: python3-typing-extensions
2021-08-13 22:32:52 +00:00
Requires: python3-setuptools
Requires: python3-semantic_version
Requires: python3-toml
%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.
%package help
Summary: Setuptools Rust extension plugin
Provides: python3-setuptools-rust-doc
%description help
Setuptools helpers for Rust Python extensions. Compile and distribute Python
extensions written in Rust as easily as if they were written in C.
%prep
2023-05-09 16:33:19 +08:00
%autosetup -n setuptools-rust-%{version}
2021-08-13 22:32:52 +00:00
%build
2023-05-09 16:33:19 +08:00
%pyproject_build
2021-08-13 22:32:52 +00:00
%install
2023-07-17 15:37:52 +08:00
%pyproject_install
2021-08-13 22:32:52 +00:00
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
2023-05-09 16:33:19 +08:00
%files -n python3-setuptools-rust
2023-07-17 15:37:52 +08:00
%doc README.md
%license LICENSE
%{python3_sitelib}/setuptools_rust
%{python3_sitelib}/setuptools_rust*.dist-info/
2021-08-13 22:32:52 +00:00
2023-05-09 16:33:19 +08:00
%files help
2021-08-13 22:32:52 +00:00
%{_docdir}/*
%changelog
2024-02-04 03:27:15 +00:00
* Fri Feb 02 2024 zhengting<zhengting13@huawei.com> - 1.8.1-1
- Update package to version 1.8.1
2023-07-17 15:37:52 +08:00
* Mon Jul 17 2023 Dongxing Wang <dxwangk@isoftstone.com> - 1.6.0-1
- Update package to version 1.6.0
2023-05-09 16:33:19 +08:00
* Thu Apr 27 2023 Ge Wang <wang__ge@126.com> - 1.5.2-1
- Update to version 1.5.2
2021-08-13 22:32:52 +00:00
* Sat Aug 14 2021 OpenStack_SIG <openstack@openeuler.org> - 0.12.1-1
- Initial package.