!3 Update to version 1.5.2
From: @wang--ge Reviewed-by: @xiyuanwang Signed-off-by: @xiyuanwang
This commit is contained in:
commit
1b2ed5a4f5
@ -1,11 +1,11 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-setuptools-rust
|
Name: python-setuptools-rust
|
||||||
Version: 0.12.1
|
Version: 1.5.2
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Setuptools Rust extension plugin
|
Summary: Setuptools Rust extension plugin
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/PyO3/setuptools-rust
|
URL: https://github.com/PyO3/setuptools-rust
|
||||||
Source0: https://files.pythonhosted.org/packages/12/22/6ba3031e7cbd6eb002e13ffc7397e136df95813b6a2bd71ece52a8f89613/setuptools-rust-0.12.1.tar.gz
|
Source0: https://files.pythonhosted.org/packages/99/db/e4ecb483ffa194d632ed44bda32cb740e564789fed7e56c2be8e2a0e2aa6/setuptools-rust-1.5.2.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%description
|
%description
|
||||||
Setuptools helpers for Rust Python extensions. Compile and distribute Python
|
Setuptools helpers for Rust Python extensions. Compile and distribute Python
|
||||||
@ -16,13 +16,13 @@ Summary: Setuptools Rust extension plugin
|
|||||||
Provides: python-setuptools-rust
|
Provides: python-setuptools-rust
|
||||||
# Base build requires
|
# Base build requires
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
BuildRequires: python3-pbr
|
BuildRequires: python3-pbr
|
||||||
BuildRequires: python3-pip
|
BuildRequires: python3-pip
|
||||||
BuildRequires: python3-wheel
|
BuildRequires: python3-wheel
|
||||||
BuildRequires: python3-semantic_version
|
BuildRequires: python3-semantic_version
|
||||||
BuildRequires: python3-toml
|
BuildRequires: python3-toml
|
||||||
BuildRequires: python3-setuptools_scm
|
BuildRequires: python3-setuptools_scm
|
||||||
|
BuildRequires: python3-typing-extensions
|
||||||
Requires: python3-setuptools
|
Requires: python3-setuptools
|
||||||
Requires: python3-semantic_version
|
Requires: python3-semantic_version
|
||||||
Requires: python3-toml
|
Requires: python3-toml
|
||||||
@ -37,50 +37,32 @@ Setuptools helpers for Rust Python extensions. Compile and distribute Python
|
|||||||
extensions written in Rust as easily as if they were written in C.
|
extensions written in Rust as easily as if they were written in C.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n setuptools-rust-0.12.1
|
%autosetup -n setuptools-rust-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install setuptools-rust==%{version}
|
||||||
|
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d docs ]; then cp -arf docs %{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 example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||||
pushd %{buildroot}
|
|
||||||
if [ -d usr/lib ]; then
|
|
||||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/lib64 ]; then
|
|
||||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/bin ]; then
|
|
||||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/sbin ]; then
|
|
||||||
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
touch doclist.lst
|
|
||||||
if [ -d usr/share/man ]; then
|
|
||||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
|
||||||
fi
|
|
||||||
popd
|
|
||||||
mv %{buildroot}/filelist.lst .
|
|
||||||
mv %{buildroot}/doclist.lst .
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
|
|
||||||
%files -n python3-setuptools-rust -f filelist.lst
|
%files -n python3-setuptools-rust
|
||||||
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%dir %{python3_sitelib}/*
|
%files help
|
||||||
|
|
||||||
%files help -f doclist.lst
|
|
||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 27 2023 Ge Wang <wang__ge@126.com> - 1.5.2-1
|
||||||
|
- Update to version 1.5.2
|
||||||
|
|
||||||
* Sat Aug 14 2021 OpenStack_SIG <openstack@openeuler.org> - 0.12.1-1
|
* Sat Aug 14 2021 OpenStack_SIG <openstack@openeuler.org> - 0.12.1-1
|
||||||
- Initial package.
|
- Initial package.
|
||||||
|
|||||||
Binary file not shown.
BIN
setuptools-rust-1.5.2.tar.gz
Normal file
BIN
setuptools-rust-1.5.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user