Compare commits

...

No commits in common. "c8-stream-2.7" and "c9s" have entirely different histories.

8 changed files with 359 additions and 3286 deletions

90
.gitignore vendored
View File

@ -1,2 +1,88 @@
SOURCES/numpy-1.14.2.tar.gz
SOURCES/numpy-html-1.13.0.zip
numpy-1.4.1.tar.gz
/numpy-1.5.1rc1.tar.gz
/numpy-1.5.1.tar.gz
/numpy-1.6.0b1.tar.gz
/numpy-1.6.0b2.tar.gz
/numpy-1.6.0.tar.gz
/numpy-1.6.1.tar.gz
/numpy-1.6.2rc1.tar.gz
/numpy-1.6.2.tar.gz
/numpy-1.7.0b1.tar.gz
/numpy-1.7.0b2.tar.gz
/numpy-1.7.0rc1.tar.gz
/numpy-1.7.0.tar.gz
/numpy-1.7.1.tar.gz
/numpy-1.8.0b1.tar.gz
/numpy-1.8.0b2.tar.gz
/numpy-1.8.0rc2.tar.gz
/numpy-1.8.0.tar.gz
/numpy-1.8.1.tar.gz
/numpy-1.8.2.tar.gz
/numpy-1.9.0rc1.tar.gz
/numpy-1.9.0.tar.gz
/numpy-1.9.1.tar.gz
/numpy-1.9.2.tar.gz
/numpy-1.10.0b1.tar.gz
/numpy-1.10.0.tar.gz
/numpy-1.10.1.tar.gz
/numpy-1.10.2rc1.tar.gz
/numpy-1.10.2rc2.tar.gz
/numpy-1.10.2.tar.gz
/numpy-1.10.4.tar.gz
/numpy-cc2b04.tar.gz
/numpy-1.11.0b2.tar.gz
/numpy-1.11.0b3.tar.gz
/numpy-1.11.0rc2.tar.gz
/numpy-1.11.0.tar.gz
/numpy-1.11.1rc1.tar.gz
/numpy-1.11.1.tar.gz
/numpy-1.11.2rc1.tar.gz
/numpy-1.11.2.tar.gz
/numpy-1.12.0.tar.gz
/numpy-1.12.1.tar.gz
/numpy-1.13.0rc1.tar.gz
/numpy-1.13.0rc2.tar.gz
/numpy-1.13.0.tar.gz
/numpy-1.13.1.tar.gz
/numpy-1.13.2.tar.gz
/numpy-1.13.3.tar.gz
/numpy-html-1.13.0.zip
/numpy-1.14.0rc1.tar.gz
/numpy-1.14.1.tar.gz
/numpy-1.14.2.tar.gz
/numpy-1.14.3.tar.gz
/numpy-html-1.14.2.zip
/numpy-1.14.5.tar.gz
/numpy-html-1.14.5.zip
/numpy-1.15.0.tar.gz
/numpy-html-1.15.0.zip
/numpy-1.15.1.tar.gz
/numpy-html-1.15.1.zip
/numpy-1.16.0.tar.gz
/numpy-1.16.1.tar.gz
/numpy-1.16.2.tar.gz
/numpy-1.16.3.tar.gz
/numpy-html-1.16.1.zip
/numpy-1.16.4.tar.gz
/numpy-html-1.17.0.zip
/numpy-1.17.0.tar.gz
/numpy-1.17.1.tar.gz
/numpy-1.17.2.tar.gz
/numpy-1.17.3.tar.gz
/numpy-1.17.4.tar.gz
/numpy-1.18.0.tar.gz
/numpy-1.18.1.tar.gz
/numpy-1.18.2.tar.gz
/numpy-1.18.3.tar.gz
/numpy-1.18.4.tar.gz
/numpy-1.19.0rc2.tar.gz
/numpy-1.19.0.tar.gz
/numpy-1.19.1.tar.gz
/numpy-1.19.2.tar.gz
/numpy-html.zip
/numpy-1.19.3.tar.gz
/numpy-1.19.4.tar.gz
/numpy-1.20.0rc2.tar.gz
/numpy-1.20.0.tar.gz
/numpy-1.20.1.tar.gz
/numpy-1.23.5.tar.gz

View File

@ -1,2 +0,0 @@
c00e70468703830a26ee9173ba1cf4aedf08718f SOURCES/numpy-1.14.2.tar.gz
b23d66880bba5f56baa81ce02eb5a55de046c0a7 SOURCES/numpy-html-1.13.0.zip

View File

@ -1,166 +0,0 @@
From 0fcfa065d900040c80628b31b8b6ea606c131086 Mon Sep 17 00:00:00 2001
From: Paul Ivanov <pivanov5@bloomberg.net>
Date: Wed, 30 Jan 2019 14:22:44 -0800
Subject: [PATCH] BUG: load fails when using pickle without allow_pickle=True
a partial mitigation of #12759.
see also https://nvd.nist.gov/vuln/detail/CVE-2019-6446
---
numpy/core/tests/test_regression.py | 2 +-
numpy/lib/format.py | 8 ++++++--
numpy/lib/npyio.py | 17 ++++++++++++-----
numpy/lib/tests/test_format.py | 15 +++++++++------
numpy/lib/tests/test_io.py | 2 +-
5 files changed, 29 insertions(+), 15 deletions(-)
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py
index a3b0114..2be6bf3 100644
--- a/numpy/core/tests/test_regression.py
+++ b/numpy/core/tests/test_regression.py
@@ -96,7 +96,7 @@ class TestRegression(object):
ca = np.char.array(np.arange(1000, 1010), itemsize=4)
ca.dump(f)
f.seek(0)
- ca = np.load(f)
+ ca = np.load(f, allow_pickle=True)
f.close()
def test_noncontiguous_fill(self):
diff --git a/numpy/lib/format.py b/numpy/lib/format.py
index 363bb21..b91142c 100644
--- a/numpy/lib/format.py
+++ b/numpy/lib/format.py
@@ -602,7 +602,7 @@ def write_array(fp, array, version=None, allow_pickle=True, pickle_kwargs=None):
fp.write(chunk.tobytes('C'))
-def read_array(fp, allow_pickle=True, pickle_kwargs=None):
+def read_array(fp, allow_pickle=False, pickle_kwargs=None):
"""
Read an array from an NPY file.
@@ -612,7 +612,11 @@ def read_array(fp, allow_pickle=True, pickle_kwargs=None):
If this is not a real file object, then this may take extra memory
and time.
allow_pickle : bool, optional
- Whether to allow reading pickled data. Default: True
+ Whether to allow writing pickled data. Default: False
+
+ .. versionchanged:: 1.14.2
+ Made default False in response to CVE-2019-6446.
+
pickle_kwargs : dict
Additional keyword arguments to pass to pickle.load. These are only
useful when loading object arrays saved on Python 2 when using
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py
index 76b135c..c6522f5 100644
--- a/numpy/lib/npyio.py
+++ b/numpy/lib/npyio.py
@@ -130,7 +130,11 @@ class NpzFile(object):
An object on which attribute can be performed as an alternative
to getitem access on the `NpzFile` instance itself.
allow_pickle : bool, optional
- Allow loading pickled data. Default: True
+ Allow loading pickled data. Default: False
+
+ .. versionchanged:: 1.14.2
+ Made default False in response to CVE-2019-6446.
+
pickle_kwargs : dict, optional
Additional keyword arguments to pass on to pickle.load.
These are only useful when loading object arrays saved on
@@ -166,7 +170,7 @@ class NpzFile(object):
"""
- def __init__(self, fid, own_fid=False, allow_pickle=True,
+ def __init__(self, fid, own_fid=False, allow_pickle=False,
pickle_kwargs=None):
# Import is postponed to here since zipfile depends on gzip, an
# optional component of the so-called standard library.
@@ -265,7 +269,7 @@ class NpzFile(object):
return self.files.__contains__(key)
-def load(file, mmap_mode=None, allow_pickle=True, fix_imports=True,
+def load(file, mmap_mode=None, allow_pickle=False, fix_imports=True,
encoding='ASCII'):
"""
Load arrays or pickled objects from ``.npy``, ``.npz`` or pickled files.
@@ -287,8 +291,11 @@ def load(file, mmap_mode=None, allow_pickle=True, fix_imports=True,
Allow loading pickled object arrays stored in npy files. Reasons for
disallowing pickles include security, as loading pickled data can
execute arbitrary code. If pickles are disallowed, loading object
- arrays will fail.
- Default: True
+ arrays will fail. Default: False
+
+ .. versionchanged:: 1.14.2
+ Made default False in response to CVE-2019-6446.
+
fix_imports : bool, optional
Only useful when loading Python 2 generated pickled files on Python 3,
which includes npy/npz files containing object arrays. If `fix_imports`
diff --git a/numpy/lib/tests/test_format.py b/numpy/lib/tests/test_format.py
index 2d2b4ce..04e090c 100644
--- a/numpy/lib/tests/test_format.py
+++ b/numpy/lib/tests/test_format.py
@@ -426,7 +426,7 @@ def roundtrip(arr):
f = BytesIO()
format.write_array(f, arr)
f2 = BytesIO(f.getvalue())
- arr2 = format.read_array(f2)
+ arr2 = format.read_array(f2, allow_pickle=True)
return arr2
@@ -553,7 +553,7 @@ def test_pickle_python2_python3():
path = os.path.join(data_dir, fname)
for encoding in ['bytes', 'latin1']:
- data_f = np.load(path, encoding=encoding)
+ data_f = np.load(path, allow_pickle=True, encoding=encoding)
if fname.endswith('.npz'):
data = data_f['x']
data_f.close()
@@ -575,16 +575,19 @@ def test_pickle_python2_python3():
if sys.version_info[0] >= 3:
if fname.startswith('py2'):
if fname.endswith('.npz'):
- data = np.load(path)
+ data = np.load(path, allow_pickle=True)
assert_raises(UnicodeError, data.__getitem__, 'x')
data.close()
- data = np.load(path, fix_imports=False, encoding='latin1')
+ data = np.load(path, allow_pickle=True, fix_imports=False,
+ encoding='latin1')
assert_raises(ImportError, data.__getitem__, 'x')
data.close()
else:
- assert_raises(UnicodeError, np.load, path)
+ assert_raises(UnicodeError, np.load, path,
+ allow_pickle=True)
assert_raises(ImportError, np.load, path,
- encoding='latin1', fix_imports=False)
+ allow_pickle=True, fix_imports=False,
+ encoding='latin1')
def test_pickle_disallow():
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py
index 2daa015..bde2567 100644
--- a/numpy/lib/tests/test_io.py
+++ b/numpy/lib/tests/test_io.py
@@ -87,7 +87,7 @@ class RoundtripTest(object):
"""
save_kwds = kwargs.get('save_kwds', {})
- load_kwds = kwargs.get('load_kwds', {})
+ load_kwds = kwargs.get('load_kwds', {"allow_pickle": True})
file_on_disk = kwargs.get('file_on_disk', False)
if file_on_disk:
--
2.21.0

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,47 @@
From e89ec589000e471f04c71b676c866baec05ecd7d Mon Sep 17 00:00:00 2001
From: Sandeep Gupta <sandeep.gupta12@ibm.com>
Date: Thu, 9 Oct 2025 22:42:35 +0530
Subject: [PATCH] BUG: Fix INT_MIN % -1 to return 0 for all signed integer
types (#29893)
* BUG: Fix INT_MIN % -1 to return 0 for all signed integer types
- Explicitly check for INT_MIN % -1 in scalar tail loops for fmod and remainder kernels.
- Set result to 0 to avoid undefined behavior and match NumPy/Python expectations.
- Ensures correct, portable behavior on all platforms (e.g., PPC64LE).
* Apply suggestion from @seberg
---------
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
---
numpy/_core/src/umath/loops_modulo.dispatch.c.src | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/numpy/core/src/umath/loops_modulo.dispatch.c.src b/numpy/core/src/umath/loops_modulo.dispatch.c.src
index 032cc3344060..4645fe14a487 100644
--- a/numpy/core/src/umath/loops_modulo.dispatch.c.src
+++ b/numpy/core/src/umath/loops_modulo.dispatch.c.src
@@ -490,12 +490,16 @@ vsx4_simd_@func@_by_scalar_contig_@sfx@(char **args, npy_intp len)
#else /* fmod and remainder */
for (; len > 0; --len, ++src1, ++dst1) {
const npyv_lanetype_@sfx@ a = *src1;
- *dst1 = a % scalar;
+ if (NPY_UNLIKELY(a == NPY_MIN_INT@len@ && scalar == -1)) {
+ *dst1 = 0;
+ } else {
+ *dst1 = a % scalar;
#if @id@ == 1 /* remainder */
- if (!((a > 0) == (scalar > 0) || *dst1 == 0)) {
- *dst1 += scalar;
- }
+ if (!((a > 0) == (scalar > 0) || *dst1 == 0)) {
+ *dst1 += scalar;
+ }
#endif
+ }
}
#endif
npyv_cleanup();

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.other.functional}

View File

@ -1,39 +1,31 @@
%if 0%{?fedora} || 0%{?rhel} > 7
%bcond_without python3
%else
%bcond_with python3
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%endif
#uncomment next line for a release candidate or a beta
#%%global relc rc1
%bcond_with tests
%if 0%{?fedora} >= 33 || 0%{?rhel} >= 9
%global blaslib flexiblas
%global blasvar %{nil}
%else
%global blaslib openblas
%global blasvar p
%endif
%global modname numpy
Name: numpy
Version: 1.14.2
Release: 16%{?dist}
Version: 1.23.5
Release: 2%{?dist}
Epoch: 1
Summary: A fast multidimensional array facility for Python
Group: Development/Languages
# Everything is BSD except for class SafeEval in numpy/lib/utils.py which is Python
License: BSD and Python
License: BSD and Python and ASL 2.0
URL: http://www.numpy.org/
Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source1: https://docs.scipy.org/doc/numpy/numpy-html-1.13.0.zip
Patch0: numpy-1.14.2-float128.patch
Patch1: numpy-1.14.2-CVE-2019-6446.patch
BuildRequires: python2-devel lapack-devel python2-setuptools gcc-gfortran python2-nose
BuildRequires: /usr/bin/sed
BuildRequires: python2-Cython
%ifarch %{openblas_arches}
BuildRequires: openblas-devel
%else
BuildRequires: atlas-devel
%endif
Source1: https://numpy.org/doc/1.23/numpy-html.zip
# https://github.com/numpy/numpy/commit/e89ec589000e471f04c71b676c866baec05ecd7d
Patch0: fix-ppc64le-power10-test-failures.patch
%description
NumPy is a general-purpose array-processing package designed to
@ -48,55 +40,28 @@ basic linear algebra and random number generation. Also included in
this package is a version of f2py that works properly with NumPy.
%package -n python2-numpy
Summary: A fast multidimensional array facility for Python
Requires: python2-nose
%{?python_provide:%python_provide python2-%{modname}}
Obsoletes: numpy < 1:1.10.1-3
%description -n python2-numpy
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. Also included in
this package is a version of f2py that works properly with NumPy.
%package -n python2-numpy-f2py
Summary: f2py for numpy
Group: Development/Libraries
Requires: python2-%{name} = %{epoch}:%{version}-%{release}
Requires: python2-devel
Obsoletes: numpy-f2py < 1:1.10.1-3
%{?python_provide:%python_provide python2-numpy-f2py}
%description -n python2-numpy-f2py
This package includes a version of f2py that works properly with NumPy.
%package -n python2-numpy-doc
Summary: Documentation for numpy
Requires: python2-%{name} = %{epoch}:%{version}-%{release}
BuildArch: noarch
%description -n python2-numpy-doc
This package provides the complete documentation for NumPy.
%if %{with python3}
%package -n python3-numpy
Summary: A fast multidimensional array facility for Python
Group: Development/Languages
License: BSD
%{?python_provide:%python_provide python3-numpy}
Provides: libnpymath-static = %{epoch}:%{version}-%{release}
Provides: libnpymath-static%{?_isa} = %{epoch}:%{version}-%{release}
Provides: numpy = %{epoch}:%{version}-%{release}
Provides: numpy%{?_isa} = %{epoch}:%{version}-%{release}
Obsoletes: numpy < 1:1.10.1-3
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-nose
BuildRequires: python3-Cython
BuildRequires: gcc-gfortran gcc gcc-c++
BuildRequires: lapack-devel
%if %{with tests}
BuildRequires: python3-hypothesis
BuildRequires: python3-pytest
BuildRequires: python3-test
%endif
BuildRequires: %{blaslib}-devel
%description -n python3-numpy
NumPy is a general-purpose array-processing package designed to
@ -112,12 +77,14 @@ this package is a version of f2py that works properly with NumPy.
%package -n python3-numpy-f2py
Summary: f2py for numpy
Group: Development/Libraries
Requires: python3-numpy = %{epoch}:%{version}-%{release}
Requires: python3-numpy%{?_isa} = %{epoch}:%{version}-%{release}
Requires: python3-devel
Provides: python3-f2py = %{version}-%{release}
Obsoletes: python3-f2py <= 2.45.241_1927
%{?python_provide:%python_provide python3-numpy-f2py}
Provides: f2py = %{epoch}:%{version}-%{release}
Provides: numpy-f2py = %{epoch}:%{version}-%{release}
Obsoletes: numpy-f2py < 1:1.10.1-3
%description -n python3-numpy-f2py
This package includes a version of f2py that works properly with NumPy.
@ -130,64 +97,28 @@ BuildArch: noarch
%description -n python3-numpy-doc
This package provides the complete documentation for NumPy.
%endif # with python3
%prep
%setup -q -n %{name}-%{version}%{?relc}
#%setup -q -n numpy-cc2b04
%patch0 -p1
%patch1 -p1
%autosetup -n %{name}-%{version} -p1
# 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
# Force re-cythonization (ifed for PKG-INFO presence in setup.py)
rm PKG-INFO
%ifarch %{openblas_arches}
# openblas is provided by flexiblas by default; otherwise,
# Use openblas pthreads as recommended by upstream (see comment in site.cfg.example)
cat >> site.cfg <<EOF
[openblas]
libraries = %{blaslib}%{blasvar}
library_dirs = %{_libdir}
openblas_libs = openblasp
EOF
%else
# Atlas 3.10 library names
%if 0%{?fedora} >= 21 || 0%{?rhel} > 7
cat >> site.cfg <<EOF
[atlas]
library_dirs = %{_libdir}/atlas
atlas_libs = satlas
EOF
%endif
%endif
%if %{with python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
%endif
%build
%set_build_flags
%if %{with python3}
pushd %{py3dir}
%ifarch %{openblas_arches}
env OPENBLAS=%{_libdir} \
%else
env ATLAS=%{_libdir} \
%endif
BLAS=%{_libdir} \
LAPACK=%{_libdir} CFLAGS="%{optflags}" \
%{__python3} setup.py build
popd
%endif # with _python3
%ifarch %{openblas_arches}
env OPENBLAS=%{_libdir} \
%else
env ATLAS=%{_libdir} \
%endif
BLAS=%{_libdir} \
LAPACK=%{_libdir} CFLAGS="%{optflags}" \
%{__python2} setup.py build
%install
mkdir docs
@ -195,119 +126,32 @@ pushd docs
unzip %{SOURCE1}
popd
# first install python3 so the binaries are overwritten by the python2 ones
%if %{with python3}
pushd %{py3dir}
#%%{__python2} setup.py install -O1 --skip-build --root %%{buildroot}
#%%{__python3} setup.py install -O1 --skip-build --root %%{buildroot}
# skip-build currently broken, this works around it for now
%ifarch %{openblas_arches}
env OPENBLAS=%{_libdir} \
%else
env ATLAS=%{_libdir} \
%endif
FFTW=%{_libdir} BLAS=%{_libdir} \
LAPACK=%{_libdir} CFLAGS="%{optflags}" \
%{__python3} setup.py install --root %{buildroot}
pushd %{buildroot}%{_bindir} &> /dev/null
# The custom install script gets the Python version from the executable name,
# e.g. "python3" -> "3", but when built by "platform-python" it guesses the
# version as "rm-python". Renaming the file here is the easiest correction.
mv f2pyrm-python f2py3
ln -s f2py3 f2py.numpy
popd &> /dev/null
popd
%endif # with python3
#%%{__python2} setup.py install -O1 --skip-build --root %%{buildroot}
# skip-build currently broken, this works around it for now
%ifarch %{openblas_arches}
env OPENBLAS=%{_libdir} \
%else
env ATLAS=%{_libdir} \
%endif
FFTW=%{_libdir} BLAS=%{_libdir} \
LAPACK=%{_libdir} CFLAGS="%{optflags}" \
%{__python2} setup.py install --root %{buildroot}
pushd %{buildroot}%{_bindir} &> /dev/null
# symlink for anyone who was using f2py.numpy
mv f2py{2,-%{python2_version}}
ln -s f2py-%{python2_version} f2py-2
ln -s f2py-%{python2_version} f2py2
popd &> /dev/null
#install -D -p -m 0644 docs/f2py/f2py.1 %{buildroot}%{_mandir}/man1/f2py.1
#symlink for includes, BZ 185079
mkdir -p %{buildroot}%{_includedir}
ln -s %{python2_sitearch}/%{name}/core/include/numpy/ %{buildroot}%{_includedir}/numpy
ln -s %{python3_sitearch}/%{name}/core/include/numpy/ %{buildroot}%{_includedir}/numpy
%check
# Having LDFLAGS set in the environment (for Flatpak builds, in particular), breaks
# f2py Makefiles which use that variable like: 'LDFLAGS = -s -shared'
unset LDFLAGS
pushd doc &> /dev/null
PATH="%{buildroot}%{_bindir}:${PATH}" \
PYTHONPATH="%{buildroot}%{python2_sitearch}" \
%{__python2} -c "import pkg_resources, numpy, sys ; sys.exit(0 if numpy.test(verbose=2).wasSuccessful() else 1)" \
%ifarch s390 s390x
|| :
%if %{with tests}
%ifarch ppc64le
# https://github.com/numpy/numpy/issues/14357
python3 runtests.py -- -k 'not test_einsum_sums_cfloat64'
%else
python3 runtests.py
%endif
# don't remove this comment
popd &> /dev/null
%if %{with python3}
pushd doc &> /dev/null
PATH="%{buildroot}%{_bindir}:${PATH}" \
PYTHONPATH="%{buildroot}%{python3_sitearch}" \
%{__python3} -c "import pkg_resources, numpy, sys ; sys.exit(0 if numpy.test(verbose=2).wasSuccessful() else 1)" \
%ifarch s390 s390x
|| :
%endif
# don't remove this comment
popd &> /dev/null
%endif # with python3
%files -n python2-numpy
%license LICENSE.txt
%doc THANKS.txt site.cfg.example
%dir %{python2_sitearch}/%{name}
%{python2_sitearch}/%{name}/*.py*
%{python2_sitearch}/%{name}/core
%{python2_sitearch}/%{name}/distutils
%{python2_sitearch}/%{name}/doc
%{python2_sitearch}/%{name}/fft
%{python2_sitearch}/%{name}/lib
%{python2_sitearch}/%{name}/linalg
%{python2_sitearch}/%{name}/ma
%{python2_sitearch}/%{name}/random
%{python2_sitearch}/%{name}/testing
%{python2_sitearch}/%{name}/tests
%{python2_sitearch}/%{name}/compat
%{python2_sitearch}/%{name}/matrixlib
%{python2_sitearch}/%{name}/polynomial
%{python2_sitearch}/%{name}-*.egg-info
%{_includedir}/numpy
%exclude %{python2_sitearch}/%{name}/LICENSE.txt
%files -n python2-numpy-f2py
%doc docs/f2py/*.html
#%{_mandir}/man*/*
%{_bindir}/f2py2
%{_bindir}/f2py-2
%{_bindir}/f2py-%{python2_version}
%{python2_sitearch}/%{name}/f2py
%files -n python2-numpy-doc
%doc docs/*
%if %{with python3}
%files -n python3-numpy
%license LICENSE.txt
%doc THANKS.txt site.cfg.example
@ -329,73 +173,196 @@ popd &> /dev/null
%{python3_sitearch}/%{name}/polynomial
%{python3_sitearch}/%{name}-*.egg-info
%exclude %{python3_sitearch}/%{name}/LICENSE.txt
%{_includedir}/numpy
%{python3_sitearch}/%{name}/__init__.pxd
%{python3_sitearch}/%{name}/__init__.cython-30.pxd
%{python3_sitearch}/%{name}/py.typed
%{python3_sitearch}/%{name}/typing/
%files -n python3-numpy-f2py
%{_bindir}/f2py
%{_bindir}/f2py3
%{_bindir}/f2py.numpy
%{_bindir}/f2py%{python3_version}
%{python3_sitearch}/%{name}/f2py
%{python3_sitearch}/%{name}/array_api/
%{python3_sitearch}/%{name}/_pyinstaller/
%{python3_sitearch}/%{name}/_typing/
%files -n python3-numpy-doc
%doc docs/*
%endif # with python3
%changelog
* Fri Jan 08 2021 Nikola Forró <nforro@redhat.com> - 1:1.14.2-16
- Fix include path
- Related: rhbz#1907601
* Wed Feb 04 2026 Lukáš Zaoral <lzaoral@redhat.com> - 1:1.23.5-2
- fix ppc64le test failures (RHEL-88575)
* Wed Dec 16 2020 Nikola Forró <nforro@redhat.com> - 1:1.14.2-15
- Fix %check
- Related: rhbz#1907601
* Tue Oct 08 2024 Pavel Simovec <psimovec@redhat.com> - 1:1.23.5-1
- Update to 1.23.5
- Resolves: RHEL-5520
* Tue Dec 15 2020 Nikola Forró <nforro@redhat.com> - 1:1.14.2-14
- Use macros rather than hardcoded paths
- Resolves: rhbz#1907601
* Tue Feb 08 2022 Tomas Orsava <torsava@redhat.com> - 1.20.1-5
- Add automatically generated Obsoletes tag with the python39- prefix
for smoother upgrade from RHEL8
- Related: rhbz#1990421
* Wed Jun 05 2019 Nikola Forró <nforro@redhat.com> - 1:1.14.2-13
- Fix CVE-2019-6446
- Resolves: rhbz#1668829
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:1.20.1-4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Thu May 30 2019 Charalampos Stratakis <cstratak@redhat.com> - 1.14.2-12
- Set proper build flags for https://fedoraproject.org/wiki/Changes/Python_Extension_Flags
- Resolves: rhbz#1715036
* Fri Apr 16 2021 Nikola Forró <nforro@redhat.com> - 1:1.20.1-3
- Disable tests by default (#1928123)
* Thu May 30 2019 Nikola Forró <nforro@redhat.com> - 1.14.2-11
- Fix broken float128 on all arches except x86_64
- Resolves: rhbz#1688709
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:1.20.1-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Thu Apr 25 2019 Tomas Orsava <torsava@redhat.com> - 1.14.2-10
- Bumping due to problems with modular RPM upgrade path
- Resolves: rhbz#1695587
* Mon Feb 08 2021 Gwyn Ciesla <gwync@protonmail.com> 1:1.20.1-1
- 1.21.1
* Tue Oct 09 2018 Lumír Balhar <lbalhar@redhat.com> - 1:1.14.2-9
- Remove unversioned provides
- Resolves: rhbz#1628242
* Mon Feb 01 2021 Gwyn Ciesla <gwync@protonmail.com> - 1:1.20.0-1
- 1.20.0 final.
* Tue Oct 02 2018 Lumír Balhar <lbalhar@redhat.com> - 1:1.14.2-8
- Fix unversioned requires/buildrequires
- Resolves: rhbz#1628242
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.20.0-0.2.rc2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Aug 14 2018 Lumír Balhar <lbalhar@redhat.com> - 1:1.14.2-7
- Bring symlink f2py2 back for symlink modules
- Resolves: rhbz#1615727
* Mon Jan 04 2021 Nikola Forró <nforro@redhat.com> - 1:1.20.0-0.1.rc2
- Generate the main dispatcher config header into the build dir
* Wed Aug 08 2018 Lumír Balhar <lbalhar@redhat.com> - 1:1.14.2-6
- Remove unversioned binaries from python2 subpackage
- Resolves: rhbz#1613343
* Mon Dec 28 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.20.0-0.rc2
- 1.20.0 rc2
* Tue Jul 31 2018 Lumír Balhar <lbalhar@redhat.com> - 1:1.14.2-5
- Switch python3 coditions to bcond
* Tue Nov 03 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.19.4-1
- 1.19.4
* Mon Jun 25 2018 Tomas Orsava <torsava@redhat.com> - 1:1.14.2-4
- Use python2 macros instead of unversioned python macros
* Thu Oct 29 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.19.3-1
- 1.19.3
* Sat Apr 28 2018 Tomas Orsava <torsava@redhat.com> - 1:1.14.2-3
- Change the shebang of f2py to the versioned /usr/bin/python2
* Tue Oct 27 2020 Nikola Forró <nforro@redhat.com> - 1:1.19.2-2
- Make test suite work in FIPS (140-2) Mode
* Fri Apr 27 2018 Tomas Orsava <torsava@redhat.com> - 1:1.14.2-2
- Fix incorrect Python version guess when building on Platform-Python
* Thu Sep 10 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.19.2-1
- 1.19.2
* Sun Aug 16 2020 Iñaki Úcar <iucar@fedoraproject.org> - 1:1.19.1-3
- https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.19.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jul 22 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.19.1-1
- 1.19.1
* Thu Jul 16 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.19.0-2
- Assume old-style numpy provides from python2-numpy
* Mon Jun 22 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.19.0-1
- 1.19.0 final.
* Mon Jun 01 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.19.0-0.rc2
- 1.19.0 rc2
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1:1.18.4-3
- Rebuilt for Python 3.9
* Fri May 08 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.18.4-2
- Own __pycache__ dir, 1833392
* Sun May 03 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.18.4-1
- 1.18.4
* Mon Apr 20 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.18.3-1
- 1.18.3
* Wed Mar 18 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.18.2-1
- 1.18.2
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.18.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Jan 06 2020 Gwyn Ciesla <gwync@protonmail.com> - 1:1.18.1-1
- 1.18.1
* Mon Dec 30 2019 Gwyn Ciesla <gwync@protonmail.com> - 1:1.18.0-1
- 1.18.0
* Mon Nov 11 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1:1.17.4-2
- Backport patch for s390x failures
- Enable non-broken tests on ppc64le
* Mon Nov 11 2019 Gwyn Ciesla <gwync@protonmail.com> - 1:1.17.4-1
- 1.17.4
* Fri Oct 18 2019 Gwyn Ciesla <gwync@protonmail.com> - 1:1.17.3-1
- 1.17.3
* Sat Sep 07 2019 Gwyn Ciesla <gwync@protonmail.com> - 1:1.17.2-1
- 1.17.2
* Thu Aug 29 2019 Gwyn Ciesla <gwync@protonmail.com> - 1:1.17.1-1
- 1.17.1
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.17.0-3
- Rebuilt for Python 3.8
* Thu Aug 01 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.17.0-2
- Reintroduce libnpymath.a (#1735674)
* Tue Jul 30 2019 Gwyn Ciesla <gwync@protonmail.com> 1:1.17.0-1
- 1.17.0, split out Python 2.
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.16.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Jun 20 2019 Kalev Lember <klember@redhat.com> - 1:1.16.4-2
- Avoid hardcoding /usr prefix
* Tue May 28 2019 Gwyn Ciesla <gwync@protonmail.com> - 1:1.16.4-1
- 1.16.4
* Thu May 16 2019 Orion Poplawski <orion@nwra.com> - 1:1.16.3-2
- Build only with openblasp (bugz#1709161)
* Mon Apr 22 2019 Gwyn Ciesla <gwync@protonmail.com> - 1:1.16.3-1
- 1.16.3.
* Tue Feb 26 2019 Gwyn Ciesla <gwync@protonmail.com> - 1:1.16.2-1
- 1.16.2.
* Fri Feb 01 2019 Gwyn Ciesla <limburgher@gmail.com> - 1:1.16.1-1
- 1.16.1.
* Tue Jan 22 2019 Gwyn Ciesla <limburgher@gmail.com> - 1:1.16.0-1
- 1.16.0.
* Wed Aug 29 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1:1.15.1-2
- Switch to pytest for running tests during check
- Stop ignoring failures when running tests
- Set PATH in check so that f2py tests work
- Update docs to match release
- Remove outdated workaround from rhbz#849713
* Wed Aug 22 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1:1.15.1-1
- Update to latest version
* Sat Aug 11 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1:1.15.0-2
- Fix broken build on s390x
- Remove bytecode produced by pytest
- Re-enable tests on s390x
* Tue Jul 24 2018 Gwyn Ciesla <limburgher@gmail.com> - 1:1.15.0-1
- 1.15.0
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.14.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.14.5-2
- Rebuilt for Python 3.7
* Wed Jun 13 2018 Gwyn Ciesla <limburgher@gmail.com> - 1:1.14.5-1
- 1.14.5
* Tue May 01 2018 Gwyn Ciesla <limburgher@gmail.com> - 1:1.14.3-1
- 1.14.3
* Mon Mar 12 2018 Gwyn Ciesla <limburgher@gmail.com> - 1:1.14.2-1
- 1.14.2

2
sources Normal file
View File

@ -0,0 +1,2 @@
SHA512 (numpy-1.23.5.tar.gz) = 8f3ece76dbe79bc887275332d25f851ade2087de3026de5fb7ed793590b3e7d274f590357296e152373b4e9a245d4d563393ba7198bca6d44631b941acb89c2c
SHA512 (numpy-html.zip) = 218a2e893816af767c7cedd1f2256e05f68e59491c29277c95de653a206aaff35c5fe3bc6afd6d6d5ea7957748ec565593eb30d004e36e94c894ea4a6884902a