Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3584ed06de | |||
| fab35c0efd |
+27
-13
@@ -1,9 +1,13 @@
|
|||||||
%global __provides_exclude_from ^%{python_sitearch}/.*\\.so
|
%global __provides_exclude_from ^%{python_sitearch}/.*\\.so
|
||||||
%global upname Bottleneck
|
%global upname Bottleneck
|
||||||
|
|
||||||
|
%if 0%{?fedora}
|
||||||
|
%global with_python3
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: python-%{upname}
|
Name: python-%{upname}
|
||||||
Version: 0.6.0
|
Version: 0.7.0
|
||||||
Release: 5%{?dist}
|
Release: 1%{?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
|
||||||
@@ -12,15 +16,17 @@ Source0: https://pypi.python.org/packages/source/B/%{upname}/%{upname}-%{version
|
|||||||
|
|
||||||
BuildRequires: numpy
|
BuildRequires: numpy
|
||||||
BuildRequires: python-nose
|
BuildRequires: python-nose
|
||||||
%{?!fc18:BuildRequires: python-numpydoc}
|
BuildRequires: python-numpydoc
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
BuildRequires: python-sphinx
|
BuildRequires: python-sphinx
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
|
%if 0%{?with_python3}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-nose
|
BuildRequires: python3-nose
|
||||||
BuildRequires: python3-numpy
|
BuildRequires: python3-numpy
|
||||||
BuildRequires: python3-scipy
|
BuildRequires: python3-scipy
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
%endif
|
||||||
BuildRequires: scipy
|
BuildRequires: scipy
|
||||||
|
|
||||||
Requires: numpy%{?_isa}
|
Requires: numpy%{?_isa}
|
||||||
@@ -35,12 +41,15 @@ written in Cython.
|
|||||||
Summary: Documentation files for %{name}
|
Summary: Documentation files for %{name}
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if 0%{?with_python3}
|
||||||
Provides: python3-%{upname}-doc = %{version}-%{release}
|
Provides: python3-%{upname}-doc = %{version}-%{release}
|
||||||
|
%endif
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
This package contains the HTML-docs for %{name}.
|
This package contains the HTML-docs for %{name}.
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?with_python3}
|
||||||
%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
|
||||||
|
|
||||||
@@ -50,12 +59,15 @@ Requires: python3-scipy%{?_isa}
|
|||||||
%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.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn %{upname}-%{version}
|
%setup -qn %{upname}-%{version}
|
||||||
|
%if 0%{?with_python3}
|
||||||
rm -rf %{py3dir}
|
rm -rf %{py3dir}
|
||||||
cp -a . %{py3dir}
|
cp -a . %{py3dir}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@@ -64,9 +76,11 @@ cp -a . %{py3dir}
|
|||||||
|
|
||||||
# build
|
# build
|
||||||
%{__python} setup.py build
|
%{__python} setup.py build
|
||||||
|
%if 0%{?with_python3}
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
%{__python3} setup.py build
|
%{__python3} setup.py build
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
# build autodocs
|
# build autodocs
|
||||||
export PYTHONPATH="`pwd`/`find . -depth -type d -name lib.linux*`"
|
export PYTHONPATH="`pwd`/`find . -depth -type d -name lib.linux*`"
|
||||||
@@ -89,6 +103,7 @@ rm -rf test_install/%{python_sitearch}/bottleneck/src \
|
|||||||
# install into buildroot
|
# install into buildroot
|
||||||
cp -a test_install/* %{buildroot}
|
cp -a test_install/* %{buildroot}
|
||||||
|
|
||||||
|
%if 0%{?with_python3}
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
%{__python3} setup.py install -O1 --skip-build --root `pwd`/test_install
|
%{__python3} setup.py install -O1 --skip-build --root `pwd`/test_install
|
||||||
|
|
||||||
@@ -99,6 +114,7 @@ rm -rf test_install/%{python3_sitearch}/bottleneck/src \
|
|||||||
# install into buildroot
|
# install into buildroot
|
||||||
cp -a test_install/* %{buildroot}
|
cp -a test_install/* %{buildroot}
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
%{_fixperms} %{buildroot}/*
|
%{_fixperms} %{buildroot}/*
|
||||||
|
|
||||||
@@ -107,9 +123,11 @@ popd
|
|||||||
pushd `find . -depth -type d -name lib.linux*`
|
pushd `find . -depth -type d -name lib.linux*`
|
||||||
%{__python} -c 'import bottleneck as bn; bn.test()'
|
%{__python} -c 'import bottleneck as bn; bn.test()'
|
||||||
popd
|
popd
|
||||||
|
%if 0%{?with_python3}
|
||||||
pushd `find %{py3dir} -depth -type d -name lib.linux*`
|
pushd `find %{py3dir} -depth -type d -name lib.linux*`
|
||||||
%{__python3} -c 'import bottleneck as bn; bn.test()'
|
%{__python3} -c 'import bottleneck as bn; bn.test()'
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@@ -119,23 +137,19 @@ popd
|
|||||||
%files doc
|
%files doc
|
||||||
%doc README* RELEASE* bottleneck/LICENSE doc/build/html
|
%doc README* RELEASE* bottleneck/LICENSE doc/build/html
|
||||||
|
|
||||||
|
%if 0%{?with_python3}
|
||||||
%files -n python3-%{upname}
|
%files -n python3-%{upname}
|
||||||
%doc bottleneck/LICENSE
|
%doc bottleneck/LICENSE
|
||||||
%{python3_sitearch}/*
|
%{python3_sitearch}/*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-5
|
* Wed Jun 24 2015 Orion Poplawski <orion@cora.nwra.com> - 0.7.0-1
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
- Update to 0.7.0
|
||||||
|
|
||||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-4
|
* Wed Jun 24 2015 Orion Poplawski <orion@cora.nwra.com> - 0.6.0-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
- No python3 in EPEL
|
||||||
|
|
||||||
* 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 Aug 21 2013 Björn Esser <bjoern.esser@gmail.com> - 0.6.0-1
|
* Wed Aug 21 2013 Björn Esser <bjoern.esser@gmail.com> - 0.6.0-1
|
||||||
- Initial rpm release (#999563)
|
- Initial rpm release (#999563)
|
||||||
|
|||||||
Reference in New Issue
Block a user