ff23b9631f
Removed tests for unsupported openSUSE versions (forwarded request 116087 from TheBlackCat) OBS-URL: https://build.opensuse.org/request/show/116088 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=18
121 lines
4.2 KiB
RPMSpec
121 lines
4.2 KiB
RPMSpec
#
|
|
# spec file for package python-numpy
|
|
#
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-numpy
|
|
Version: 1.6.1
|
|
Release: 0
|
|
Url: http://sourceforge.net/projects/numpy
|
|
Summary: NumPy array processing for numbers, strings, records and objects
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/Python
|
|
Source: numpy-%{version}.tar.gz
|
|
Patch1: numpy-buildfix.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} > 1130
|
|
BuildRequires: blas-devel
|
|
BuildRequires: lapack-devel
|
|
%else
|
|
BuildRequires: blas
|
|
BuildRequires: lapack
|
|
%endif
|
|
BuildRequires: python-devel
|
|
%if 0%{?suse_version}
|
|
BuildRequires: gcc-fortran
|
|
%py_requires
|
|
%if 0%{?suse_version} > 1020
|
|
BuildRequires: fdupes
|
|
%endif
|
|
%else
|
|
BuildRequires: gcc-gfortran
|
|
%endif
|
|
Provides: numpy = %{version}
|
|
%if ! 0%{?fedora_version}
|
|
Provides: python-numeric = %{version}
|
|
Obsoletes: python-numeric < %{version}
|
|
%endif
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
%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.
|
|
|
|
%package devel
|
|
Summary: Development files for numpy applications
|
|
Group: Development/Libraries/Python
|
|
Requires: %{name} = %{version}
|
|
%if 0%{?suse_version} > 1130
|
|
Requires: blas-devel
|
|
Requires: lapack-devel
|
|
%else
|
|
Requires: blas
|
|
Requires: lapack
|
|
%endif
|
|
Requires: python-devel
|
|
%if 0%{?suse_version}
|
|
Requires: gcc-fortran
|
|
%else
|
|
Requires: gcc-gfortran
|
|
%endif
|
|
|
|
%description devel
|
|
This package contains files for developing applications using numpy.
|
|
|
|
%prep
|
|
%setup -q -n numpy-%{version}
|
|
%patch1 -p0
|
|
sed -i "1d" numpy/{compat/setup{,scons},distutils/{conv_template,cpuinfo,exec_command,from_template,setup,setupscons,system_info},f2py/{auxfuncs,capi_maps,cb_rules,cfuncs,common_rules,crackfortran,diagnose,docs/usersguide/setup_example,f2py2e,f90mod_rules,func2subr,__init__,rules,setup,setupscons,use_rules},ma/setup{,scons},matrixlib/setup{,scons},setup,setupscons,testing/print_coercion_tables,testing/setup{,scons}}.py # Fix non-executable scripts
|
|
|
|
%build
|
|
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
|
|
|
|
%install
|
|
python setup.py install --root="%{buildroot}" --prefix="%{_prefix}"
|
|
rm -rf %{buildroot}%{python_sitearch}/numpy/{,core,distutils,f2py,fft,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests # Don't package testsuite
|
|
%if 0%{?suse_version} > 1020
|
|
%fdupes -s %{buildroot}%{_prefix}
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc *.txt
|
|
%{_bindir}/*
|
|
%{python_sitearch}/*
|
|
%exclude %{python_sitearch}/numpy/*/*/*.c
|
|
%exclude %{python_sitearch}/numpy/*/*.h
|
|
%exclude %{python_sitearch}/numpy/*/*/*.h
|
|
%exclude %{python_sitearch}/numpy/*/*/*/*.h
|
|
%exclude %{python_sitearch}/numpy/core/lib/libnpymath.a
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{python_sitearch}/numpy/*/*/*.c
|
|
%{python_sitearch}/numpy/*/*.h
|
|
%{python_sitearch}/numpy/*/*/*.h
|
|
%{python_sitearch}/numpy/*/*/*/*.h
|
|
%{python_sitearch}/numpy/core/lib/libnpymath.a
|
|
|
|
%changelog
|