Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e0aa0006ae | ||
|
|
e160ed5e8e | ||
|
|
1816070f6c | ||
|
|
45733e4010 | ||
|
|
e138800959 | ||
|
|
cc92459849 | ||
|
|
3ae40abe2d | ||
|
|
4727e85324 | ||
|
|
db9b831856 | ||
|
|
5f970dc7e3 | ||
|
|
3f0567d665 | ||
|
|
10d33a1796 | ||
|
|
882880ed80 | ||
|
|
c5cc7ffabd | ||
|
|
9704d69fcb | ||
|
|
dba59075a1 |
@@ -2,13 +2,15 @@
|
||||
|
||||
Name: python-%{upname}
|
||||
Version: 1.2.1
|
||||
Release: 1%{?dist}
|
||||
Release: 14%{?dist}
|
||||
Summary: Collection of fast NumPy array functions written in Cython
|
||||
|
||||
License: BSD
|
||||
URL: http://berkeleyanalytics.com/bottleneck
|
||||
URL: https://pypi.org/project/Bottleneck/
|
||||
Source0: https://files.pythonhosted.org/packages/source/B/%{upname}/%{upname}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc
|
||||
|
||||
%description
|
||||
%{name} is a collection of fast NumPy array functions
|
||||
written in Cython.
|
||||
@@ -23,39 +25,21 @@ BuildArch: noarch
|
||||
This package contains the HTML-docs for %{name}.
|
||||
|
||||
|
||||
%package -n python2-%{upname}
|
||||
Summary: Collection of fast NumPy array functions written in Cython
|
||||
|
||||
BuildRequires: numpy
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-sphinx
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: scipy
|
||||
|
||||
Requires: numpy%{?_isa}
|
||||
Requires: scipy%{?_isa}
|
||||
|
||||
%{?python_provide:%python_provide python2-%{upname}}
|
||||
|
||||
%description -n python2-%{upname}
|
||||
python2-%{upname} is a collection of fast NumPy array functions
|
||||
written in Cython.
|
||||
|
||||
|
||||
%package -n python3-%{upname}
|
||||
Summary: Collection of fast NumPy array functions written in Cython
|
||||
|
||||
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 python2-%{upname}}
|
||||
%{?python_provide:%python_provide python3-%{upname}}
|
||||
|
||||
%description -n python3-%{upname}
|
||||
python3-%{upname} is a collection of fast NumPy array functions
|
||||
@@ -66,20 +50,21 @@ written in Cython.
|
||||
%autosetup -n %{upname}-%{version} -p 1
|
||||
%{__rm} -fr .egg* *.egg*
|
||||
|
||||
# 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
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
# clean unneeded stuff
|
||||
%{__rm} -rf %{buildroot}%{python2_sitearch}/bottleneck/src \
|
||||
%{buildroot}%{python2_sitearch}/bottleneck/LICENSE \
|
||||
%{buildroot}%{python3_sitearch}/bottleneck/src \
|
||||
%{__rm} -rf %{buildroot}%{python3_sitearch}/bottleneck/src \
|
||||
%{buildroot}%{python3_sitearch}/bottleneck/LICENSE
|
||||
|
||||
%{_fixperms} %{buildroot}/*
|
||||
@@ -89,7 +74,7 @@ written in Cython.
|
||||
%{__cp} -fpr %{buildroot}/* tmp_inst
|
||||
|
||||
# Build the autodocs.
|
||||
export PYTHONPATH="$(/bin/pwd)/tmp_inst/%{python2_sitearch}"
|
||||
export PYTHONPATH="$(/bin/pwd)/tmp_inst/%{python3_sitearch}"
|
||||
%{__mkdir} -p doc/source/_static
|
||||
%{_bindir}/sphinx-build -b html doc/source doc/html
|
||||
unset PYTHONPATH
|
||||
@@ -99,9 +84,6 @@ unset PYTHONPATH
|
||||
|
||||
|
||||
%check
|
||||
pushd tmp_inst/%{python2_sitearch}
|
||||
%{_bindir}/nosetests-%{python2_version} -vv
|
||||
popd
|
||||
pushd tmp_inst/%{python3_sitearch}
|
||||
%{_bindir}/nosetests-%{python3_version} -vv
|
||||
popd
|
||||
@@ -112,13 +94,6 @@ popd
|
||||
%doc README* RELEASE* doc/html
|
||||
|
||||
|
||||
%files -n python2-%{upname}
|
||||
%license bottleneck/LICENSE
|
||||
%doc README* RELEASE*
|
||||
%{python2_sitearch}/bottleneck
|
||||
%{python2_sitearch}/%{upname}-%{version}-py%{python2_version}.egg-info
|
||||
|
||||
|
||||
%files -n python3-%{upname}
|
||||
%license bottleneck/LICENSE
|
||||
%doc README* RELEASE*
|
||||
@@ -127,6 +102,48 @@ popd
|
||||
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
|
||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-12
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-11
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Fri Jun 28 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-9
|
||||
- Subpackage python2-Bottleneck has been removed
|
||||
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-6
|
||||
- Rebuilt for Python 3.7
|
||||
- Use numpydoc from our package to fix FTBFS (#1594555)
|
||||
|
||||
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.1-5
|
||||
- Update Python 2 dependency declarations to new packaging standards
|
||||
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Tue May 16 2017 Björn Esser <besser82@fedoraproject.org> - 1.2.1-1
|
||||
- Updated to new upstream release (rhbz#1451146)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user