Blame python-threadpoolctl.spec

Sergio Pascual f2f8ab9
%bcond_without check
Sergio Pascual f2f8ab9
Sergio Pascual a81da7f
%global srcname threadpoolctl
Sergio Pascual a81da7f
Sergio Pascual a81da7f
Name: python-%{srcname}
Sergio Pascual f2f8ab9
Version: 3.1.0
Sergio Pascual a957b0e
Release: 2%{?dist}
Sergio Pascual a81da7f
Summary: Thread-pool Controls
Sergio Pascual a81da7f
License: BSD
Sergio Pascual a81da7f
Sergio Pascual a81da7f
URL: https://github.com/joblib/threadpoolctl
Sergio Pascual a81da7f
Source0: %{pypi_source}
Sergio Pascual a957b0e
# Add Koji POWER9 and Z14 to the list of test architectures
Sergio Pascual a957b0e
Patch0: threadpoolctl-koji-arches.patch
Sergio Pascual a81da7f
Sergio Pascual a81da7f
BuildArch: noarch
Sergio Pascual f2f8ab9
BuildRequires:  python3-devel
Sergio Pascual a81da7f
Sergio Pascual a81da7f
%global _description %{expand:
Sergio Pascual a81da7f
Python helpers to limit the number of threads used in the 
Sergio Pascual a81da7f
threadpool-backed of common native libraries used for scientific computing 
Sergio Pascual a81da7f
and data science (e.g. BLAS and OpenMP).
Sergio Pascual a81da7f
Fine control of the underlying thread-pool size can be useful in 
Sergio Pascual a81da7f
workloads that involve nested parallelism so as to mitigate 
Sergio Pascual a81da7f
oversubscription issues.}     
Sergio Pascual a81da7f
Sergio Pascual a81da7f
%description %_description
Sergio Pascual a81da7f
Sergio Pascual a81da7f
%package -n python3-%{srcname}
Sergio Pascual a81da7f
Summary: %{summary}
Sergio Pascual a81da7f
# Testing
Sergio Pascual f2f8ab9
%if %{with check}
Sergio Pascual f2f8ab9
BuildRequires: python3dist(pytest)
Sergio Pascual f2f8ab9
BuildRequires: python3dist(scipy)
Sergio Pascual f2f8ab9
BuildRequires: python3dist(cython)
Sergio Pascual f2f8ab9
%endif
Sergio Pascual a81da7f
Sergio Pascual a81da7f
%description -n python3-%{srcname}
Sergio Pascual a81da7f
%_description
Sergio Pascual a81da7f
Sergio Pascual a81da7f
%prep
Sergio Pascual a957b0e
%autosetup -n %{srcname}-%{version} -p1
Sergio Pascual a81da7f
Sergio Pascual f2f8ab9
%generate_buildrequires
Sergio Pascual f2f8ab9
%pyproject_buildrequires
Sergio Pascual f2f8ab9
Sergio Pascual a81da7f
%build
Sergio Pascual f2f8ab9
%pyproject_wheel
Sergio Pascual a81da7f
Sergio Pascual a81da7f
%install
Sergio Pascual f2f8ab9
%pyproject_install
Sergio Pascual f2f8ab9
Sergio Pascual f2f8ab9
%pyproject_save_files threadpoolctl
Sergio Pascual a81da7f
Sergio Pascual a81da7f
%check
Sergio Pascual f2f8ab9
%if %{with check}
Sergio Pascual a81da7f
pytest -v
Sergio Pascual f2f8ab9
%else
Sergio Pascual f2f8ab9
%pyproject_check_import -t
Sergio Pascual f2f8ab9
%endif
Sergio Pascual a81da7f
Sergio Pascual f2f8ab9
%files -n python3-%{srcname} -f %{pyproject_files}
Sergio Pascual a81da7f
%doc README.md multiple_openmp.md
Sergio Pascual a81da7f
Sergio Pascual a81da7f
%changelog
Sergio Pascual a957b0e
* Mon Apr 25 2022 Sergio Pascual <sergiopr@fedoraproject.org> - 3.1.0-2
Sergio Pascual f2f8ab9
- New upstream release (3.1.0)
Sergio Pascual f2f8ab9
- Rewrite spec whith new guidelines
Sergio Pascual a957b0e
- Add Koji's POWER9 and Z14 to the list of test architectures
Sergio Pascual f2f8ab9
9d52cc4
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-8
9d52cc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
9d52cc4
5924635
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-7
5924635
- Second attempt - Rebuilt for
5924635
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
5924635
b7b596d
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.0.0-6
b7b596d
- Rebuilt for Python 3.10
b7b596d
1f43162
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-5
1f43162
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1f43162
0b6c3d3
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
0b6c3d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0b6c3d3
9fc6044
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 2.0.0-3
9fc6044
- Rebuilt for Python 3.9
9fc6044
Sergio Pascual a81da7f
* Thu May 21 2020 Sergio Pascual <sergiopr@fedoraproject.org> - 2.0.0-2
Sergio Pascual a81da7f
- Package approved
Sergio Pascual a81da7f
Sergio Pascual a81da7f
* Tue May 19 2020 Sergio Pascual <sergiopr@fedoraproject.org> - 2.0.0-1
Sergio Pascual a81da7f
- Initial spec