0ef78f8
Summary:        Fast numerical array expression evaluator for Python and NumPy
0546a72
Name:           python-numexpr
0546a72
Version:        2.7.0
f529669
Release:        3%{?dist}
357b9c4
URL:            https://github.com/pydata/numexpr
0546a72
Source0:        https://github.com/pydata/numexpr/archive/v%{version}/numexpr-%{version}.tar.gz
0546a72
Patch0001:      https://github.com/pydata/numexpr/commit/22154dc22a9815194b2b28a24f31d5e04dac3ade.patch
0546a72
License:        MIT
0ef78f8
4678a69
BuildRequires:  gcc-c++
0ef78f8
BuildRequires:  python%{python3_pkgversion}-devel
0ef78f8
BuildRequires:  python%{python3_pkgversion}-numpy
0ef78f8
BuildRequires:  python%{python3_pkgversion}-setuptools
Thibault North 18bd92e
0546a72
%global _description %{expand:
0546a72
The numexpr package evaluates multiple-operator array expressions many
0546a72
times faster than NumPy can. It accepts the expression as a string,
0546a72
analyzes it, rewrites it more efficiently, and compiles it to faster
0546a72
Python code on the fly. It’s the next best thing to writing the
0546a72
expression in C and compiling it with a specialized just-in-time (JIT)
0546a72
compiler, i.e. it does not require a compiler at runtime.}
Thibault North 18bd92e
28f7853
%description %_description
28f7853
0546a72
%package -n python%{python3_pkgversion}-numexpr
0ef78f8
Summary:        %{summary}
0ef78f8
Requires:       python%{python3_pkgversion}-numpy >= 1.6
0546a72
%{?python_provide:%python_provide python%{python3_pkgversion}-numexpr}
fa34b4d
0546a72
%description -n python%{python3_pkgversion}-numexpr %_description
fa34b4d
fa34b4d
This is the version for Python 3.
fa34b4d
Thibault North 18bd92e
%prep
0546a72
%autosetup -n numexpr-%{version} -p1
Thibault North 18bd92e
Thibault North 18bd92e
%build
28f7853
%py3_build
Thibault North 18bd92e
fa34b4d
%install
28f7853
%py3_install
0546a72
chmod 0755 %{buildroot}%{python3_sitearch}/numexpr/cpuinfo.py
0546a72
sed -i "1s|/usr/bin/env python$|%{__python3}|" %{buildroot}%{python3_sitearch}/numexpr/cpuinfo.py
Orion Poplawski e97c92d
Orion Poplawski e97c92d
%check
Orion Poplawski e97c92d
pushd build/lib.linux*%{python3_version}
0546a72
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -c 'import numexpr, sys; sys.exit(not numexpr.test().wasSuccessful())'
fa34b4d
popd
fa34b4d
0546a72
%files -n python%{python3_pkgversion}-numexpr
3b2bd6f
%license LICENSE.txt
3b2bd6f
%doc ANNOUNCE.rst RELEASE_NOTES.rst README.rst
fa34b4d
%{python3_sitearch}/numexpr/
fa34b4d
%{python3_sitearch}/numexpr-%{version}-py*.egg-info
fa34b4d
Thibault North 18bd92e
%changelog
f529669
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.7.0-3
f529669
- Rebuilt for Python 3.8.0rc1 (#1748018)
f529669
0b0a1e8
* Sun Aug 18 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.7.0-2
0b0a1e8
- Rebuilt for Python 3.8
0b0a1e8
0546a72
* Sat Aug 17 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.7.0-1
0546a72
- Update to latest version (#1614993)
0546a72
- Various modernization to the spec file. Actually fail %%check if the test
0546a72
  suite fails.
0546a72
ed7aea4
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.6-4
ed7aea4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ed7aea4
9741131
* Mon Jul 08 2019 Miro Hrončok <mhroncok@redhat.com> - 2.6.6-3
9741131
- Subpackage python2-numexpr has been removed
9741131
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
9741131
8835414
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.6-2
8835414
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8835414
77b22c4
* Thu Jul 19 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.6.6-1
77b22c4
- Update to latest version (#1491485)
77b22c4
- Update spec file, use versioned python macros
77b22c4
61ea596
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-11
61ea596
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
61ea596
a937946
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.6.1-10
a937946
- Rebuilt for Python 3.7
a937946
f8fbbe8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-9
f8fbbe8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f8fbbe8
0e3a3d6
* Tue Oct 24 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 2.6.1-8
0e3a3d6
- Fix ELF stripping
0e3a3d6
32f3287
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-7
32f3287
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
32f3287
2e05fa0
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-6
2e05fa0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2e05fa0
5480c98
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-5
5480c98
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5480c98
52dacea
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 2.6.1-4
52dacea
- Rebuild for Python 3.6
52dacea
572bb39
* Sat Jul 30 2016 Petr Viktorin <pviktori@redhat.com> - 2.6.1-3
572bb39
- Make shebang of cpuinfo.py refer to specific Python version (#1361799)
572bb39
5f98055
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.1-2
5f98055
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
5f98055
357b9c4
* Tue Jul 19 2016 Thibault North <tnorth@fedoraproject.org> - 2.6.1-1
357b9c4
- Update to 2.6.1
357b9c4
- Fix project URL
357b9c4
- Fix cpuinfo permission in py3 package
357b9c4
7b2f848
* Wed Jun  1 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.6.0-1
7b2f848
- Update to latest version
7b2f848
Orion Poplawski e97c92d
* Tue May 17 2016 Orion Poplawski <orion@cora.nwra.com> - 2.5.2-2
Orion Poplawski e97c92d
- Update provides filter
Orion Poplawski e97c92d
- Use %%python3_pkgversion for EPEL7 compatibility
Orion Poplawski e97c92d
28f7853
* Tue Apr 12 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.5.2-1
28f7853
- Update to latest version (#1305251)
28f7853
28f7853
* Sat Feb  6 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.5-1
56014cd
- Update to latest version
56014cd
b23462e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.6-3
b23462e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b23462e
2762072
* Wed Nov 18 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.4.6-2
2762072
- Create python2 subpackage
2762072
3b2bd6f
* Sat Nov 14 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.4.6-1
3b2bd6f
- Update to latest version
3b2bd6f
0b2d526
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-7
0b2d526
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
0b2d526
e6af5ea
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-6
e6af5ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e6af5ea
94cbd1f
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.3-5
94cbd1f
- Rebuilt for GCC 5 C++11 ABI change
94cbd1f
6700dd9
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-4
6700dd9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6700dd9
e733cc9
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-3
e733cc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e733cc9
1bcdc70
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 2.3-2
1bcdc70
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
1bcdc70
f0ca6b2
* Tue Jan 28 2014 Thibault North <tnorth@fedoraproject.org> -2.3-1
f0ca6b2
- Update to new release 2.3
f0ca6b2
b3b30ff
* Fri Jan 17 2014 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2.2-2
b3b30ff
- Move requirements to the proper package (#1054683)
b3b30ff
6cf692a
* Sun Sep 29 2013 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2.2-1
b3b30ff
- Update to 2.2.2 (#1013130)
6cf692a
1cfb070
* Mon Sep 09 2013 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2.1-1
1cfb070
- Update to 2.2.1
1cfb070
f6029d1
* Thu Sep 05 2013 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2-1
f6029d1
- Update to 2.2
fa34b4d
- Add python3-numexpr package
f6029d1
52a7038
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-4
52a7038
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
52a7038
4fbd2b9
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-3
4fbd2b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4fbd2b9
e97a261
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-2
e97a261
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e97a261
6125b57
* Sun Jan 8 2012  Thibault North <tnorth@fedoraproject.org> - 2.0.1-1
6125b57
- Update to 2.0.1
6125b57
a285d15
* Sun Nov 27 2011 Thibault North <tnorth@fedoraproject.org> - 2.0-1
a285d15
- Update to 2.0
a285d15
Thibault North 18bd92e
* Sun Oct 30 2011 Thibault North <tnorth@fedoraproject.org> - 1.4.2-2
Thibault North 18bd92e
- Add check section
Thibault North 18bd92e
- Fix permissions and remove useless sections
Thibault North 18bd92e
Thibault North 18bd92e
* Thu Oct 20 2011 Thibault North <tnorth@fedoraproject.org> - 1.4.2-1
Thibault North 18bd92e
- Updated to 1.4.2
Thibault North 18bd92e
Thibault North 18bd92e
* Fri Apr 29 2011 Thibault North <tnorth@fedoraproject.org> - 1.4.1-3
Thibault North 18bd92e
- Fix buildroot issue
Thibault North 18bd92e
Thibault North 18bd92e
* Tue Dec 21 2010 Thibault North <tnorth@fedoraproject.org> - 1.4.1-2
Thibault North 18bd92e
- Fixes for the review process
Thibault North 18bd92e
1cfb070
* Fri Nov 05 2010 Thibault North <tnorth@fedoraproject.org> - 1.4.1-1
Thibault North 18bd92e
- Initial package based on Mandriva's one