Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Staging:C:DVD
python3-numpy
python3-numpy.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python3-numpy.spec of Package python3-numpy
# # spec file for package python3-numpy # # Copyright (c) 2015 SUSE LINUX 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/ # %define with_atlas 0 Name: python3-numpy Version: 1.9.3 Release: 0 Url: http://www.numpy.org/ Summary: NumPy array processing for numbers, strings, records and objects License: BSD-3-Clause Group: Development/Libraries/Python Source: https://pypi.python.org/packages/source/n/numpy/numpy-%{version}.tar.gz # PATCH-FIX-OPENSUSE numpy-buildfix.patch -- openSUSE-specific build fixes 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 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: blas-devel BuildRequires: fdupes BuildRequires: gcc-fortran BuildRequires: lapack-devel BuildRequires: python3 >= 3.2 BuildRequires: python3-devel >= 3.2 # Cython needed for mtrand.c regenerating (python3.3) BuildRequires: python3-Cython %if %{with_atlas} == 1 BuildRequires: libatlas3-devel %endif %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} Requires: blas-devel Requires: gcc-fortran Requires: lapack-devel Requires: python3-devel >= %{py3_ver} %if %{with_atlas} == 1 Requires: libatlas3-devel %endif %description devel This package contains files for developing applications using numpy. %prep %setup -q -n numpy-%{version} %patch0 -p1 %patch1 -p1 # 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" python3 setup.py build %install python3 setup.py install --root="%{buildroot}" --prefix="%{_prefix}" rm -rf %{buildroot}%{python3_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 %files %defattr(-,root,root) %doc *.txt %{_bindir}/f2py3 %{python3_sitearch}/numpy/ %{python3_sitearch}/numpy-%{version}-py*.egg-info %exclude %{python3_sitearch}/numpy/*/*/*.c %exclude %{python3_sitearch}/numpy/*/*.h %exclude %{python3_sitearch}/numpy/*/*/*.h %exclude %{python3_sitearch}/numpy/*/*/*/*.h %exclude %{python3_sitearch}/numpy/core/lib/libnpymath.a %files devel %defattr(-,root,root) %{python3_sitearch}/numpy/*/*/*.c %{python3_sitearch}/numpy/*/*.h %{python3_sitearch}/numpy/*/*/*.h %{python3_sitearch}/numpy/*/*/*/*.h %{python3_sitearch}/numpy/core/lib/libnpymath.a %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor