|
|
|
|
@@ -1,37 +1,21 @@
|
|
|
|
|
%global upname bottleneck
|
|
|
|
|
%global upname Bottleneck
|
|
|
|
|
|
|
|
|
|
%bcond docs %[!0%{?rhel}]
|
|
|
|
|
|
|
|
|
|
Name: python-Bottleneck
|
|
|
|
|
Version: 1.6.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Name: python-%{upname}
|
|
|
|
|
Version: 1.2.1
|
|
|
|
|
Release: 13%{?dist}
|
|
|
|
|
Summary: Collection of fast NumPy array functions written in Cython
|
|
|
|
|
|
|
|
|
|
License: BSD-2-Clause
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: https://pypi.org/project/Bottleneck/
|
|
|
|
|
Source0: %pypi_source %{upname}
|
|
|
|
|
# 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
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
|
|
|
|
|
BuildSystem: pyproject
|
|
|
|
|
BuildOption(install): -l bottleneck
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
BuildOption(generate_buildrequires): -x doc
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
|
|
|
|
|
ExcludeArch: %{ix86}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{name} is a collection of fast NumPy array functions
|
|
|
|
|
written in Cython.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation files for %{name}
|
|
|
|
|
|
|
|
|
|
@@ -39,144 +23,85 @@ 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
|
|
|
|
|
|
|
|
|
|
%description -n python3-Bottleneck
|
|
|
|
|
python3-Bottleneck is a collection of fast NumPy array functions
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-nose
|
|
|
|
|
BuildRequires: python3-numpy
|
|
|
|
|
BuildRequires: python3-numpydoc
|
|
|
|
|
BuildRequires: python3-scipy
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
|
|
|
|
|
|
Requires: python3-numpy%{?_isa}
|
|
|
|
|
Requires: python3-scipy%{?_isa}
|
|
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python3-%{upname}}
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{upname}
|
|
|
|
|
python3-%{upname} is a collection of fast NumPy array functions
|
|
|
|
|
written in Cython.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{upname}-%{version} -p 1
|
|
|
|
|
%{__rm} -fr .egg* *.egg*
|
|
|
|
|
|
|
|
|
|
# Remove the contributors extensions which can't work because we don't
|
|
|
|
|
# have a repo anyway.
|
|
|
|
|
sed -i /contributors/d doc/source/conf.py
|
|
|
|
|
# use numpydoc from the package instead
|
|
|
|
|
%{__rm} -f doc/sphinxext/numpydoc.py*
|
|
|
|
|
|
|
|
|
|
# Python 2 remark
|
|
|
|
|
%{__sed} -i 's/fid = file(/fid = open(/' doc/source/conf.py
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
# clean unneeded stuff
|
|
|
|
|
%{__rm} -rf %{buildroot}%{python3_sitearch}/bottleneck/src \
|
|
|
|
|
%{buildroot}%{python3_sitearch}/bottleneck/LICENSE
|
|
|
|
|
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
|
|
# Move installed files to temporary location.
|
|
|
|
|
%{__mkdir} -p tmp_inst
|
|
|
|
|
%{__cp} -fpr %{buildroot}/* tmp_inst
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
%install -a
|
|
|
|
|
# Build the autodocs.
|
|
|
|
|
export PYTHONPATH="%{buildroot}%{python3_sitearch}"
|
|
|
|
|
export READTHEDOCS=1
|
|
|
|
|
sphinx-build -b html doc/source doc/html
|
|
|
|
|
export PYTHONPATH="$(/bin/pwd)/tmp_inst/%{python3_sitearch}"
|
|
|
|
|
%{__mkdir} -p doc/source/_static
|
|
|
|
|
%{_bindir}/sphinx-build -b html doc/source doc/html
|
|
|
|
|
unset PYTHONPATH
|
|
|
|
|
|
|
|
|
|
# Clean unneeded stuff from docs.
|
|
|
|
|
rm -rf doc/html/{.buildinfo,.doctrees,.nojekyll}
|
|
|
|
|
%endif
|
|
|
|
|
%{__rm} -rf doc/html/{.buildinfo,.doctrees}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
cd build/lib.linux-*
|
|
|
|
|
%pytest bottleneck
|
|
|
|
|
cd -
|
|
|
|
|
pushd tmp_inst/%{python3_sitearch}
|
|
|
|
|
%{_bindir}/nosetests-%{python3_version} -vv
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
%files doc
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%license bottleneck/LICENSE
|
|
|
|
|
%doc README* RELEASE* doc/html
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-Bottleneck -f %{pyproject_files}
|
|
|
|
|
%files -n python3-%{upname}
|
|
|
|
|
%license bottleneck/LICENSE
|
|
|
|
|
%doc README* RELEASE*
|
|
|
|
|
%{python3_sitearch}/bottleneck
|
|
|
|
|
%{python3_sitearch}/%{upname}-%{version}-py%{python3_version}.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Oct 07 2025 Björn Esser <besser82@fedoraproject.org> - 1.6.0-1
|
|
|
|
|
- Update to 1.6.0
|
|
|
|
|
|
|
|
|
|
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 1.5.0-2
|
|
|
|
|
- Rebuilt for Python 3.14.0rc3 bytecode
|
|
|
|
|
|
|
|
|
|
* Tue Aug 26 2025 Jerry James <loganjerry@gmail.com> - 1.5.0-1
|
|
|
|
|
- Version 1.5.0
|
|
|
|
|
- Stop building for 32-bit x86
|
|
|
|
|
- Update the License field to BSD-2-Clause
|
|
|
|
|
- Use the pyproject declarative buildsystem
|
|
|
|
|
- Do not build documentation for RHEL
|
|
|
|
|
|
|
|
|
|
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 1.4.2-5
|
|
|
|
|
- Rebuilt for Python 3.14.0rc2 bytecode
|
|
|
|
|
|
|
|
|
|
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 03 2025 Python Maint <python-maint@redhat.com> - 1.4.2-3
|
|
|
|
|
- Rebuilt for Python 3.14
|
|
|
|
|
|
|
|
|
|
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 1.3.2-4
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 17 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.2-1
|
|
|
|
|
- Update to latest version (#1768152)
|
|
|
|
|
|
|
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.2.1-18
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-17
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-16
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-15
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-14
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Oct 4 2019 Orion Poplawski <orion@nwra.com> - 1.2.1-13
|
|
|
|
|
- Fix URL
|
|
|
|
|
|
|
|
|
|
|