Package python3-module-numexpr: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | %define oname numexpr Name: python3-module-%oname Version: 2.6.2 Release: alt6.E2K.1 Epoch: 1 Summary: Fast numerical array expression evaluator for Python and NumPy Group: Development/Python3 License: MIT URL: https://github.com/pydata/numexpr # Source-url: %__pypi_url %oname Source: %name-%version.tar Source1: site.cfg Patch1: %oname-%version-alt-config.patch BuildRequires(pre): rpm-build-intro >= 2.2.4 BuildRequires(pre): rpm-build-python3 BuildRequires: libnumpy-py3-devel python3-module-numpy-testing BuildRequires: gcc-c++ liblapack-devel Requires: /proc %description 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. Also, numexpr has support for the Intel VML (Vector Math Library) -- integrated in Intel MKL (Math Kernel Library) --, allowing nice speed-ups when computing transcendental functions (like trigonometrical, exponentials...) on top of Intel-compatible platforms. This support also allows to use multiple cores in your computations. %prep %setup %patch1 -p1 # don't require tests from the main module %__subst "s|from numexpr.tests.*||" numexpr/__init__.py install -p -m644 %SOURCE1 ./ sed -i 's|@LIBDIR@|%_libdir|' site.cfg %ifnarch %ix86 x86_64 armh aarch64 ppc64le %e2k sed -i 's@ openblas,@ blas,@' site.cfg %endif #find . -type f -name '*.py' -exec 2to3 -w -n '{}' + sed -i 's|@PYVER@|%_python3_version%_python3_abiflags|' \ site.cfg %build %add_optflags -fno-strict-aliasing %python3_build_debug %install %python3_install %python3_prune %check pushd build/lib.linux* PYTHONPATH=$(pwd) python3 -c 'import numexpr.tests; numexpr.tests.test()' popd %files %doc *.txt *.rst LICENSES %python3_sitelibdir/* %changelog * Sat Jun 18 2022 Michael Shigorin <mike@altlinux.org> 1:2.6.2-alt6.E2K.1 - E2K: build with openblas too. * Mon May 31 2021 Grigory Ustinov <grenka@altlinux.org> 1:2.6.2-alt6 - Fixed Build Requires. * Wed Nov 04 2020 Vitaly Lipatov <lav@altlinux.ru> 1:2.6.2-alt5 - build python3 separately, without tests subpackage * Wed Feb 20 2019 Sergey Bolshakov <sbolshakov@altlinux.ru> 1:2.6.2-alt4 - exclude armh from crippled arches * Tue Feb 19 2019 Gleb F-Malinovskiy <glebfm@altlinux.org> 1:2.6.2-alt3 - Fixed build on aarch64 and ppc64le. * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 1:2.6.2-alt2.1 - (NMU) Rebuilt with python-3.6.4. * Tue Feb 06 2018 Sergey Bolshakov <sbolshakov@altlinux.ru> 1:2.6.2-alt2 - fix build on arm * Fri Feb 02 2018 Stanislav Levin <slev@altlinux.org> 1:2.6.2-alt1.1 - (NMU) Fix Requires and BuildRequires to python-setuptools * Thu Aug 03 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 1:2.6.2-alt1 - Updated to upstream release 2.6.2 * Thu Mar 17 2016 Ivan Zakharyaschev <imz@altlinux.org> 1:2.4.4-alt1.dev0.git20150815.1.1 - (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10 (for ABI dependence and new python3(*) reqs) * Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 1:2.4.4-alt1.dev0.git20150815.1 - NMU: Use buildreq for BR. * Sun Aug 16 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1:2.4.4-alt1.dev0.git20150815 - New snapshot * Tue Apr 28 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1:2.4.4-alt1.dev0.git20150427 - Version 2.4.4.dev0 * Wed Mar 04 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1:2.4.1-alt1.git20141130 - Version 2.4.1 * Sat Aug 02 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1:2.3-alt2.hg20140104 - Added module for Python 3 * Mon Jul 14 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1:2.3-alt1.hg20140104 - New snapshot * Wed Sep 18 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1:2.3-alt1.hg20130908 - Version 2.3 * Tue Apr 02 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1:2.0.2-alt1.hg20121113 - New snapshot * Sun May 13 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1:2.0.2-alt1.hg20120301 - New snapshot * Thu Apr 12 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 2.1-alt1.hg20111127.1 - Rebuild to remove redundant libpython2.7 dependency * Fri Dec 23 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.1-alt1.hg20111127 - Version 2.1 * Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.5-alt1.svn20110225.1 - Rebuild with Python-2.7 * Sat Apr 16 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5-alt1.svn20110225 - New snapshot * Sat Mar 26 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5-alt1.svn20101116.1 - Rebuilt for debuginfo * Wed Nov 24 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5-alt1.svn20101116 - Version 1.5 * Mon Oct 18 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4-alt1.svn20100615.1 - Fixed underlinking * Mon Jul 12 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4-alt1.svn20100615 - Initial build for Sisyphus |