Accepting request 610271 from devel:languages:python

- Fix dependencies to match reality
- Add more items to make python2 build

OBS-URL: https://build.opensuse.org/request/show/610271
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numba?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2018-05-29 08:29:51 +00:00 committed by Git OBS Bridge
parent a096cdd2c7
commit 641b257ba2
2 changed files with 27 additions and 5 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri May 18 08:06:59 UTC 2018 - tchvatal@suse.com
- Fix dependencies to match reality
- Add more items to make python2 build
------------------------------------------------------------------- -------------------------------------------------------------------
Sat May 12 16:21:24 UTC 2018 - arun@gmx.de Sat May 12 16:21:24 UTC 2018 - arun@gmx.de

View File

@ -17,7 +17,6 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without tests
Name: python-numba Name: python-numba
Version: 0.38.0 Version: 0.38.0
Release: 0 Release: 0
@ -27,16 +26,25 @@ Group: Development/Languages/Python
URL: http://numba.github.com URL: http://numba.github.com
Source: https://files.pythonhosted.org/packages/source/n/numba/numba-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/n/numba/numba-%{version}.tar.gz
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module llvmlite >= 0.22} BuildRequires: %{python_module llvmlite >= 0.23}
BuildRequires: %{python_module numpy-devel >= 1.9} BuildRequires: %{python_module numpy-devel >= 1.10}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module scipy >= 0.16}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-llvmlite >= 0.22 BuildRequires: python2-funcsigs
Requires: python-numpy >= 1.9 BuildRequires: python2-singledispatch
Requires: python-llvmlite >= 0.23
Requires: python-numpy >= 1.10
Requires: python-scipy >= 0.16
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
%ifpython2
Requires: python2-funcsigs
Requires: python2-singledispatch
%endif
%python_subpackages %python_subpackages
%description %description
@ -80,6 +88,14 @@ sed -i '1{\@^#!%{_bindir}/env python@d}' numba/appdirs.py
%python_clone -a %{buildroot}%{_bindir}/numba %python_clone -a %{buildroot}%{_bindir}/numba
%python_clone -a %{buildroot}%{_bindir}/pycc %python_clone -a %{buildroot}%{_bindir}/pycc
%check
# Sadly needs 3 hours to finish in OBS run localy when updating!
#%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
#pushd $PYTHONPATH
#$python -Wd -m pytest numba/tests -v -rs
#popd
#}
%post %post
%{python_install_alternative numba pycc} %{python_install_alternative numba pycc}