|
|
|
|
@@ -1,16 +1,20 @@
|
|
|
|
|
%global upname bottleneck
|
|
|
|
|
%global upname Bottleneck
|
|
|
|
|
|
|
|
|
|
Name: python-Bottleneck
|
|
|
|
|
Version: 1.4.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
# build docs on Fedora but not on RHEL (not all sphinx packages available)
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
%bcond_with docs
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without docs
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: python-%{upname}
|
|
|
|
|
Version: 1.3.2
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Summary: Collection of fast NumPy array functions written in Cython
|
|
|
|
|
|
|
|
|
|
# Automatically converted from old format: BSD - review is highly recommended.
|
|
|
|
|
License: LicenseRef-Callaway-BSD
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: https://pypi.org/project/Bottleneck/
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/b/%{upname}/%{upname}-%{version}.tar.gz
|
|
|
|
|
# https://github.com/pydata/bottleneck/pull/432
|
|
|
|
|
Patch0001: 0001-Fix-doc-build-with-Sphinx-6.patch
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/B/%{upname}/%{upname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
|
|
|
|
|
@@ -19,31 +23,35 @@ BuildRequires: gcc
|
|
|
|
|
written in Cython.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation files for %{name}
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
This package contains the HTML-docs for %{name}.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-Bottleneck
|
|
|
|
|
%package -n python3-%{upname}
|
|
|
|
|
Summary: Collection of fast NumPy array functions written in Cython
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
BuildRequires: python3-numpy
|
|
|
|
|
BuildRequires: python3-numpydoc
|
|
|
|
|
BuildRequires: python3-scipy
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
BuildRequires: python3-numpydoc
|
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Requires: python3-numpy%{?_isa}
|
|
|
|
|
Requires: python3-scipy%{?_isa}
|
|
|
|
|
|
|
|
|
|
%description -n python3-Bottleneck
|
|
|
|
|
python3-Bottleneck is a collection of fast NumPy array functions
|
|
|
|
|
%{?python_provide:%python_provide python3-%{upname}}
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{upname}
|
|
|
|
|
python3-%{upname} is a collection of fast NumPy array functions
|
|
|
|
|
written in Cython.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -69,10 +77,12 @@ sed -i /contributors/d doc/source/conf.py
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
# clean unneeded stuff
|
|
|
|
|
rm -rf %{buildroot}%{python3_sitearch}/bottleneck/LICENSE
|
|
|
|
|
rm -rf %{buildroot}%{python3_sitearch}/bottleneck/src \
|
|
|
|
|
%{buildroot}%{python3_sitearch}/bottleneck/LICENSE
|
|
|
|
|
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
# Build the autodocs.
|
|
|
|
|
export PYTHONPATH="%{buildroot}%{python3_sitearch}"
|
|
|
|
|
export READTHEDOCS=1
|
|
|
|
|
@@ -80,6 +90,7 @@ sphinx-build -b html doc/source doc/html
|
|
|
|
|
|
|
|
|
|
# Clean unneeded stuff from docs.
|
|
|
|
|
rm -rf doc/html/{.buildinfo,.doctrees}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
@@ -88,50 +99,23 @@ pytest-%{python3_version} bottleneck -v
|
|
|
|
|
popd
|
|
|
|
|
rm -rf %{buildroot}%{python3_sitearch}/.pytest_cache
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
%files doc
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README* RELEASE* doc/html
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-Bottleneck
|
|
|
|
|
%files -n python3-%{upname}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README* RELEASE*
|
|
|
|
|
%{python3_sitearch}/bottleneck
|
|
|
|
|
%{python3_sitearch}/Bottleneck-%{version}-py%{python3_version}.egg-info
|
|
|
|
|
%{python3_sitearch}/%{upname}-%{version}-py%{python3_version}.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Dec 17 2024 Orion Poplawski <orion@nwra.com> - 1.4.2-1
|
|
|
|
|
- Update to 1.4.2
|
|
|
|
|
|
|
|
|
|
* Tue Dec 17 2024 Orion Poplawski <orion@nwra.com> - 1.3.7-9
|
|
|
|
|
- Rebuild with numpy 2.0
|
|
|
|
|
|
|
|
|
|
* Wed Sep 04 2024 Miroslav Suchý <msuchy@redhat.com> - 1.3.7-8
|
|
|
|
|
- convert license to SPDX
|
|
|
|
|
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.7-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 1.3.7-6
|
|
|
|
|
- Rebuilt for Python 3.13
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.7-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.7-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.7-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 28 2023 Python Maint <python-maint@redhat.com> - 1.3.7-2
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Tue Apr 04 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.3.7-1
|
|
|
|
|
- Update to 1.3.7
|
|
|
|
|
Fixes: rhbz#2056294
|
|
|
|
|
Fixes: rhbz#2137289
|
|
|
|
|
* Tue Jan 24 2023 Jonathan Wright <jonathan@almalinux.org> - 1.3.2-7
|
|
|
|
|
- disable building docs on RHEL
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|