forked from pool/python-numpy
Accepting request 47219 from devel:languages:python
Copy from devel:languages:python/python-numpy based on submit request 47219 from user coolo OBS-URL: https://build.opensuse.org/request/show/47219 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=9
This commit is contained in:
parent
9b27577856
commit
6e2acbbf14
11
npy_cpu.diff
11
npy_cpu.diff
@ -1,11 +0,0 @@
|
|||||||
--- numpy/core/include/numpy/npy_cpu.h.orig 2010-05-31 06:37:01.000000000 +0000
|
|
||||||
+++ numpy/core/include/numpy/npy_cpu.h 2010-05-31 06:52:40.000000000 +0000
|
|
||||||
@@ -42,7 +42,7 @@
|
|
||||||
#define NPY_CPU_S390
|
|
||||||
#elif defined(__ia64)
|
|
||||||
#define NPY_CPU_IA64
|
|
||||||
-#elif defined(__parisc__)
|
|
||||||
+#elif defined(__parisc__) || defined(__hppa)
|
|
||||||
/* XXX: Not sure about this one... */
|
|
||||||
#define NPY_CPU_PARISC
|
|
||||||
#else
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:b3019d980110e298536c4bcec99240cca0d55963b4ecc5d02415611e3d1238b6
|
|
||||||
size 1666680
|
|
3
numpy-1.5.0.tar.bz2
Normal file
3
numpy-1.5.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6c208a3b1d2929aa039946d277fdb64af6a6d6c799d0e4cee5b1f52d661db1be
|
||||||
|
size 1910286
|
@ -1,6 +1,8 @@
|
|||||||
--- numpy/distutils/command/install.py
|
Index: numpy/distutils/command/install.py
|
||||||
+++ numpy/distutils/command/install.py
|
===================================================================
|
||||||
@@ -58,7 +58,7 @@
|
--- numpy/distutils/command/install.py.orig 2010-08-04 12:53:20.000000000 +0200
|
||||||
|
+++ numpy/distutils/command/install.py 2010-09-06 10:29:18.119261319 +0200
|
||||||
|
@@ -64,7 +64,7 @@ class install(old_install):
|
||||||
need_rewrite = False
|
need_rewrite = False
|
||||||
for l in f.readlines():
|
for l in f.readlines():
|
||||||
l = l.rstrip()
|
l = l.rstrip()
|
||||||
@ -9,3 +11,16 @@
|
|||||||
need_rewrite = True
|
need_rewrite = True
|
||||||
l = '"%s"' % (l)
|
l = '"%s"' % (l)
|
||||||
lines.append(l)
|
lines.append(l)
|
||||||
|
Index: numpy/distutils/command/autodist.py
|
||||||
|
===================================================================
|
||||||
|
--- numpy/distutils/command/autodist.py.orig 2010-08-04 12:53:20.000000000 +0200
|
||||||
|
+++ numpy/distutils/command/autodist.py 2010-09-06 10:29:31.835385151 +0200
|
||||||
|
@@ -28,7 +28,7 @@ def check_compiler_gcc4(cmd):
|
||||||
|
"""Return True if the C compiler is GCC 4.x."""
|
||||||
|
cmd._check_compiler()
|
||||||
|
body = """
|
||||||
|
-int
|
||||||
|
+void
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
#ifndef __GNUC__ && (__GNUC__ >= 4)
|
||||||
|
@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 6 08:32:07 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
- update to 1.5.0 to fix build against python 2.7
|
||||||
|
|
||||||
|
highlights 1.3 -> 1.4:
|
||||||
|
* New datetime dtype support to deal with dates in arrays
|
||||||
|
* Faster import time
|
||||||
|
* Extended array wrapping mechanism for ufuncs
|
||||||
|
* New Neighborhood iterator (C-level only)
|
||||||
|
* C99-like complex functions in npymath
|
||||||
|
|
||||||
|
highlights 1.4 -> 1.5:
|
||||||
|
* support for python3 and python 2.7
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 31 07:14:03 UTC 2010 - bg@novell.com
|
Mon May 31 07:14:03 UTC 2010 - bg@novell.com
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-numpy (Version 1.3.0)
|
# spec file for package python-numpy (Version 1.5.0)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -21,8 +21,8 @@ Name: python-numpy
|
|||||||
Summary: NumPy: array processing for numbers, strings, records and objects
|
Summary: NumPy: array processing for numbers, strings, records and objects
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Version: 1.3.0
|
Version: 1.5.0
|
||||||
Release: 3
|
Release: 1
|
||||||
Url: http://sourceforge.net/projects/numpy
|
Url: http://sourceforge.net/projects/numpy
|
||||||
Provides: numpy = %version-%release
|
Provides: numpy = %version-%release
|
||||||
%if 0%{?fedora_version} == 0
|
%if 0%{?fedora_version} == 0
|
||||||
@ -44,7 +44,6 @@ BuildRequires: fdupes
|
|||||||
Source: numpy-%{version}.tar.bz2
|
Source: numpy-%{version}.tar.bz2
|
||||||
Source1: python-numpy-rpmlintrc
|
Source1: python-numpy-rpmlintrc
|
||||||
Patch1: numpy-buildfix.patch
|
Patch1: numpy-buildfix.patch
|
||||||
Patch2: npy_cpu.diff
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -76,7 +75,6 @@ This package contains files for developing applications using numpy.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n numpy-%{version}
|
%setup -q -n numpy-%{version}
|
||||||
%patch1 -p0
|
%patch1 -p0
|
||||||
%patch2
|
|
||||||
for i in $(find . -name "*.py"); do
|
for i in $(find . -name "*.py"); do
|
||||||
sed -i 's|^.*env python$|#!%{_bindir}/python|g' $i
|
sed -i 's|^.*env python$|#!%{_bindir}/python|g' $i
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user