Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c94c544771 | ||
|
|
1b906aa928 | ||
|
|
37e7b2c67f | ||
|
|
f0f301a19d | ||
|
|
c8504d6913 | ||
|
|
65bc97ee2d | ||
|
|
477d830513 | ||
|
|
e95679924e | ||
|
|
9b388d39f1 | ||
|
|
41611e5750 | ||
|
|
bf326edfcb | ||
|
|
e993080cf8 | ||
|
|
5fec942d8d | ||
|
|
891b053023 | ||
|
|
952b9c7978 | ||
|
|
688015e9ef |
@@ -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.2.1
|
||||
Release: 14%{?dist}
|
||||
Version: 1.3.2
|
||||
Release: 7%{?dist}
|
||||
Summary: Collection of fast NumPy array functions written in Cython
|
||||
|
||||
License: BSD
|
||||
@@ -16,25 +23,27 @@ 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
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-nose
|
||||
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}
|
||||
@@ -48,13 +57,17 @@ written in Cython.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{upname}-%{version} -p 1
|
||||
%{__rm} -fr .egg* *.egg*
|
||||
rm -fr .egg* *.egg*
|
||||
|
||||
# use numpydoc from the package instead
|
||||
%{__rm} -f doc/sphinxext/numpydoc.py*
|
||||
rm -f doc/sphinxext/numpydoc.py*
|
||||
|
||||
# Python 2 remark
|
||||
%{__sed} -i 's/fid = file(/fid = open(/' doc/source/conf.py
|
||||
sed -i 's/fid = file(/fid = open(/' doc/source/conf.py
|
||||
|
||||
# Remove the contributors extensions which can't work because we don't
|
||||
# have a repo anyway.
|
||||
sed -i /contributors/d doc/source/conf.py
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
@@ -64,44 +77,76 @@ written in Cython.
|
||||
%py3_install
|
||||
|
||||
# clean unneeded stuff
|
||||
%{__rm} -rf %{buildroot}%{python3_sitearch}/bottleneck/src \
|
||||
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}
|
||||
# Build the autodocs.
|
||||
export PYTHONPATH="$(/bin/pwd)/tmp_inst/%{python3_sitearch}"
|
||||
%{__mkdir} -p doc/source/_static
|
||||
%{_bindir}/sphinx-build -b html doc/source doc/html
|
||||
unset PYTHONPATH
|
||||
export PYTHONPATH="%{buildroot}%{python3_sitearch}"
|
||||
export READTHEDOCS=1
|
||||
sphinx-build -b html doc/source doc/html
|
||||
|
||||
# Clean unneeded stuff from docs.
|
||||
%{__rm} -rf doc/html/{.buildinfo,.doctrees}
|
||||
rm -rf doc/html/{.buildinfo,.doctrees}
|
||||
%endif
|
||||
|
||||
|
||||
%check
|
||||
pushd tmp_inst/%{python3_sitearch}
|
||||
%{_bindir}/nosetests-%{python3_version} -vv
|
||||
pushd %{buildroot}%{python3_sitearch}
|
||||
pytest-%{python3_version} bottleneck -v
|
||||
popd
|
||||
rm -rf %{buildroot}%{python3_sitearch}/.pytest_cache
|
||||
|
||||
|
||||
%if %{with docs}
|
||||
%files doc
|
||||
%license bottleneck/LICENSE
|
||||
%license LICENSE
|
||||
%doc README* RELEASE* doc/html
|
||||
%endif
|
||||
|
||||
|
||||
%files -n python3-%{upname}
|
||||
%license bottleneck/LICENSE
|
||||
%license LICENSE
|
||||
%doc README* RELEASE*
|
||||
%{python3_sitearch}/bottleneck
|
||||
%{python3_sitearch}/%{upname}-%{version}-py%{python3_version}.egg-info
|
||||
|
||||
|
||||
%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
|
||||
|
||||
* 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
|
||||
|
||||
|
||||
2
sources
2
sources
@@ -1 +1 @@
|
||||
SHA512 (Bottleneck-1.2.1.tar.gz) = c766999cd1501b9f1dee0177b631ece12824d1f95c33077705f6387c911df583c3556ea22b208e455567f75e6e12e29b95855a6aea316bd1d6113bf47a04cf5a
|
||||
SHA512 (Bottleneck-1.3.2.tar.gz) = 78f1a42c9429783c08de22e3c1815e8e8267a633323b7fd520b120ff21a31f9489717a1ca45b81d0b808aa48d0f17fd08b8018be48d8f78bea5f1fbd17d762d1
|
||||
|
||||
Reference in New Issue
Block a user