Hello community, here is the log from the commit of package python-scipy for openSUSE:Factory checked in at 2017-07-12 19:36:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-scipy (Old) and /work/SRC/openSUSE:Factory/.python-scipy.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-scipy" Wed Jul 12 19:36:10 2017 rev:25 rq:509559 version:0.19.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-scipy/python-scipy.changes 2017-05-08 19:02:20.193886549 +0200 +++ /work/SRC/openSUSE:Factory/.python-scipy.new/python-scipy.changes 2017-07-12 19:36:10.566906622 +0200 @@ -1,0 +2,28 @@ +Tue Jul 11 19:55:40 UTC 2017 - toddrme2...@gmail.com + +- More rpmlint fixes. + +------------------------------------------------------------------- +Mon Jul 10 18:25:30 UTC 2017 - toddrme2...@gmail.com + +- Update to version 0.19.1 + * #7214: Memory use in integrate.quad in scipy-0.19.0 + * #7258: linalg.matrix_balance gives wrong transformation matrix + * #7262: Segfault in daily testing + * #7273: scipy.interpolate._bspl.evaluate_spline gets wrong type + * #7335: scipy.signal.dlti(A,B,C,D).freqresp() fails + * #7211: BUG: convolve may yield inconsistent dtypes with method changed + * #7216: BUG: integrate: fix refcounting bug in quad() + * #7229: MAINT: special: Rewrite a test of wrightomega + * #7261: FIX: Corrected the transformation matrix permutation + * #7265: BUG: Fix broken axis handling in spectral functions + * #7266: FIX 7262: ckdtree crashes in query_knn. + * #7279: Upcast half- and single-precision floats to doubles in BSpline... + * #7336: BUG: Fix signal.dfreqresp for StateSpace systems + * #7419: Fix several issues in sparse.load_npz, save_npz + * #7420: BUG: stats: allow integers as kappa4 shape parameters +- Add no_implicit_decl.patch + Fixes implicit-pointer-decl warnings and implicit-fortify-decl error. +- Fix wrong-script-interpreter rpmlint error. + +------------------------------------------------------------------- Old: ---- scipy-0.19.0.zip New: ---- no_implicit_decl.patch scipy-0.19.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-scipy.spec ++++++ --- /var/tmp/diff_new_pack.afyHkU/_old 2017-07-12 19:36:14.610335454 +0200 +++ /var/tmp/diff_new_pack.afyHkU/_new 2017-07-12 19:36:14.614334889 +0200 @@ -16,45 +16,43 @@ # %if 0%{?is_opensuse} == 0 -%bcond_with openblas + %bcond_with openblas %else -%ifarch armv6l -%bcond_with openblas -%ifarch s390x -%bcond_with openblas -%else -%else -%if 0%{?sle_version} == 120200 -%ifarch i586 -%bcond_with openblas -%else -%bcond_without openblas -%endif -%else -%bcond_without openblas -%endif -%endif -%endif + %ifarch armv6l s390x + %bcond_with openblas + %else + %if 0%{?sle_version} == 120200 + %ifarch i586 + %bcond_with openblas + %else + %bcond_without openblas + %endif + %else + %bcond_without openblas + %endif + %endif %endif %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-scipy -Version: 0.19.0 +Version: 0.19.1 Release: 0 Summary: Scientific Tools for Python License: BSD-3-Clause and LGPL-2.0+ Group: Development/Libraries/Python Url: http://www.scipy.org -Source0: https://files.pythonhosted.org/packages/source/s/scipy/scipy-%{version}.zip +Source0: https://files.pythonhosted.org/packages/source/s/scipy/scipy-%{version}.tar.gz +# PATCH-FIX-OPENSUSE - no_implicit_decl.patch - Fix implicit-pointer-decl warnings and implicit-fortify-decl error +Patch0: no_implicit_decl.patch BuildRequires: blas-devel BuildRequires: fdupes BuildRequires: fftw-devel BuildRequires: gcc-c++ BuildRequires: gcc-fortran BuildRequires: lapack-devel +BuildRequires: lapacke-devel BuildRequires: suitesparse-devel-static BuildRequires: swig -BuildRequires: unzip %if %{with openblas} BuildRequires: openblas-devel %endif @@ -63,8 +61,7 @@ BuildRequires: %{python_module devel} BuildRequires: %{python_module numpy-devel >= 1.5.1} BuildRequires: %{python_module setuptools} -Requires: %{python_module numpy >= 1.5.1} -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires: python-numpy >= 1.5.1 %python_subpackages %description @@ -80,6 +77,7 @@ %prep %setup -q -n scipy-%{version} +%patch0 -p1 find . -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python||" {} \; cat > site.cfg << EOF @@ -99,17 +97,25 @@ export FFTW=%{_libdir} export BLAS=%{_libdir} export LAPACK=%{_libdir} +%if %{with openblas} export OPENBLAS=%{_libdir} +%endif %python_exec setup.py config_fc --fcompiler=gnu95 --noarch build %install %python_install -%{python_expand find %{buildroot}/%{python_sitearch}/scipy -type d -name tests | xargs rm -rf # Don't ship tests +%{python_expand pushd %{buildroot}%{$python_sitearch} +find scipy -type d -name tests | xargs rm -rf # Don't ship tests # fix executability issue -chmod +x %{buildroot}/%{python_sitearch}/scipy/io/arff/arffread.py -chmod +x %{buildroot}/%{python_sitearch}/scipy/special/spfun_stats.py -chmod +x %{buildroot}/%{python_sitearch}/scipy/special/generate_ufuncs.py -%fdupes %{buildroot}%{python_sitearch} +modpaths=( "scipy/io/arff/arffread.py" "scipy/special/spfun_stats.py" "scipy/special/generate_ufuncs.py" ) +for f in "${modpaths[@]}" ; do +chmod a+x $f +sed -i "s|#! /usr/bin/env python|#!%__$python|" $f +$python -m compileall -d %{$python_sitearch} `dirname $f` +$python -O -m compileall -d %{$python_sitearch} `dirname $f` +done +popd +%fdupes %{buildroot}%{$python_sitearch} } %files %{python_files} ++++++ no_implicit_decl.patch ++++++ From: toddrme2...@gmail.com Date: 2017-07-40 Subject: Fix implicit-pointer-decl warnings and implicit-fortify-decl errors Fix the following warnings: Program is using implicit definitions of functions getting pointers or implemented by macros. W: python-scipy implicit-pointer-decl scipy/sparse/linalg/dsolve/SuperLU/SRC/dmach.c:52 W: python-scipy implicit-pointer-decl scipy/sparse/linalg/dsolve/SuperLU/SRC/smach.c:52 And fix the following error: I: Program is using implicit definitions of special functions. E: python-scipy implicit-fortify-decl scipy/spatial/qhull_misc.h:23 --- --- a/scipy/sparse/linalg/dsolve/SuperLU/SRC/dmach.c +++ b/scipy/sparse/linalg/dsolve/SuperLU/SRC/dmach.c @@ -1,6 +1,7 @@ #include <float.h> #include <math.h> #include <stdio.h> +#include <string.h> double dmach(char *cmach) { --- a/scipy/sparse/linalg/dsolve/SuperLU/SRC/smach.c +++ b/scipy/sparse/linalg/dsolve/SuperLU/SRC/smach.c @@ -1,6 +1,7 @@ #include <float.h> #include <math.h> #include <stdio.h> +#include <string.h> float smach(char *cmach) { --- a/scipy/spatial/qhull_misc.h +++ b/scipy/spatial/qhull_misc.h @@ -3,6 +3,8 @@ */ #include "qhull_misc_config.h" +#include <stdio.h> +#include <lapacke.h> #if defined(NO_APPEND_FORTRAN) #if defined(UPPERCASE_FORTRAN)