Accepting request 514467 from devel:languages:python
- Add xlocale.patch: xlocale.h: don't use obsolete <xlocale.h> OBS-URL: https://build.opensuse.org/request/show/514467 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=55
This commit is contained in:
parent
356eb6c492
commit
b0104303c0
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 5 14:24:59 UTC 2017 - schwab@suse.de
|
||||||
|
|
||||||
|
- Add xlocale.patch:
|
||||||
|
xlocale.h: don't use obsolete <xlocale.h>
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 6 16:44:43 UTC 2017 - toddrme2178@gmail.com
|
Thu Apr 6 16:44:43 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@ -28,6 +28,8 @@ Source: https://pypi.io/packages/source/n/numpy/numpy-%{version}.zip
|
|||||||
Patch0: numpy-buildfix.patch
|
Patch0: numpy-buildfix.patch
|
||||||
# PATCH-FIX-OPENSUSE numpy-1.9.0-remove-__declspec.patch -- fix for spurious compiler warnings that cause build failure
|
# 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
|
Patch1: numpy-1.9.0-remove-__declspec.patch
|
||||||
|
# PATCH-FIX-UPSTREAM don't use obsolete <xlocale.h>
|
||||||
|
Patch2: xlocale.patch
|
||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-matplotlib
|
BuildRequires: python3-matplotlib
|
||||||
@ -71,6 +73,7 @@ This package provides the documentation for NumPy
|
|||||||
%setup -q -n numpy-%{version}
|
%setup -q -n numpy-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
# drop build date from doc to fix build-compare
|
# drop build date from doc to fix build-compare
|
||||||
sed -i "s/\(html_last_updated_fmt = \).*/\\1None/" doc/source/conf.py
|
sed -i "s/\(html_last_updated_fmt = \).*/\\1None/" doc/source/conf.py
|
||||||
|
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 5 14:24:59 UTC 2017 - schwab@suse.de
|
||||||
|
|
||||||
|
- Add xlocale.patch:
|
||||||
|
xlocale.h: don't use obsolete <xlocale.h>
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jun 6 08:15:54 UTC 2017 - manfred99@gmx.ch
|
Tue Jun 6 08:15:54 UTC 2017 - manfred99@gmx.ch
|
||||||
|
|
||||||
|
@ -52,6 +52,8 @@ Source: https://pypi.io/packages/source/n/numpy/numpy-%{version}.zip
|
|||||||
Patch0: numpy-buildfix.patch
|
Patch0: numpy-buildfix.patch
|
||||||
# PATCH-FIX-OPENSUSE numpy-1.9.0-remove-__declspec.patch -- fix for spurious compiler warnings that cause build failure
|
# 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
|
Patch1: numpy-1.9.0-remove-__declspec.patch
|
||||||
|
# PATCH-FIX-UPSTREAM don't use obsolete <xlocale.h>
|
||||||
|
Patch2: xlocale.patch
|
||||||
BuildRequires: blas-devel
|
BuildRequires: blas-devel
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -111,6 +113,7 @@ This package contains files for developing applications using numpy.
|
|||||||
%setup -q -n numpy-%{version}
|
%setup -q -n numpy-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
# Fix non-executable scripts
|
# 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
|
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
|
||||||
|
|
||||||
|
12
xlocale.patch
Normal file
12
xlocale.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
Index: numpy-1.12.1/numpy/core/src/multiarray/numpyos.c
|
||||||
|
===================================================================
|
||||||
|
--- numpy-1.12.1.orig/numpy/core/src/multiarray/numpyos.c
|
||||||
|
+++ numpy-1.12.1/numpy/core/src/multiarray/numpyos.c
|
||||||
|
@@ -15,7 +15,6 @@
|
||||||
|
|
||||||
|
#ifdef HAVE_STRTOLD_L
|
||||||
|
#include <stdlib.h>
|
||||||
|
-#include <xlocale.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user