4 Commits
f36 ... epel9

Author SHA1 Message Date
jonathanspw
c94c544771 fix doc package build arch 2023-01-24 08:25:04 -06:00
jonathanspw
1b906aa928 Merge branch 'rawhide' into epel9 2023-01-24 08:21:13 -06:00
jonathanspw
37e7b2c67f increment release/update changelog 2023-01-24 08:00:19 -06:00
jonathanspw
f0f301a19d don't build docs on rhel 2023-01-24 07:57:04 -06:00
2 changed files with 23 additions and 11 deletions

View File

@@ -1,8 +1,15 @@
%global upname Bottleneck
# 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.7
Release: 1%{?dist}
Version: 1.3.2
Release: 7%{?dist}
Summary: Collection of fast NumPy array functions written in Cython
License: BSD
@@ -16,14 +23,14 @@ 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-%{upname}
Summary: Collection of fast NumPy array functions written in Cython
@@ -31,10 +38,12 @@ 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}
@@ -68,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
@@ -79,6 +90,7 @@ sphinx-build -b html doc/source doc/html
# Clean unneeded stuff from docs.
rm -rf doc/html/{.buildinfo,.doctrees}
%endif
%check
@@ -87,9 +99,11 @@ 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-%{upname}
@@ -100,10 +114,8 @@ rm -rf %{buildroot}%{python3_sitearch}/.pytest_cache
%changelog
* 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

View File

@@ -1 +1 @@
SHA512 (Bottleneck-1.3.7.tar.gz) = ffeacb13e5a99db85e1580b9f2ead98239b4fd0b253a3c242a5507a026b439b9927ea49becec7e4d2d8f8e4ced15f43514c0af99379389db141ae50c4513e011
SHA512 (Bottleneck-1.3.2.tar.gz) = 78f1a42c9429783c08de22e3c1815e8e8267a633323b7fd520b120ff21a31f9489717a1ca45b81d0b808aa48d0f17fd08b8018be48d8f78bea5f1fbd17d762d1