Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3584ed06de | ||
|
|
fab35c0efd |
@@ -1,13 +1,36 @@
|
||||
%global __provides_exclude_from ^%{python_sitearch}/.*\\.so
|
||||
%global upname Bottleneck
|
||||
|
||||
%if 0%{?fedora}
|
||||
%global with_python3
|
||||
%endif
|
||||
|
||||
Name: python-%{upname}
|
||||
Version: 1.2.1
|
||||
Version: 0.7.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Collection of fast NumPy array functions written in Cython
|
||||
|
||||
License: BSD
|
||||
URL: http://berkeleyanalytics.com/bottleneck
|
||||
Source0: https://files.pythonhosted.org/packages/source/B/%{upname}/%{upname}-%{version}.tar.gz
|
||||
Source0: https://pypi.python.org/packages/source/B/%{upname}/%{upname}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: numpy
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-numpydoc
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-sphinx
|
||||
BuildRequires: python2-devel
|
||||
%if 0%{?with_python3}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-nose
|
||||
BuildRequires: python3-numpy
|
||||
BuildRequires: python3-scipy
|
||||
BuildRequires: python3-setuptools
|
||||
%endif
|
||||
BuildRequires: scipy
|
||||
|
||||
Requires: numpy%{?_isa}
|
||||
Requires: scipy%{?_isa}
|
||||
|
||||
%description
|
||||
%{name} is a collection of fast NumPy array functions
|
||||
@@ -18,151 +41,115 @@ written in Cython.
|
||||
Summary: Documentation files for %{name}
|
||||
|
||||
BuildArch: noarch
|
||||
%if 0%{?with_python3}
|
||||
Provides: python3-%{upname}-doc = %{version}-%{release}
|
||||
%endif
|
||||
|
||||
%description doc
|
||||
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.
|
||||
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%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-scipy
|
||||
BuildRequires: python3-setuptools
|
||||
|
||||
Requires: python3-numpy%{?_isa}
|
||||
Requires: python3-scipy%{?_isa}
|
||||
|
||||
%{?python_provide:%python_provide python2-%{upname}}
|
||||
|
||||
%description -n python3-%{upname}
|
||||
python3-%{upname} is a collection of fast NumPy array functions
|
||||
written in Cython.
|
||||
%endif
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{upname}-%{version} -p 1
|
||||
%{__rm} -fr .egg* *.egg*
|
||||
%setup -qn %{upname}-%{version}
|
||||
%if 0%{?with_python3}
|
||||
rm -rf %{py3dir}
|
||||
cp -a . %{py3dir}
|
||||
%endif
|
||||
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
# export compiler-flags
|
||||
%configure ||:
|
||||
|
||||
# build
|
||||
%{__python} setup.py build
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3dir}
|
||||
%{__python3} setup.py build
|
||||
popd
|
||||
%endif
|
||||
|
||||
# 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
|
||||
%py2_install
|
||||
%py3_install
|
||||
%{__python} setup.py install -O1 --skip-build --root `pwd`/test_install
|
||||
|
||||
# clean unneeded stuff
|
||||
%{__rm} -rf %{buildroot}%{python2_sitearch}/bottleneck/src \
|
||||
%{buildroot}%{python2_sitearch}/bottleneck/LICENSE \
|
||||
%{buildroot}%{python3_sitearch}/bottleneck/src \
|
||||
%{buildroot}%{python3_sitearch}/bottleneck/LICENSE
|
||||
rm -rf test_install/%{python_sitearch}/bottleneck/src \
|
||||
test_install/%{python_sitearch}/bottleneck/LICENSE
|
||||
|
||||
# install into buildroot
|
||||
cp -a test_install/* %{buildroot}
|
||||
|
||||
%if 0%{?with_python3}
|
||||
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
|
||||
%endif
|
||||
|
||||
%{_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/%{python2_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
|
||||
pushd tmp_inst/%{python2_sitearch}
|
||||
%{_bindir}/nosetests-%{python2_version} -vv
|
||||
pushd `find . -depth -type d -name lib.linux*`
|
||||
%{__python} -c 'import bottleneck as bn; bn.test()'
|
||||
popd
|
||||
pushd tmp_inst/%{python3_sitearch}
|
||||
%{_bindir}/nosetests-%{python3_version} -vv
|
||||
%if 0%{?with_python3}
|
||||
pushd `find %{py3dir} -depth -type d -name lib.linux*`
|
||||
%{__python3} -c 'import bottleneck as bn; bn.test()'
|
||||
popd
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%doc bottleneck/LICENSE
|
||||
%{python_sitearch}/*
|
||||
|
||||
%files doc
|
||||
%license bottleneck/LICENSE
|
||||
%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
|
||||
|
||||
%doc README* RELEASE* bottleneck/LICENSE doc/build/html
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%files -n python3-%{upname}
|
||||
%license bottleneck/LICENSE
|
||||
%doc README* RELEASE*
|
||||
%{python3_sitearch}/bottleneck
|
||||
%{python3_sitearch}/%{upname}-%{version}-py%{python3_version}.egg-info
|
||||
%doc bottleneck/LICENSE
|
||||
%{python3_sitearch}/*
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue May 16 2017 Björn Esser <besser82@fedoraproject.org> - 1.2.1-1
|
||||
- Updated to new upstream release (rhbz#1451146)
|
||||
* Wed Jun 24 2015 Orion Poplawski <orion@cora.nwra.com> - 0.7.0-1
|
||||
- Update to 0.7.0
|
||||
|
||||
* 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
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 0.6.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
||||
* Wed Jun 24 2015 Orion Poplawski <orion@cora.nwra.com> - 0.6.0-2
|
||||
- No python3 in EPEL
|
||||
|
||||
* Wed Aug 21 2013 Björn Esser <bjoern.esser@gmail.com> - 0.6.0-1
|
||||
- Initial rpm release (#999563)
|
||||
|
||||
Reference in New Issue
Block a user