Hello community,

here is the log from the commit of package python-numpy for openSUSE:Factory 
checked in at 2017-04-19 18:08:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-numpy (Old)
 and      /work/SRC/openSUSE:Factory/.python-numpy.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-numpy"

Wed Apr 19 18:08:20 2017 rev:53 rq:486233 version:1.12.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-numpy/python-numpy-doc.changes    
2017-01-25 22:34:55.341429732 +0100
+++ /work/SRC/openSUSE:Factory/.python-numpy.new/python-numpy-doc.changes       
2017-04-19 18:08:23.618483980 +0200
@@ -1,0 +2,25 @@
+Thu Apr  6 16:44:43 UTC 2017 - [email protected]
+
+- Update to version 1.12.1
+  * Fix wrong future nat warning and equiv type logic error...
+  * Fix wrong masked median for some special cases
+  * Place np.average in inline code
+  * Work around isfinite inconsistency on i386
+  * Guard against replacing constants without '_' spec in f2py.
+  * Fix mean for float 16 non-array inputs for 1.12
+  * Fix calling python api with error set and minor leaks for...
+  * Make iscomplexobj compatible with custom dtypes again
+  * Fix undefined behaviour induced by bad __array_wrap__
+  * Fix MaskedArray.__setitem__
+  * PPC64el machines are POWER for Fortran in f2py
+  * Look up methods on MaskedArray in `_frommethod`
+  * Remove extra digit in binary_repr at limit
+  * Fix deepcopy regression for empty arrays.
+  * Fix ma.median for empty ndarrays
+
+-------------------------------------------------------------------
+Fri Feb 17 15:19:47 UTC 2017 - [email protected]
+
+- Switch to single-spec version
+
+-------------------------------------------------------------------
--- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes        
2017-01-25 22:34:55.373424892 +0100
+++ /work/SRC/openSUSE:Factory/.python-numpy.new/python-numpy.changes   
2017-04-19 18:08:24.110414395 +0200
@@ -1,0 +2,36 @@
+Thu Apr  6 16:44:43 UTC 2017 - [email protected]
+
+- Update to version 1.12.1
+  * Fix wrong future nat warning and equiv type logic error...
+  * Fix wrong masked median for some special cases
+  * Place np.average in inline code
+  * Work around isfinite inconsistency on i386
+  * Guard against replacing constants without '_' spec in f2py.
+  * Fix mean for float 16 non-array inputs for 1.12
+  * Fix calling python api with error set and minor leaks for...
+  * Make iscomplexobj compatible with custom dtypes again
+  * Fix undefined behaviour induced by bad __array_wrap__
+  * Fix MaskedArray.__setitem__
+  * PPC64el machines are POWER for Fortran in f2py
+  * Look up methods on MaskedArray in `_frommethod`
+  * Remove extra digit in binary_repr at limit
+  * Fix deepcopy regression for empty arrays.
+  * Fix ma.median for empty ndarrays
+- Further updates to macro usage.
+
+-------------------------------------------------------------------
+Mon Feb 27 18:21:12 UTC 2017 - [email protected]
+
+- Fix macro usage.
+
+-------------------------------------------------------------------
+Thu Feb 23 18:36:54 UTC 2017 - [email protected]
+
+- Fix -devel package dependency
+
+-------------------------------------------------------------------
+Fri Feb 17 15:19:37 UTC 2017 - [email protected]
+
+- Switch to single-spec version
+
+-------------------------------------------------------------------

Old:
----
  numpy-1.12.0.zip

New:
----
  numpy-1.12.1.zip

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

Other differences:
------------------
++++++ python-numpy-doc.spec ++++++
--- /var/tmp/diff_new_pack.a7Tsd0/_old  2017-04-19 18:08:25.434227135 +0200
+++ /var/tmp/diff_new_pack.a7Tsd0/_new  2017-04-19 18:08:25.438226569 +0200
@@ -16,23 +16,8 @@
 #
 
 
-%define modname numpy
-%define docname numpydoc
-%define docvers 0.4
-%if 0%{?suse_version}
-%if 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib())")}
-%else
-BuildArch:      noarch
-%py_requires
-%endif
-BuildRequires:  fdupes
-BuildRequires:  gcc-fortran
-%else
-BuildRequires:  gcc-gfortran
-%endif
 Name:           python-numpy-doc
-Version:        1.12.0
+Version:        1.12.1
 Release:        0
 Summary:        Documentation for python-numpy
 License:        BSD-3-Clause
@@ -43,32 +28,27 @@
 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:  blas-devel
-BuildRequires:  lapack-devel
-BuildRequires:  python-Sphinx
-BuildRequires:  python-devel
-BuildRequires:  python-matplotlib
-BuildRequires:  python-numpy-devel = %{version}
-BuildRequires:  python-numpydoc
-BuildRequires:  python-setuptools
+BuildRequires:  python3-Sphinx
+BuildRequires:  python3-devel
+BuildRequires:  python3-matplotlib
+BuildRequires:  python3-numpy-devel = %{version}
+BuildRequires:  python3-numpydoc
+BuildRequires:  python3-setuptools
 BuildRequires: zip
 BuildRequires:  unzip
+BuildRequires:  fdupes
+Provides:       python2-numpy-doc = %{version}
+Provides:       python3-numpy-doc = %{version}
+Provides:       python2-numpy-doc-html = %{version}
+Provides:       python3-numpy-doc-html = %{version}
+Provides:       python2-numpy-doc-pdf = %{version}
+Provides:       python3-numpy-doc-pdf = %{version}
+Obsoletes:      python2-numpy-doc-html < %{version}
+Obsoletes:      python3-numpy-doc-html < %{version}
+Obsoletes:      python2-numpy-doc-pdf < %{version}
+Obsoletes:      python3-numpy-doc-pdf < %{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315
-BuildRequires:  cblas-devel
-%endif
-# LaTeX requirements, not available on SLES
-%if 0%{?suse_version} > 1110 && 0%{?suse_version} != 1315
-BuildRequires:  python-Sphinx-latex
-BuildRequires:  tex(a4wide.sty)
-BuildRequires:  tex(abstract.sty)
-BuildRequires:  tex(amsmath.sty)
-BuildRequires:  tex(article.cls)
-BuildRequires:  tex(epsfig.sty)
-BuildRequires:  tex(expdlist.sty)
-BuildRequires:  tex(verbatim.sty)
-BuildRequires:  tex(xspace.sty)
-%endif
+BuildArch:      noarch
 
 %description
 NumPy is a general-purpose array-processing package designed to
@@ -84,43 +64,6 @@
 
 This package provides the documentation for NumPy
 
-%package html
-Summary:        HTML documentation for python-numpy
-Group:          Development/Libraries/Python
-Recommends:     python-numpy = %{version}
-
-%description html
-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.
-
-This package provides the HTML documentation for NumPy
-
-%package pdf
-Summary:        PDF documentation for python-numpy
-Group:          Development/Libraries/Python
-Recommends:     python-numpy = %{version}
-
-%description pdf
-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.
-
-This package provides the PDF documentation for NumPy
 
 %prep
 %setup -q -n numpy-%{version}
@@ -129,46 +72,23 @@
 # drop build date from doc to fix build-compare
 sed -i "s/\(html_last_updated_fmt = \).*/\\1None/" doc/source/conf.py
 
+
 %build
 # make the documentation
 pushd doc
-make html PYVER=%{py_ver}
+make html PYVER=%{py3_ver}
 popd
 
-# LaTeX building currently broken
-# %if 0%{?suse_version} > 1110 && 0%{?suse_version} != 1315
-# pushd doc
-# make latex PYVER=%{py_ver}
-# make -C build/latex all-pdf PYVER=%{py_ver}
-# popd
-# %endif
 
 %install
 # install the documentation
 mkdir -p %{buildroot}%{_docdir}/python-numpy/
-
-pushd doc/build
-cp -r html %{buildroot}%{_docdir}/python-numpy/
-popd
+cp -r doc/build/html %{buildroot}%{_docdir}/python-numpy/
 %fdupes %{buildroot}%{_docdir}/python-numpy/html/
 
-# LaTeX building currently broken
-# %if 0%{?suse_version} > 1110 && 0%{?suse_version} != 1315
-# pushd doc/build
-# cp -r pdf %{buildroot}%{_docdir}/python-numpy/
-# popd
-# %fdupes %{buildroot}%{_docdir}/python-numpy/pdf/
-# %endif
 
-%files html
+%files
 %defattr(-,root,root)
-%{_docdir}/python-numpy/html/
-
-# LaTeX building currently broken
-# %if 0%{?suse_version} > 1110 && 0%{?suse_version} != 1315
-# %files pdf
-# %defattr(-,root,root)
-# %{_docdir}/python-numpy/pdf/
-# %endif
+%{_docdir}/python-numpy/
 
 %changelog

++++++ python-numpy.spec ++++++
--- /var/tmp/diff_new_pack.a7Tsd0/_old  2017-04-19 18:08:25.454224307 +0200
+++ /var/tmp/diff_new_pack.a7Tsd0/_new  2017-04-19 18:08:25.458223740 +0200
@@ -15,6 +15,7 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 %if 0%{?is_opensuse} == 0
 %bcond_with openblas
 %else
@@ -37,8 +38,10 @@
 %endif
 %endif
 
+
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-numpy
-Version:        1.12.0
+Version:        1.12.1
 Release:        0
 Summary:        NumPy array processing for numbers, strings, records and 
objects
 License:        BSD-3-Clause
@@ -50,29 +53,21 @@
 # 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:  blas-devel
+BuildRequires:  fdupes
+BuildRequires:  gcc-fortran
 BuildRequires:  lapack-devel
 BuildRequires:  unzip
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module Cython}
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
 %if %{with openblas}
 BuildRequires:  openblas-devel
 %endif
-BuildRequires:  python-devel >= 2.6
-BuildRequires:  python-setuptools
-%if 0%{?suse_version} <= 1110
-%{!?python_sitearch: %global python_sitearch %(python -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
-%endif
-%if 0%{?suse_version}
-BuildRequires:  fdupes
-BuildRequires:  gcc-fortran
-%else
-BuildRequires:  gcc-gfortran
-%endif
-%if ! 0%{?fedora_version}
-Provides:       python-numeric = %{version}
-Obsoletes:      python-numeric < %{version}
-%endif
-Provides:       numpy = %{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
+%python_subpackages
+
 %description
 NumPy is a general-purpose array-processing package designed to
 efficiently manipulate large multi-dimensional arrays of arbitrary
@@ -85,25 +80,23 @@
 There are also basic facilities for discrete fourier transform,
 basic linear algebra and random number generation.
 
+
 %package devel
 Summary:        Development files for numpy applications
 Group:          Development/Libraries/Python
 Requires:       %{name} = %{version}
 Requires:       blas-devel
+Requires:       gcc-fortran
 Requires:       lapack-devel
-Requires:       python-devel >= %{py_ver}
+Requires:       python-devel
 %if %{with openblas}
-BuildRequires:  openblas-devel
-%endif
-%if 0%{?suse_version}
-Requires:       gcc-fortran
-%else
-Requires:       gcc-gfortran
+Requires:       openblas-devel
 %endif
 
 %description devel
 This package contains files for developing applications using numpy.
 
+
 %prep
 %setup -q -n numpy-%{version}
 %patch0 -p1
@@ -111,20 +104,23 @@
 # Fix non-executable scripts
 sed -i "1d" 
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
-CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
+export CFLAGS="%{optflags} -fno-strict-aliasing"
+%python_build
+
 
 %install
-python setup.py install --root=%{buildroot} --prefix="%{_prefix}"
-rm -rf 
%{buildroot}%{python_sitearch}/numpy/{,core,distutils,f2py,fft,lib,linalg,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests
 # Don't package testsuite
-%if 0%{?suse_version}
-%fdupes -s %{buildroot}%{_prefix}
-%endif
+%python_exec setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%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
+%fdupes %{buildroot}%{prefix}
 
-%files
+
+%files %{python_files}
 %defattr(-,root,root)
 %doc *.txt
-%{_bindir}/f2py
+%python2_only %{_bindir}/f2py2
+%python3_only %{_bindir}/f2py3
 %{python_sitearch}/numpy/
 %{python_sitearch}/numpy-%{version}-py*.egg-info
 %exclude %{python_sitearch}/numpy/*/*/*.c
@@ -133,8 +129,10 @@
 %exclude %{python_sitearch}/numpy/*/*/*/*.h
 %exclude %{python_sitearch}/numpy/core/lib/libnpymath.a
 
-%files devel
+
+%files %{python_files devel}
 %defattr(-,root,root)
+%doc LICENSE.txt
 %{python_sitearch}/numpy/*/*/*.c
 %{python_sitearch}/numpy/*/*.h
 %{python_sitearch}/numpy/*/*/*.h


Reply via email to