python-threadpoolctl/python-threadpoolctl.spec

85 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

2020-02-18 09:23:56 +08:00
%global pypi_name threadpoolctl
2023-02-16 09:43:24 +08:00
%bcond_without test
2020-02-18 09:23:56 +08:00
Name: python-%{pypi_name}
Version: 3.2.0
Release: 1
2020-02-18 09:23:56 +08:00
Summary: Python helpers to limit the number of threads
2022-10-28 15:01:57 +08:00
License: BSD-3-Clause
2020-02-18 09:23:56 +08:00
URL: https://github.com/joblib/threadpoolctl/
Source0: https://files.pythonhosted.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
2020-02-18 09:23:56 +08:00
BuildArch: noarch
2022-03-04 09:26:51 +08:00
BuildRequires: python3-devel
2023-04-27 10:17:02 +08:00
BuildRequires: python3-pip python3-wheel python3-flit
2020-02-18 09:23:56 +08:00
%if %{with test}
BuildRequires: python3-pytest
%endif
%global _description \
Python helpers to limit the number of threads used in\
the threadpool-backed of common native libraries used for\
scientific computing and data science (e.g. BLAS and OpenMP).\
\
Fine control of the underlying thread-pool size can be useful in\
workloads that involve nested parallelism so as to mitigate oversubscription issues.
%description %{_description}
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name} %{_description}
%prep
2022-06-27 14:46:25 +08:00
%autosetup -n %{pypi_name}-%{version} -p1
2020-02-18 09:23:56 +08:00
%build
2023-04-27 10:17:02 +08:00
%pyproject_build
2020-02-18 09:23:56 +08:00
%install
2023-04-27 10:17:02 +08:00
%pyproject_install threadpoolctl==%{version}
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
2020-02-18 09:23:56 +08:00
%if %{with test}
%check
py.test-%{python3_version}
%endif
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md CHANGES.md
2023-04-27 10:17:02 +08:00
%{python3_sitelib}/*
2020-02-18 09:23:56 +08:00
%changelog
* Thu Feb 01 2024 xu_ping <707078654@qq.com> - 3.2.0-1
- Upgrade version to 3.2.0
2023-04-27 10:17:02 +08:00
* Thu Apr 27 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 3.1.0-3
- Use pyproject to compile package
2023-02-16 09:43:24 +08:00
* Thu Feb 16 2023 tanyulong <tanyulong@kylinos.cn> - 3.1.0-2
- enable check
2022-10-28 15:01:57 +08:00
* Fri Oct 28 2022 wangjunqi <wangjunqi@kylinos.cn> - 3.1.0-1
- Update package to version 3.1.0
2022-06-27 14:46:25 +08:00
* Thu Jun 23 2022 SimpleUpdate Robot <tc@openeuler.org> - 3.0.0-1
- Upgrade to version 3.0.0
2022-03-04 09:26:51 +08:00
* Fri Mar 4 2022 zhaoshuang <zhaoshuang@uniontech.com> - 2.1.0-3
- remove unnecessary buildrequires
* Fri Jan 28 2022 shixuantong <shixuantong@h-partners.com> - 2.1.0-2
- change source0 and modify build and install
2021-01-28 10:53:34 +08:00
* Thu Jan 28 2021 liudabo <liudabo1@huawei.com> - 2.1.0-1
- upgrade version to 2.1.0
2020-02-18 09:23:56 +08:00
* Mon Feb 10 2020 Jiangping Hu <hujp1985@foxmail.com> - 1.1.0-2
- Init package