Hello community,

here is the log from the commit of package python-numpy.13331 for 
openSUSE:Leap:15.1:Update checked in at 2020-07-18 18:28:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.1:Update/python-numpy.13331 (Old)
 and      /work/SRC/openSUSE:Leap:15.1:Update/.python-numpy.13331.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-numpy.13331"

Sat Jul 18 18:28:28 2020 rev:1 rq:821128 version:1.17.3

Changes:
--------
New Changes file:

--- /dev/null   2020-07-16 02:54:20.700682797 +0200
+++ 
/work/SRC/openSUSE:Leap:15.1:Update/.python-numpy.13331.new.3592/python-numpy.changes
       2020-07-18 18:28:29.917543433 +0200
@@ -0,0 +1,830 @@
+-------------------------------------------------------------------
+Tue Jun  9 22:03:39 UTC 2020 - Matej Cepl <[email protected]>
+
+- Use update-alternatives for /usr/bin/f2py (bsc#1166678)
+
+-------------------------------------------------------------------
+Wed Nov 27 18:04:43 CET 2019 - Matej Cepl <[email protected]>
+
+- (bsc#1149203, jsc#SLE-8532) Update to 1.17.3. Highlights:
+  - A new extensible random module along with four selectable
+    random number generators and improved seeding designed for
+    use in parallel processes has been added. The currently
+    available bit generators are MT19937, PCG64, Philox, and
+    SFC64. See below under New Features.
+  - NumPy’s FFT implementation was changed from fftpack to
+    pocketfft, resulting in faster, more accurate transforms and
+    better handling of datasets of prime length. See below under
+    Improvements.
+  - New radix sort and timsort sorting methods. It is currently
+    not possible to choose which will be used. They are hardwired
+    to the datatype and used when either stable or mergesort is
+    passed as the method. See below under Improvements.
+  - Overriding numpy functions is now possible by default, see
+    __array_function__ below.
+  - numpy.errstate is now also a function decorator
+- Both patches were reapplied:
+  - numpy-buildfix.patch
+  - numpy-1.9.0-remove-__declspec.patch
+- Remove BR of Cython (use generated source files from the
+  release tarball).
+
+-------------------------------------------------------------------
+Wed Aug 28 17:57:08 CEST 2019 - Matej Cepl <[email protected]>
+
+- (jsc#SLE-8532, bsc#1149203) Update to 1.16.1:
+  - The NumPy 1.16.1 release fixes bugs reported against the
+    1.16.0 release, and also backports several enhancements from
+    master that seem appropriate for a release series that is the
+    last to support Python 2.7. The wheels on PyPI are linked
+    with OpenBLAS v0.3.4+, which should fix the known threading
+    issues found in previous OpenBLAS versions.
+  - Specifically:
+    - Experimental (opt-in only) support for overriding numpy
+      functions, see __array_function__ below.
+    - The matmul function is now a ufunc. This provides better
+      performance and allows overriding with __array_ufunc__.
+    - Improved support for the ARM and POWER architectures.
+    - Improved support for AIX and PyPy.
+    - Improved interop with ctypes.
+    - Improved support for PEP 3118.
+  - Also includes all improvements to 1.15.*, namely:
+    - NumPy has switched to pytest for testing.
+    - A new numpy.printoptions context manager.
+    - Many improvements to the histogram functions.
+    - Support for unicode field names in python 2.7.
+    - Improved support for PyPy.
+    - Fixes and improvements to numpy.einsum.
+- Removed CVE-2019-6446_numpy_load.patch, which is included into
+  the upstream release.
+- numpy-1.9.0-remove-__declspec.patch has been refreshed to fit
+  the current upstream tarball.
+
+-------------------------------------------------------------------
+Mon Feb  4 21:19:38 UTC 2019 - Matej Cepl <[email protected]>
+
+- bsc#1122208 add CVE-2019-6446_numpy_load.patch fixing gh#numpy/numpy#12759
+  numpy.load() has functionality which allows loading pickle with
+  potentially insecure code.
+
+-------------------------------------------------------------------
+Fri Feb  9 14:28:43 UTC 2018 - [email protected]
+
+- Fix summary in module files (bnc#1080259)
+
+-------------------------------------------------------------------
+Tue Feb  6 09:26:56 UTC 2018 - [email protected]
+
+- The HPC of python-numpy expects openBLAS. OpenBLAS is not availble
+  for sc390: disable buidling on s390 for HPC (bsc#1079513).
+
+-------------------------------------------------------------------
+Fri Jan 19 16:17:22 CET 2018 - [email protected]
+
+- add s390 to the ifarch conditional to build without openblas 
+
+-------------------------------------------------------------------
+Wed Jan 10 09:04:47 UTC 2018 - [email protected]
+
+- update to version 1.14.0
+  Changes documented in release notes:
+  https://github.com/numpy/numpy/blob/master/doc/release/1.14.0-notes.rst
+
+-------------------------------------------------------------------
+Fri Jan  5 19:17:07 UTC 2018 - [email protected]
+
+- Switch from gcc6 to gcc7 as additional compiler flavor for HPC on SLES.
+- Fix library package requires - use HPC macro (boo#1074890).
+
+-------------------------------------------------------------------
+Mon Nov 13 14:17:56 UTC 2017 - [email protected]
+
+- Add 'family "NumPy"' to modules file to avoid that different
+  versions of this get loaded.
+
+-------------------------------------------------------------------
+Sun Nov 12 12:49:48 UTC 2017 - [email protected]
+
+- Add Requires for libopenblas to base package.
+- Add Requires for lua-lmod
+- Fix '-' in environment variable mane of modulefile.
+
+-------------------------------------------------------------------
+Mon Oct 30 19:43:03 UTC 2017 - [email protected]
+
+- Fix Requires: of devel package for openblas.
+
+-------------------------------------------------------------------
+Tue Oct 17 14:27:47 UTC 2017 - [email protected]
+
+- Add magic to limit the number of flavors built in the OBS ring
+  to non-HPC builds.
+
+-------------------------------------------------------------------
+Tue Oct 3 18:44:35 UTC 2017 - [email protected]
+
+- Convert to multibuild: Add support for HPC environment modules
+  (FATE#321709).
+
+-------------------------------------------------------------------
+Sat Sep 30 16:20:39 UTC 2017 - [email protected]
+
+- updated line numbers in patches
+
+- update to version 1.13.3:
+  * #9390 BUG: Return the poly1d coefficients array directly
+  * #9555 BUG: Fix regression in 1.13.x in distutils.mingw32ccompiler.
+  * #9556 BUG: Fix true_divide when dtype=np.float64 specified.
+  * #9557 DOC: Fix some rst markup in numpy/doc/basics.py.
+  * #9558 BLD: Remove -xhost flag from IntelFCompiler.
+  * #9559 DOC: Removes broken docstring example (source code, png,
+    pdf)...
+  * #9580 BUG: Add hypot and cabs functions to WIN32 blacklist.
+  * #9732 BUG: Make scalar function elision check if temp is
+    writeable.
+  * #9736 BUG: Various fixes to np.gradient
+  * #9742 BUG: Fix np.pad for CVE-2017-12852 (bsc#1053963)
+  * #9744 BUG: Check for exception in sort functions, add tests
+  * #9745 DOC: Add whitespace after "versionadded::" directive so it
+    actually...
+  * #9746 BUG: Memory leak in np.dot of size 0
+  * #9747 BUG: Adjust gfortran version search regex
+  * #9757 BUG: Cython 0.27 breaks NumPy on Python 3.
+  * #9764 BUG: Ensure _npy_scaled_cexp{,f,l} is defined when needed.
+  * #9765 BUG: PyArray_CountNonzero does not check for exceptions
+  * #9766 BUG: Fixes histogram monotonicity check for unsigned bin
+    values
+  * #9767 BUG: Ensure consistent result dtype of count_nonzero
+  * #9771 BUG: MAINT: Fix mtrand for Cython 0.27.
+  * #9772 DOC: Create the 1.13.2 release notes.
+  * #9794 DOC: Create 1.13.3 release notes.
+
+- changes from version 1.13.2:
+  * #9390 BUG: Return the poly1d coefficients array directly
+  * #9555 BUG: Fix regression in 1.13.x in distutils.mingw32ccompiler.
+  * #9556 BUG: Fix true_divide when dtype=np.float64 specified.
+  * #9557 DOC: Fix some rst markup in numpy/doc/basics.py.
+  * #9558 BLD: Remove -xhost flag from IntelFCompiler.
+  * #9559 DOC: Removes broken docstring example (source code, png,
+    pdf)...
+  * #9580 BUG: Add hypot and cabs functions to WIN32 blacklist.
+  * #9732 BUG: Make scalar function elision check if temp is
+    writeable.
+  * #9736 BUG: Various fixes to np.gradient
+  * #9742 BUG: Fix np.pad for CVE-2017-12852 (bsc#1053963)
+  * #9744 BUG: Check for exception in sort functions, add tests
+  * #9745 DOC: Add whitespace after "versionadded::" directive so it
+    actually...
+  * #9746 BUG: Memory leak in np.dot of size 0
+  * #9747 BUG: Adjust gfortran version search regex
+  * #9757 BUG: Cython 0.27 breaks NumPy on Python 3.
+  * #9764 BUG: Ensure _npy_scaled_cexp{,f,l} is defined when needed.
+  * #9765 BUG: PyArray_CountNonzero does not check for exceptions
+  * #9766 BUG: Fixes histogram monotonicity check for unsigned bin
+    values
+  * #9767 BUG: Ensure consistent result dtype of count_nonzero
+  * #9771 BUG, MAINT: Fix mtrand for Cython 0.27.
+
+-------------------------------------------------------------------
+Mon Sep 18 14:40:26 UTC 2017 - [email protected]
+
+- Update to version 1.13.1
+  * bugfix release for problems found in 1.13.0; major changes:
+    + fixes for the new memory overlap detection and temporary
+      elision
+    + reversion of the removal of the boolean binary - operator
+  * 1.13.0 Highlights:
+    + Operations like a + b + c will reuse temporaries on some
++++ 633 more lines (skipped)
++++ between /dev/null
++++ and 
/work/SRC/openSUSE:Leap:15.1:Update/.python-numpy.13331.new.3592/python-numpy.changes

New:
----
  _multibuild
  numpy-1.17.3.zip
  numpy-1.9.0-remove-__declspec.patch
  numpy-buildfix.patch
  python-numpy.changes
  python-numpy.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-numpy.spec ++++++
#
# spec file for package python-numpy
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%global flavor @BUILD_FLAVOR@%{nil}
%define skip_python2 1
%define ver 1.17.3
%define _ver 1_17_3
%define pname python-numpy
%define hpc_upcase_trans_hyph() %(echo %{**} | tr [a-z] [A-Z] | tr '-' '_')
%if "%{flavor}" == "standard"
 %bcond_with hpc
 %ifarch armv6l s390 s390x
  %bcond_with openblas
 %else
  %bcond_without openblas
 %endif
%endif
%if "%{flavor}" == "gnu-hpc"
 %bcond_without hpc
%endif
%if "%{flavor}" == "gnu7-hpc"
 %define c_f_ver 7
 %bcond_without hpc
%endif
%ifarch s390
%{?with_openblas:ExclusiveArch:  do_not_build}
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?with_hpc:%{hpc_requires}}
%bcond_with ringdisabled
%if %{without hpc}
%define package_name %{pname}
%define p_python_sitearch %{python_sitearch}
%define p_prefix %{_prefix}
%define p_bindir %{_bindir}
%else
%{!?compiler_family:%global compiler_family gnu}
%{hpc_init -c %{compiler_family} %{?c_f_ver:-v %{c_f_ver}} %{?mpi_ver:-V 
%{mpi_ver}}}
%define package_name %{hpc_package_name %{_ver}}
%define p_python_sitearch %{hpc_python_sitearch}
%define p_prefix %{hpc_prefix}
%define p_bindir %{hpc_bindir}
# Magic for OBS Staging. Only build the flavors required by
# other packages in the ring.
%if %{with ringdisabled}
ExclusiveArch:  do_not_build
%endif
%endif
Name:           %{package_name}
Version:        %{ver}
Release:        0
Summary:        NumPy array processing for numbers, strings, records and objects
License:        BSD-3-Clause
Group:          Development/Libraries/Python
URL:            http://www.numpy.org/
Source:         
https://files.pythonhosted.org/packages/source/n/numpy/numpy-%{version}.zip
# PATCH-FIX-OPENSUSE numpy-buildfix.patch -- openSUSE-specific build fixes
Patch0:         numpy-buildfix.patch
# PATCH-FIX-OPENSUSE numpy-1.9.0-remove-__declspec.patch -- fix for spurious 
compiler warnings that cause build failure
Patch1:         numpy-1.9.0-remove-__declspec.patch
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  python-rpm-macros
BuildRequires:  unzip
%if "%{flavor}" == ""
ExclusiveArch:  do_not_build
%endif
%if 0%{?suse_version}
BuildRequires:  fdupes
%endif
%if %{without hpc}
 %if 0%{?suse_version}
BuildRequires:  gcc-fortran
 %else
BuildRequires:  gcc-gfortran
 %endif
 %if %{with openblas}
BuildRequires:  openblas-devel
 %else
BuildRequires:  blas-devel
BuildRequires:  lapack-devel
 %endif
%else
BuildRequires:  %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel
BuildRequires:  libopenblas%{?hpc_ext}-%{compiler_family}%{?c_f_ver}-hpc-devel
BuildRequires:  lua-lmod
BuildRequires:  suse-hpc
Requires:       libopenblas%{?hpc_ext}-%{compiler_family}%{?c_f_ver}-hpc
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
%python_subpackages

%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 which also makes NumPy suitable for
interfacing with general-purpose data-base applications.

There are also basic facilities for discrete fourier transform,
basic linear algebra and random number generation.

%{?with_hpc:%{hpc_python_master_package -L -a }}

%package devel
Summary:        Development files for numpy applications
Group:          Development/Libraries/Python
Requires:       %{name} = %{version}
Requires:       python-base
Requires:       python-devel
%if %{without hpc}
 %if %{with openblas}
Requires:       openblas-devel
 %else
Requires:       blas-devel
Requires:       lapack-devel
 %endif
%else
Requires:       libopenblas%{?hpc_ext}-%{compiler_family}%{?c_f_ver}-hpc-devel
%{hpc_requires_devel}
%endif

%description devel
This package contains files for developing applications using numpy.

%{?with_hpc:%{hpc_python_master_package devel -a }}

%prep
%setup -q -n numpy-%{version}
%autopatch -p1


# Fix non-executable scripts
sed -i '1s/^#!.*$//' 
numpy/{compat/setup,distutils/{conv_template,cpuinfo,exec_command,from_template,setup,system_info},f2py/{__init__,auxfuncs,capi_maps,cb_rules,cfuncs,common_rules,crackfortran,diagnose,f2py2e,f90mod_rules,func2subr,rules,setup,use_rules},ma/setup,matrixlib/setup,setup,testing/{print_coercion_tables,setup}}.py

%build
%if %{with hpc}
%hpc_setup
module load openblas
export CFLAGS="$(pkg-config --cflags openblas) %{optflags} 
-fno-strict-aliasing" LIBS="$(pkg-config --libs openblas)"
cat > site.cfg <<EOF
[openblas]
libraries = openblas
library_dirs = $OPENBLAS_LIB
include_dirs = $OPENBLAS_INC
EOF
%else
export CFLAGS="%{optflags} -fno-strict-aliasing"
%endif

%python_build

%install
%{?with_hpc:%hpc_setup}
%{?with_hpc:module load openblas}

%python_exec setup.py install --prefix=%{p_prefix} --root=%{buildroot}

%if !%{with hpc}
%python_clone -a %{buildroot}%{_bindir}/f2py
%endif

%if 0%{?suse_version}
%fdupes %{buildroot}%{p_prefix}
%endif

%if %{without hpc}

%python_expand rm -rf 
%{buildroot}%{$python_sitearch}/numpy/{,core,distutils,f2py,fft,lib,linalg,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests
 # Don't package testsuite

%else

%define hpc_module_pname python${py_ver/.*/}-numpy
%{python_expand # Don't package testsuite
py_ver=%{$python_version}
sitesearch_path=`$python -c "import sysconfig as s; 
print(s.get_paths(vars={'platbase':'%{hpc_prefix}','base':'%{hpc_prefix}'}).get('platlib'))"`
rm -rf 
%{buildroot}${sitesearch_path}/numpy/{,core,distutils,f2py,fft,lib,linalg,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests
%hpc_write_modules_files
#%%Module1.0#####################################################################

proc ModulesHelp { } {

puts stderr " "
puts stderr "This module loads the %{pname} library built with the 
%{compiler_family} compiler"
puts stderr "toolchain."
puts stderr "\nVersion %{version}\n"

}
module-whatis "Name: %{pname} built with %{compiler_family} compiler"
module-whatis "Version: %{version}"
module-whatis "Category: python module"
module-whatis "Description: %{SUMMARY:0}"
module-whatis "URL %{url}"

set     version             %{version}

if [ expr [ module-info mode load ] || [module-info mode display ] ] {
  if { ![is-loaded intel] && ![is-loaded openblas] } {
      module load openblas
    }
}

prepend-path    PATH                %{hpc_bindir}
prepend-path    PYTHONPATH          ${sitesearch_path}

setenv          %{hpc_upcase_trans_hyph %{pname}}_DIR        %{hpc_prefix}
setenv          %{hpc_upcase_trans_hyph %{pname}}_BIN        %{hpc_bindir}

family "NumPy"
EOF
}
%endif

%if %{without hpc}
%post
%python_install_alternative f2py

%postun
%python_uninstall_alternative f2py
%endif

%files %{python_files}
%defattr(-,root,root)
%doc *.txt
%python3_only %{p_bindir}/f2py3*
%{p_python_sitearch}/numpy/
%{p_python_sitearch}/numpy-%{version}-py*.egg-info
%exclude %{p_python_sitearch}/numpy/*/*/*.c
%exclude %{p_python_sitearch}/numpy/*/*/*.h
%exclude %{p_python_sitearch}/numpy/*/*/*/*.h
%exclude %{p_python_sitearch}/numpy/*/*/*/*/*.h
%exclude %{p_python_sitearch}/numpy/core/lib/libnpymath.a

%if %{with hpc}
%define hpc_module_pname python%(a=%{hpc_python_version}; echo -n 
${a/.*/})-numpy
%{hpc_modules_files}
%{hpc_dirs}
%{p_bindir}/f2py
%dir %{hpc_bindir}
%dir %{hpc_libdir}/python%{hpc_python_version}
%dir %{p_python_sitearch}
%else
%python_alternative %{p_bindir}/f2py
%endif

%files %{python_files devel}
%defattr(-,root,root)
%license LICENSE.txt
%{p_python_sitearch}/numpy/*/*/*.c
%{p_python_sitearch}/numpy/*/*/*.h
%{p_python_sitearch}/numpy/*/*/*/*.h
%{p_python_sitearch}/numpy/*/*/*/*/*.h
%{p_python_sitearch}/numpy/core/lib/libnpymath.a

%changelog
++++++ _multibuild ++++++
<multibuild>
  <package>standard</package>
  <package>gnu-hpc</package>
</multibuild>
++++++ numpy-1.9.0-remove-__declspec.patch ++++++
From: [email protected]
Date: 2014-09-09 04:45:00 +0000
Subject: Remove windows-specific function
Upstream: openSUSE Fix
References: 
    http://lists.opensuse.org/opensuse-packaging/2014-09/msg00004.html
    http://lists.opensuse.org/opensuse-packaging/2014-09/msg00005.html

__declspec(thread) is a windows-specific function that is causing
spurious compiler warnings.  These warnings can be safely ignored,
but are being falsely flagged as serious problems that cause the
build to fail.  Since this is windows-specific, it can be 
safely removed.


--- a/numpy/core/setup_common.py
+++ b/numpy/core/setup_common.py
@@ -190,7 +190,7 @@ OPTIONAL_FUNCTION_ATTRIBUTES_WITH_INTRIN
                                 ]
 
 # variable attributes tested via "int %s a" % attribute
-OPTIONAL_VARIABLE_ATTRIBUTES = ["__thread", "__declspec(thread)"]
+OPTIONAL_VARIABLE_ATTRIBUTES = ["__thread"]
 
 # Subset of OPTIONAL_STDFUNCS which may already have HAVE_* defined by Python.h
 OPTIONAL_STDFUNCS_MAYBE = [
++++++ numpy-buildfix.patch ++++++
--- a/numpy/distutils/command/autodist.py
+++ b/numpy/distutils/command/autodist.py
@@ -52,7 +52,7 @@ def check_compiler_gcc4(cmd):
     """Return True if the C compiler is GCC 4.x."""
     cmd._check_compiler()
     body = textwrap.dedent("""
-        int
+        void
         main()
         {
         #if (! defined __GNUC__) || (__GNUC__ < 4)
--- a/numpy/distutils/command/install.py
+++ b/numpy/distutils/command/install.py
@@ -69,7 +69,7 @@ class install(old_install):
                 need_rewrite = False
                 for l in f:
                     l = l.rstrip()
-                    if ' ' in l:
+                    if ' ' in l and '%dir ' not in l:
                         need_rewrite = True
                         l = '"%s"' % (l)
                     lines.append(l)

Reply via email to