Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
python3-scipy
python-scipy.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-scipy.spec of Package python3-scipy
# # spec file for package python-scipy # # 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/ # %define modname scipy Name: python-%{modname} Version: 0.10.1 Release: 0 License: BSD-3-Clause Summary: Scientific Tools for Python Url: http://www.scipy.org Group: Development/Libraries/Python Source0: %{modname}-%{version}.tar.gz Patch0: qhull-bufferoverflowstrncat.patch Patch1: rboxlib-bufferoverflowstrncat.patch Patch2: integrate_dop-no-return-in-non-void.patch BuildRequires: fdupes BuildRequires: fftw-devel BuildRequires: gcc-c++ BuildRequires: gcc-fortran BuildRequires: python-devel BuildRequires: python-numpy-devel BuildRequires: blas-devel BuildRequires: lapack-devel BuildRequires: swig %if 0%{?suse_version} > 1140 BuildRequires: suitesparse-devel-static %endif %if 0%{?suse_version} <= 1210 BuildRequires: libatlas3-devel %endif %if 0%{?suse_version} <= 1110 %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %endif Requires: python-numpy BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Scipy is open-source software for mathematics, science, and engineering. The core library is NumPy which provides convenient and fast N-dimensional array manipulation. The SciPy library is built to work with NumPy arrays, and provides many user-friendly and efficient numerical routines such as routines for numerical integration and optimization. Together, they run on all popular operating systems, are quick to install, and are free of charge. NumPy and SciPy are easy to use, but powerful enough to be depended upon by some of the world's leading scientists and engineers. %package weave Summary: Scientific Tools for Python - Weave Group: Development/Libraries/Python Requires: %{name} = %{version} Provides: python-scipy-devel = %{version} %description weave Scipy is open-source software for mathematics, science, and engineering. The core library is NumPy which provides convenient and fast N-dimensional array manipulation. The SciPy library is built to work with NumPy arrays, and provides many user-friendly and efficient numerical routines such as routines for numerical integration and optimization. Together, they run on all popular operating systems, are quick to install, and are free of charge. NumPy and SciPy are easy to use, but powerful enough to be depended upon by some of the world's leading scientists and engineers. %prep %setup -q -n %{modname}-%{version} %patch0 -p1 -b .bufferoverflowstrncat %patch1 -p1 -b .bufferoverflowstrncat %patch2 -p1 find . -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python||" {} \; cat > site.cfg << EOF [amd] library_dirs = %{_libdir} include_dirs = /usr/include/suitesparse:/usr/include/ufsparse amd_libs = amd [umfpack] library_dirs = %{_libdir} include_dirs = /usr/include/suitesparse:/usr/include/ufsparse umfpack_libs = umfpack EOF %build CFLAGS="%{optflags} -fno-strict-aliasing" \ ATLAS=%{_libdir}/atlas \ FFTW=%{_libdir} BLAS=%{_libdir} \ LAPACK=%{_libdir} \ python setup.py config_fc --fcompiler=gnu95 --noarch build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} find %{buildroot}%{python_sitearch}/scipy -type d -name tests | xargs rm -rf # Don't ship tests # Don't ship weave examples, they're marked as documentation: find %{buildroot}%{python_sitearch}/scipy/weave -type d -name examples | xargs rm -rf %fdupes %{buildroot}%{python_sitearch} # fix executability issue chmod +x %{buildroot}%{python_sitearch}/%{modname}/io/arff/arffread.py chmod +x %{buildroot}%{python_sitearch}/%{modname}/io/arff/utils.py chmod +x %{buildroot}%{python_sitearch}/%{modname}/special/spfun_stats.py %files %defattr(-,root,root,-) %doc LICENSE.txt %{python_sitearch}/%{modname}/ %{python_sitearch}/%{modname}-%{version}-py%{py_ver}.egg-info %exclude %{python_sitearch}/%{modname}/weave %files weave %defattr(-,root,root,-) %doc scipy/weave/examples %{python_sitearch}/%{modname}/weave %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