## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Summary: Fast numerical array expression evaluator for Python and NumPy Name: python-numexpr Version: 2.8.5 Release: %autorelease URL: https://github.com/pydata/numexpr License: MIT Source: https://github.com/pydata/numexpr/archive/v%{version}/numexpr-%{version}.tar.gz Patch: 0002-Revert-Make-more-difficult-sanitize-of-the-expressio.patch Patch: 0003-Revert-Add-in-protections-against-call-to-eval-expre.patch Patch: 0004-Revert-Adding-tests-for-validate-and-noticed-that-re.patch Patch: 0005-Revert-Add-in-docstring-intro-for-validate.patch Patch: 0006-Revert-Add-a-validate-.-function-that-can-be-used-to.patch Patch: 0007-Use-r-to-avoid-warning-about-unknown-escapes.patch # https://github.com/pydata/numexpr/pull/489 Patch: 0008-Fix-necompiler.getArguments-on-Python-3.13.0b1.patch BuildRequires: gcc-c++ BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-numpy BuildRequires: python%{python3_pkgversion}-setuptools %global _description %{expand: The numexpr package evaluates multiple-operator array expressions many times faster than NumPy can. It accepts the expression as a string, analyzes it, rewrites it more efficiently, and compiles it to faster Python code on the fly. It’s the next best thing to writing the expression in C and compiling it with a specialized just-in-time (JIT) compiler, i.e. it does not require a compiler at runtime.} %description %_description %package -n python%{python3_pkgversion}-numexpr Summary: %{summary} Requires: python%{python3_pkgversion}-numpy >= 1.6 %{?python_provide:%python_provide python%{python3_pkgversion}-numexpr} %description -n python%{python3_pkgversion}-numexpr %_description %prep %autosetup -n numexpr-%{version} -p1 # Python 3.13+ has removed unittest.makeSuite() # Reported upstream: https://github.com/pydata/numexpr/issues/486 sed -i 's/unittest.makeSuite/unittest.defaultTestLoader.loadTestsFromTestCase/g' $(grep -rl makeSuite) %build %py3_build %install %py3_install chmod 0755 %{buildroot}%{python3_sitearch}/numexpr/cpuinfo.py sed -i "1s|/usr/bin/env python$|%{python3}|" %{buildroot}%{python3_sitearch}/numexpr/cpuinfo.py %check pushd build/lib.linux* %py3_test_envvars %python3 -c 'import numexpr, sys; sys.exit(not numexpr.test().wasSuccessful())' popd %files -n python%{python3_pkgversion}-numexpr %license LICENSE.txt %doc ANNOUNCE.rst RELEASE_NOTES.rst README.rst %{python3_sitearch}/numexpr/ %{python3_sitearch}/numexpr-%{version}-py*.egg-info %changelog ## START: Generated by rpmautospec * Thu May 30 2024 Karolina Surma - 2.8.5-5 - Fix compatibility with Python 3.13+ * Fri Jan 26 2024 Fedora Release Engineering - 2.8.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.8.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Aug 16 2023 Zbigniew Jędrzejewski-Szmek - 2.8.5-2 - Revert changes in 2.8.5 which causes problems in PyTables (#2231686). Upstream is still working on a fix, and it seems that this functionality needs more design work. This reverts all the commits related to validation of expressions. * Mon Aug 07 2023 Zbigniew Jędrzejewski-Szmek - 2.8.5-1 - Update to 2.8.5 * Fri Jul 21 2023 Fedora Release Engineering - 2.8.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 2.8.4-2 - Rebuilt for Python 3.12 * Sun Jan 22 2023 Orion Poplawski - 2.8.4-1 - Update to 2.8.4 * Fri Jan 20 2023 Fedora Release Engineering - 2.8.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 2.8.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 22 2022 Lumir Balhar - 2.8.1-3 - Fix build with the latest setuptools * Mon Jun 13 2022 Python Maint - 2.8.1-2 - Rebuilt for Python 3.11 * Fri Apr 22 2022 Zbigniew Jędrzejewski-Szmek - 2.8.1-1 - Version 2.8.1 (rhbz#1869949, rhbz#2061435) * Fri Jan 21 2022 Fedora Release Engineering - 2.7.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.7.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.7.1-6 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 2.7.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 2.7.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon May 25 2020 Miro Hrončok - 2.7.1-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 2.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Jan 5 2020 Zbigniew Jędrzejewski-Szmek - 2.7.1-1 - Update to latest version (#1787863) * Thu Oct 03 2019 Miro Hrončok - 2.7.0-3 - Rebuilt for Python 3.8.0rc1 (#1748018) * Sun Aug 18 2019 Zbigniew Jędrzejewski-Szmek - 2.7.0-2 - Rebuilt for Python 3.8 * Sat Aug 17 2019 Zbigniew Jędrzejewski-Szmek - 2.7.0-1 - Update to latest version (#1614993) - Various modernization to the spec file. Actually fail %%check if the test suite fails. * Fri Jul 26 2019 Fedora Release Engineering - 2.6.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jul 08 2019 Miro Hrončok - 2.6.6-3 - Subpackage python2-numexpr has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Feb 02 2019 Fedora Release Engineering - 2.6.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 19 2018 Zbigniew Jędrzejewski-Szmek - 2.6.6-1 - Update to latest version (#1491485) - Update spec file, use versioned python macros * Sat Jul 14 2018 Fedora Release Engineering - 2.6.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 2.6.1-10 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 2.6.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Oct 24 2017 Haïkel Guémar - 2.6.1-8 - Fix ELF stripping * Thu Aug 03 2017 Fedora Release Engineering - 2.6.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.6.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2.6.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Dec 13 2016 Stratakis Charalampos - 2.6.1-4 - Rebuild for Python 3.6 * Sat Jul 30 2016 Petr Viktorin - 2.6.1-3 - Make shebang of cpuinfo.py refer to specific Python version (#1361799) * Tue Jul 19 2016 Fedora Release Engineering - 2.6.1-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Tue Jul 19 2016 Thibault North - 2.6.1-1 - Update to 2.6.1 - Fix project URL - Fix cpuinfo permission in py3 package * Wed Jun 1 2016 Zbigniew Jędrzejewski-Szmek - 2.6.0-1 - Update to latest version * Tue May 17 2016 Orion Poplawski - 2.5.2-2 - Update provides filter - Use %%python3_pkgversion for EPEL7 compatibility * Tue Apr 12 2016 Zbigniew Jędrzejewski-Szmek - 2.5.2-1 - Update to latest version (#1305251) * Sat Feb 6 2016 Zbigniew Jędrzejewski-Szmek - 2.5-1 - Update to latest version * Thu Feb 04 2016 Fedora Release Engineering - 2.4.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Nov 18 2015 Zbigniew Jędrzejewski-Szmek - 2.4.6-2 - Create python2 subpackage * Sat Nov 14 2015 Zbigniew Jędrzejewski-Szmek - 2.4.6-1 - Update to latest version * Tue Nov 10 2015 Fedora Release Engineering - 2.3-7 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 2.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 2.3-5 - Rebuilt for GCC 5 C++11 ABI change * Sun Aug 17 2014 Fedora Release Engineering - 2.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 2.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 28 2014 Kalev Lember - 2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Tue Jan 28 2014 Thibault North -2.3-1 - Update to new release 2.3 * Fri Jan 17 2014 Zbigniew Jędrzejewski-Szmek - 2.2.2-2 - Move requirements to the proper package (#1054683) * Sun Sep 29 2013 Zbigniew Jędrzejewski-Szmek - 2.2.2-1 - Update to 2.2.2 (#1013130) * Mon Sep 09 2013 Zbigniew Jędrzejewski-Szmek - 2.2.1-1 - Update to 2.2.1 * Thu Sep 05 2013 Zbigniew Jędrzejewski-Szmek - 2.2-1 - Update to 2.2 - Add python3-numexpr package * Sun Aug 04 2013 Fedora Release Engineering - 2.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 2.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 2.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sun Jan 8 2012 Thibault North - 2.0.1-1 - Update to 2.0.1 * Sun Nov 27 2011 Thibault North - 2.0-1 - Update to 2.0 * Sun Oct 30 2011 Thibault North - 1.4.2-2 - Add check section - Fix permissions and remove useless sections * Thu Oct 20 2011 Thibault North - 1.4.2-1 - Updated to 1.4.2 * Fri Apr 29 2011 Thibault North - 1.4.1-3 - Fix buildroot issue * Tue Dec 21 2010 Thibault North - 1.4.1-2 - Fixes for the review process * Fri Nov 05 2010 Thibault North - 1.4.1-1 - Initial package based on Mandriva's one ## END: Generated by rpmautospec