1
0

Accepting request 306667 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/306667
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numexpr?expand=0&rev=3
This commit is contained in:
Stephan Kulow
2015-05-15 05:43:52 +00:00
committed by Git OBS Bridge
parent ee0eb1187e
commit 1eff0ae095
4 changed files with 33 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-numexpr
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
@@ -11,13 +11,14 @@
# 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/
#
%define modname numexpr
Name: python-%{modname}
Version: 2.4
Version: 2.4.3
Release: 0
Url: https://github.com/pydata/numexpr/
Summary: Fast numerical expression evaluator for NumPy
@@ -35,7 +36,6 @@ Requires: python-numpy >= 1.6
Requires: python(abi) >= %{py_ver}
%endif
%description
Numexpr is a fast numerical expression evaluator for NumPy. With it,
expressions that operate on arrays (like "3*a+4*b") are accelerated
@@ -43,16 +43,14 @@ and use less memory than doing the same calculation in Python.
%prep
%setup -q -n %{modname}-%{version}
# remove unwanted shebang
sed -i '/^#!/ d' numexpr/cpuinfo.py
%build
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
chmod a+x %{buildroot}%{python_sitearch}/%{modname}/cpuinfo.py
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)