File python3-numexpr.spec of Package python3-numexpr

#
# spec file for package python3-numexpr
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           python3-numexpr
Version:        2.4.4
Release:        0
Url:            https://github.com/pydata/numexpr
Summary:        Fast numerical expression evaluator for NumPy
License:        MIT
Group:          Development/Languages/Python
Source:         http://pypi.python.org/packages/source/n/numexpr/numexpr-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++
BuildRequires:  python3-devel
BuildRequires:  python3-numpy-devel >= 1.6
Requires:       python3-numpy >= 1.6

%description
Numexpr is a fast numerical expression evaluator for NumPy.  With it,
expressions that operate on arrays (like "3*a+4*b") are accelerated
and use less memory than doing the same calculation in Python.

%prep
%setup -q -n numexpr-%{version}

%build
CFLAGS="%{optflags} -fno-strict-aliasing" python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%defattr(-,root,root,-)
%doc ANNOUNCE.rst AUTHORS.txt LICENSE.txt README.rst RELEASE_NOTES.rst site.cfg.example
%{python3_sitearch}/numexpr/
%{python3_sitearch}/numexpr-%{version}-py%{py3_ver}.egg-info

%changelog
openSUSE Build Service is sponsored by