Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c94c544771 | ||
|
|
1b906aa928 | ||
|
|
37e7b2c67f | ||
|
|
f0f301a19d | ||
|
|
c8504d6913 | ||
|
|
65bc97ee2d | ||
|
|
477d830513 | ||
|
|
e95679924e |
@@ -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.2
|
||||
Release: 2%{?dist}
|
||||
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}
|
||||
@@ -73,6 +82,7 @@ rm -rf %{buildroot}%{python3_sitearch}/bottleneck/src \
|
||||
|
||||
%{_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,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}
|
||||
@@ -101,6 +114,21 @@ rm -rf %{buildroot}%{python3_sitearch}/.pytest_cache
|
||||
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
|
||||
* 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user