%global srcname numpy %global _description \ NumPy is a general-purpose array-processing package designed to\ efficiently manipulate large multi-dimensional arrays of arbitrary\ records without sacrificing too much speed for small multi-dimensional\ arrays. NumPy is built on the Numeric code base and adds features\ introduced by numarray as well as an extended C-API and the ability to\ create arrays of arbitrary type.\ \ There are also basic facilities for discrete fourier transform,\ basic linear algebra and random number generation. Name: python3-%{srcname} Version: 1.12.1 Release: 3%{?dist} Summary: A fast multidimensional array facility for Python 3 # Everything is BSD except for class SafeEval in numpy/lib/utils.py which is Python # MIT - numpy/random/mtrand # PSFv2 - doc/scipy-sphinx-theme/_theme/scipy/static/js/copybutton.js (not shipped) License: BSD and Python URL: http://www.numpy.org/ Source0: https://github.com/numpy/numpy/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: lapack-devel BuildRequires: gcc-gfortran BuildRequires: openblas-devel # Add input validation on empty list or ndarray in numpy.pad function. # Fixes rhbz#1483689 Patch1: 0001-Security-fix-for-CVE-2017-12852.patch %description %{_description} %package -n python%{python3_pkgversion}-%{srcname} Summary: A fast multidimensional array facility for Python %{python3_version} License: BSD BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-Cython BuildRequires: python%{python3_pkgversion}-nose %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %description -n python%{python3_pkgversion}-%{srcname} %{_description} %package -n python%{python3_pkgversion}-%{srcname}-f2py Summary: f2py for %{srcname} Requires: python%{python3_pkgversion}-%{srcname} = %{version}-%{release} Requires: python%{python3_pkgversion}-devel %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}-f2py} %description -n python%{python3_pkgversion}-%{srcname}-f2py This package includes a version of f2py%{python3_version} that works properly with NumPy. %package -n python%{python3_other_pkgversion}-%{srcname} Summary: A fast multidimensional array facility for Python %{python3_other_version} License: BSD BuildRequires: python%{python3_other_pkgversion}-devel BuildRequires: python%{python3_other_pkgversion}-setuptools BuildRequires: python%{python3_other_pkgversion}-Cython BuildRequires: python%{python3_other_pkgversion}-nose %description -n python%{python3_other_pkgversion}-%{srcname} %{_description} %package -n python%{python3_other_pkgversion}-%{srcname}-f2py Summary: f2py for %{srcname} Requires: python%{python3_other_pkgversion}-%{srcname} = %{version}-%{release} Requires: python%{python3_other_pkgversion}-devel %description -n python%{python3_other_pkgversion}-%{srcname}-f2py This package includes a version of f2py%{python3_other_version} that works properly with NumPy. %prep %setup -q -n %{srcname}-%{version} %patch1 -p1 # Strip shbang find -name \*.py -exec sed -i -e '1{/^#!/d}' {} + # workaround for rhbz#849713 # http://mail.scipy.org/pipermail/numpy-discussion/2012-July/063530.html rm numpy/distutils/command/__init__.py && touch numpy/distutils/command/__init__.py cat >> site.cfg < /dev/null PYTHONPATH="%{buildroot}%{python3_sitearch}" PATH=%{buildroot}%{_bindir}:$PATH \ %{__python3} -c "import pkg_resources, numpy ; numpy.test(verbose=2)" \ %ifarch s390 s390x || : %endif PYTHONPATH="%{buildroot}%{python3_other_sitearch}" PATH=%{buildroot}%{_bindir}:$PATH \ %{__python3_other} -c "import pkg_resources, numpy ; numpy.test(verbose=2)" \ %ifarch s390 s390x || : %endif # don't remove this comment popd &> /dev/null %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE.txt %doc README.md THANKS.txt site.cfg.example %{python3_sitearch}/%{srcname}/__pycache__ %{python3_sitearch}/%{srcname} %exclude %{python3_sitearch}/%{srcname}/f2py %{python3_sitearch}/%{srcname}-%{version}-py%{python3_version}.egg-info %files -n python%{python3_pkgversion}-%{srcname}-f2py %{_bindir}/f2py3 %{_bindir}/f2py%{python3_version} %{_mandir}/man1/f2py%{python3_version}.1* %{python3_sitearch}/%{srcname}/f2py %files -n python%{python3_other_pkgversion}-%{srcname} %license LICENSE.txt %doc README.md THANKS.txt site.cfg.example %{python3_other_sitearch}/%{srcname}/__pycache__ %{python3_other_sitearch}/%{srcname} %exclude %{python3_other_sitearch}/%{srcname}/f2py %{python3_other_sitearch}/%{srcname}-%{version}-py%{python3_other_version}.egg-info %files -n python%{python3_other_pkgversion}-%{srcname}-f2py %{_bindir}/f2py%{python3_other_version} %{_mandir}/man1/f2py%{python3_other_version}.1* %{python3_other_sitearch}/%{srcname}/f2py %changelog * Tue Oct 8 2019 Orion Poplawski - 1.12.1-3 - Provide both f2py3 and f2py3.X * Fri Oct 4 2019 Orion Poplawski - 1.12.1-2 - Provide python3-numpy (bugz#1758151) * Mon Apr 15 2019 Orion Poplawski - 1.12.1-1 - Update to 1.12.1 - Use openblas * Thu Mar 07 2019 Troy Dawson - 1.10.4-7 - Rebuilt to change main python from 3.4 to 3.6 * Fri Jul 13 2018 Carl George - 1.10.4-6 - Enable python36 subpackage * Wed Sep 13 2017 Iryna Shcherbina - 1.10.4-5 - Add a patch for the security vulnerability (rhbz#1483689) * Tue Mar 1 2016 Orion Poplawski - 1.10.4-4 - Strip shbangs and fix .so permissions * Fri Feb 26 2016 Orion Poplawski - 1.10.4-3 - Drop epoch - Drop BR Cython * Thu Feb 25 2016 Orion Poplawski - 1.10.4-2 - Add missing BuildRequires * Mon Jan 11 2016 Orion Poplawski - 1.10.4-1 - Initial EPEL7 package