Compare commits
27 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5affe3a623 | |||
| 49a8bbe257 | |||
| e160ed5e8e | |||
| 4d35f4de84 | |||
| 1816070f6c | |||
| 45733e4010 | |||
| e138800959 | |||
| cc92459849 | |||
| 3ae40abe2d | |||
| 4727e85324 | |||
| db9b831856 | |||
| 5f970dc7e3 | |||
| 3f0567d665 | |||
| 10d33a1796 | |||
| 882880ed80 | |||
| c5cc7ffabd | |||
| 9704d69fcb | |||
| dba59075a1 | |||
| c27c5b98ec | |||
| 2b9fa2d841 | |||
| ca8b848bd7 | |||
| 04cbee2756 | |||
| 11f556feb1 | |||
| 00b6a22e05 | |||
| c10bb6f7b7 | |||
| 5ac451a602 | |||
| d1cf3e2a83 |
+115
-71
@@ -1,30 +1,15 @@
|
|||||||
%global __provides_exclude_from ^%{python_sitearch}/.*\\.so
|
|
||||||
%global upname Bottleneck
|
%global upname Bottleneck
|
||||||
|
|
||||||
Name: python-%{upname}
|
Name: python-%{upname}
|
||||||
Version: 0.6.0
|
Version: 1.2.1
|
||||||
Release: 4%{?dist}
|
Release: 13%{?dist}
|
||||||
Summary: Collection of fast NumPy array functions written in Cython
|
Summary: Collection of fast NumPy array functions written in Cython
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://berkeleyanalytics.com/bottleneck
|
URL: https://pypi.org/project/Bottleneck/
|
||||||
Source0: https://pypi.python.org/packages/source/B/%{upname}/%{upname}-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/B/%{upname}/%{upname}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: numpy
|
BuildRequires: gcc
|
||||||
BuildRequires: python-nose
|
|
||||||
%{?!fc18:BuildRequires: python-numpydoc}
|
|
||||||
BuildRequires: python-setuptools
|
|
||||||
BuildRequires: python-sphinx
|
|
||||||
BuildRequires: python2-devel
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-nose
|
|
||||||
BuildRequires: python3-numpy
|
|
||||||
BuildRequires: python3-scipy
|
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
BuildRequires: scipy
|
|
||||||
|
|
||||||
Requires: numpy%{?_isa}
|
|
||||||
Requires: scipy%{?_isa}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{name} is a collection of fast NumPy array functions
|
%{name} is a collection of fast NumPy array functions
|
||||||
@@ -35,7 +20,6 @@ written in Cython.
|
|||||||
Summary: Documentation files for %{name}
|
Summary: Documentation files for %{name}
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Provides: python3-%{upname}-doc = %{version}-%{release}
|
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
This package contains the HTML-docs for %{name}.
|
This package contains the HTML-docs for %{name}.
|
||||||
@@ -44,87 +28,147 @@ This package contains the HTML-docs for %{name}.
|
|||||||
%package -n python3-%{upname}
|
%package -n python3-%{upname}
|
||||||
Summary: Collection of fast NumPy array functions written in Cython
|
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-numpy%{?_isa}
|
||||||
Requires: python3-scipy%{?_isa}
|
Requires: python3-scipy%{?_isa}
|
||||||
|
|
||||||
|
%{?python_provide:%python_provide python3-%{upname}}
|
||||||
|
|
||||||
%description -n python3-%{upname}
|
%description -n python3-%{upname}
|
||||||
python3-%{upname} is a collection of fast NumPy array functions
|
python3-%{upname} is a collection of fast NumPy array functions
|
||||||
written in Cython.
|
written in Cython.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn %{upname}-%{version}
|
%autosetup -n %{upname}-%{version} -p 1
|
||||||
rm -rf %{py3dir}
|
%{__rm} -fr .egg* *.egg*
|
||||||
cp -a . %{py3dir}
|
|
||||||
|
|
||||||
|
# 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
|
%build
|
||||||
# export compiler-flags
|
%py3_build
|
||||||
%configure ||:
|
|
||||||
|
|
||||||
# build
|
|
||||||
%{__python} setup.py build
|
|
||||||
pushd %{py3dir}
|
|
||||||
%{__python3} setup.py build
|
|
||||||
popd
|
|
||||||
|
|
||||||
# build autodocs
|
|
||||||
export PYTHONPATH="`pwd`/`find . -depth -type d -name lib.linux*`"
|
|
||||||
pushd doc
|
|
||||||
mkdir -p source/_static
|
|
||||||
make html
|
|
||||||
|
|
||||||
# clean unneeded stuff from docs
|
|
||||||
rm -rf build/html/.buildinfo \
|
|
||||||
build/html/_sources
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python} setup.py install -O1 --skip-build --root `pwd`/test_install
|
%py3_install
|
||||||
|
|
||||||
# clean unneeded stuff
|
# clean unneeded stuff
|
||||||
rm -rf test_install/%{python_sitearch}/bottleneck/src \
|
%{__rm} -rf %{buildroot}%{python3_sitearch}/bottleneck/src \
|
||||||
test_install/%{python_sitearch}/bottleneck/LICENSE
|
%{buildroot}%{python3_sitearch}/bottleneck/LICENSE
|
||||||
|
|
||||||
# install into buildroot
|
|
||||||
cp -a test_install/* %{buildroot}
|
|
||||||
|
|
||||||
pushd %{py3dir}
|
|
||||||
%{__python3} setup.py install -O1 --skip-build --root `pwd`/test_install
|
|
||||||
|
|
||||||
# clean unneeded stuff
|
|
||||||
rm -rf test_install/%{python3_sitearch}/bottleneck/src \
|
|
||||||
test_install/%{python3_sitearch}/bottleneck/LICENSE
|
|
||||||
|
|
||||||
# install into buildroot
|
|
||||||
cp -a test_install/* %{buildroot}
|
|
||||||
popd
|
|
||||||
|
|
||||||
%{_fixperms} %{buildroot}/*
|
%{_fixperms} %{buildroot}/*
|
||||||
|
|
||||||
|
# Move installed files to temporary location.
|
||||||
|
%{__mkdir} -p tmp_inst
|
||||||
|
%{__cp} -fpr %{buildroot}/* tmp_inst
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# Clean unneeded stuff from docs.
|
||||||
|
%{__rm} -rf doc/html/{.buildinfo,.doctrees}
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
pushd `find . -depth -type d -name lib.linux*`
|
pushd tmp_inst/%{python3_sitearch}
|
||||||
%{__python} -c 'import bottleneck as bn; bn.test()'
|
%{_bindir}/nosetests-%{python3_version} -vv
|
||||||
popd
|
|
||||||
pushd `find %{py3dir} -depth -type d -name lib.linux*`
|
|
||||||
%{__python3} -c 'import bottleneck as bn; bn.test()'
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
%files
|
|
||||||
%doc bottleneck/LICENSE
|
|
||||||
%{python_sitearch}/*
|
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc README* RELEASE* bottleneck/LICENSE doc/build/html
|
%license bottleneck/LICENSE
|
||||||
|
%doc README* RELEASE* doc/html
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-%{upname}
|
%files -n python3-%{upname}
|
||||||
%doc bottleneck/LICENSE
|
%license bottleneck/LICENSE
|
||||||
%{python3_sitearch}/*
|
%doc README* RELEASE*
|
||||||
|
%{python3_sitearch}/bottleneck
|
||||||
|
%{python3_sitearch}/%{upname}-%{version}-py%{python3_version}.egg-info
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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)
|
||||||
|
|
||||||
|
* Sun Apr 09 2017 Björn Esser <besser82@fedoraproject.org> - 1.2.0-1
|
||||||
|
- Updated to new upstream release (rhbz#1105817)
|
||||||
|
- Updated spec-file to recent guidelines
|
||||||
|
|
||||||
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-11
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-10
|
||||||
|
- Rebuild for Python 3.6
|
||||||
|
|
||||||
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-9
|
||||||
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
||||||
|
|
||||||
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Nov 15 2015 Thomas Spura <tomspur@fedoraproject.org> - 0.6.0-7
|
||||||
|
- Use new python macros and add python2 subpackage
|
||||||
|
|
||||||
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
||||||
|
|
||||||
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-4
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user