Blame SPECS/python-Bottleneck.spec

1531d2
%global upname Bottleneck
1531d2
1531d2
Name:		python-%{upname}
1531d2
Version:	1.2.1
1531d2
Release:	17%{?dist}
1531d2
Summary:	Collection of fast NumPy array functions written in Cython
1531d2
1531d2
License:	BSD
1531d2
URL:		https://pypi.org/project/Bottleneck/
1531d2
Source0:	https://files.pythonhosted.org/packages/source/B/%{upname}/%{upname}-%{version}.tar.gz
1531d2
1531d2
BuildRequires:	gcc
1531d2
1531d2
%description
1531d2
%{name} is a collection of fast NumPy array functions
1531d2
written in Cython.
1531d2
1531d2
1531d2
%package doc
1531d2
Summary:	Documentation files for %{name}
1531d2
1531d2
BuildArch:	noarch
1531d2
1531d2
%description doc
1531d2
This package contains the HTML-docs for %{name}.
1531d2
1531d2
1531d2
%package -n python3-%{upname}
1531d2
Summary:	Collection of fast NumPy array functions written in Cython
1531d2
1531d2
BuildRequires:	python3-devel
1531d2
BuildRequires:	python3-nose
1531d2
BuildRequires:	python3-numpy
1531d2
#BuildRequires:	python3-numpydoc
1531d2
BuildRequires:	python3-scipy
1531d2
BuildRequires:	python3-setuptools
1531d2
BuildRequires:	python3-sphinx
1531d2
1531d2
Requires:	python3-numpy%{?_isa}
1531d2
Requires:	python3-scipy%{?_isa}
1531d2
1531d2
%{?python_provide:%python_provide python3-%{upname}}
1531d2
1531d2
%description -n python3-%{upname}
1531d2
python3-%{upname} is a collection of fast NumPy array functions
1531d2
written in Cython.
1531d2
1531d2
1531d2
%prep
1531d2
%autosetup -n %{upname}-%{version} -p 1
1531d2
%{__rm} -fr .egg* *.egg*
1531d2
1531d2
# use numpydoc from the package instead
1531d2
%{__rm} -f doc/sphinxext/numpydoc.py*
1531d2
sed -i '/numpydoc/d' doc/source/conf.py
1531d2
1531d2
# Python 2 remark
1531d2
%{__sed} -i 's/fid = file(/fid = open(/' doc/source/conf.py
1531d2
1531d2
%build
1531d2
%py3_build
1531d2
1531d2
1531d2
%install
1531d2
%py3_install
1531d2
1531d2
# clean unneeded stuff
1531d2
%{__rm} -rf %{buildroot}%{python3_sitearch}/bottleneck/src		\
1531d2
	%{buildroot}%{python3_sitearch}/bottleneck/LICENSE
1531d2
1531d2
%{_fixperms} %{buildroot}/*
1531d2
1531d2
# Move installed files to temporary location.
1531d2
%{__mkdir} -p tmp_inst
1531d2
%{__cp} -fpr %{buildroot}/* tmp_inst
1531d2
1531d2
# Build the autodocs.
1531d2
export PYTHONPATH="$(/bin/pwd)/tmp_inst/%{python3_sitearch}"
1531d2
%{__mkdir} -p doc/source/_static
1531d2
%{_bindir}/sphinx-build -b html doc/source doc/html
1531d2
unset PYTHONPATH
1531d2
1531d2
# Clean unneeded stuff from docs.
1531d2
%{__rm} -rf doc/html/{.buildinfo,.doctrees}
1531d2
1531d2
1531d2
%check
1531d2
pushd tmp_inst/%{python3_sitearch}
1531d2
%{_bindir}/nosetests-%{python3_version} -vv
1531d2
popd
1531d2
1531d2
1531d2
%files doc
1531d2
%license bottleneck/LICENSE
1531d2
%doc README* RELEASE* doc/html
1531d2
1531d2
1531d2
%files -n python3-%{upname}
1531d2
%license bottleneck/LICENSE
1531d2
%doc README* RELEASE*
1531d2
%{python3_sitearch}/bottleneck
1531d2
%{python3_sitearch}/%{upname}-%{version}-py%{python3_version}.egg-info
1531d2
1531d2
1531d2
%changelog
1531d2
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-17
1531d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1531d2
1531d2
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-16
1531d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1531d2
1531d2
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-15
1531d2
- Rebuilt for Python 3.9
1531d2
1531d2
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-14
1531d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1531d2
1531d2
* Fri Oct  4 2019 Orion Poplawski <orion@nwra.com> - 1.2.1-13
1531d2
- Fix URL
1531d2
1531d2
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-12
1531d2
- Rebuilt for Python 3.8.0rc1 (#1748018)
1531d2
1531d2
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-11
1531d2
- Rebuilt for Python 3.8
1531d2
1531d2
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-10
1531d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1531d2
1531d2
* Fri Jun 28 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-9
1531d2
- Subpackage python2-Bottleneck has been removed
1531d2
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
1531d2
1531d2
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-8
1531d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1531d2
1531d2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-7
1531d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1531d2
1531d2
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-6
1531d2
- Rebuilt for Python 3.7
1531d2
- Use numpydoc from our package to fix FTBFS (#1594555)
1531d2
1531d2
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.1-5
1531d2
- Update Python 2 dependency declarations to new packaging standards
1531d2
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
1531d2
1531d2
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-4
1531d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1531d2
1531d2
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
1531d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1531d2
1531d2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
1531d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1531d2
1531d2
* Tue May 16 2017 Björn Esser <besser82@fedoraproject.org> - 1.2.1-1
1531d2
- Updated to new upstream release (rhbz#1451146)
1531d2
1531d2
* Sun Apr 09 2017 Björn Esser <besser82@fedoraproject.org> - 1.2.0-1
1531d2
- Updated to new upstream release (rhbz#1105817)
1531d2
- Updated spec-file to recent guidelines
1531d2
1531d2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-11
1531d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1531d2
1531d2
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-10
1531d2
- Rebuild for Python 3.6
1531d2
1531d2
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-9
1531d2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
1531d2
1531d2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-8
1531d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1531d2
1531d2
* Sun Nov 15 2015 Thomas Spura <tomspur@fedoraproject.org> - 0.6.0-7
1531d2
- Use new python macros and add python2 subpackage
1531d2
1531d2
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-6
1531d2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
1531d2
1531d2
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-5
1531d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1531d2
1531d2
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-4
1531d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
1531d2
1531d2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-3
1531d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1531d2
1531d2
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 0.6.0-2
1531d2
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
1531d2
1531d2
* Wed Aug 21 2013 Björn Esser <bjoern.esser@gmail.com> - 0.6.0-1
1531d2
- Initial rpm release (#999563)