# # spec file for package spec # # Copyright (c) 2016 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/ # Name: python-qutip Version: 3.1.0 Release: 0 Summary: Quantum Toolbox in Python License: BSD-3-Clause Group: Development/Libraries/Python Url: http://qutip.org/ Source: https://pypi.python.org/packages/source/q/qutip/qutip-%{version}.tar.gz # PATCH-FIX-UPSTREAM qutip-3.1.0-bloch3d.patch -- Fix bloch3d.py build with vtk > 6.0 Patch0: qutip-3.1.0-bloch3d.patch # PATCH-FIX-UPSTREAM qutip-3.1.0-correlation.patch -- Fix correlation.py error with numpy >= 1.10.0 Patch1: qutip-3.1.0-correlation.patch #openblas causes problem in mcsolve #BuildRequires: openblas-devel #BuildRequires: openblas-devel-headers #BuildRequires: libopenblas_pthreads-devel #BuildRequires: libopenblas_pthreads0 #BuildRequires: libopenblasp0 #Just use blas and the actual lib can be changed using update-alternatives BuildRequires: blas-devel BuildRequires: lapack-devel BuildRequires: gcc-fortran BuildRequires: python-Cython >= 0.15 BuildRequires: python-devel >= 2.7 BuildRequires: python-numpy >= 1.7 BuildRequires: python-numpy-devel >= 1.7 BuildRequires: python-setuptools Requires: python-Cython >= 0.15 #It requires matplotlib to plot the results. Requires: python-matplotlib >= 1.2.0 Requires: python-numpy #It does require the headers of python-numpy, or the qutip.testing.run() won't pass. Requires: python-numpy-devel >= 1.7 Requires: python-scipy >= 0.14 Recommends: python-mayavi >= 4.1 Recommends: python-nose >= 1.1.2 Recommends: python-scikits-umfpack Recommends: texlive-latex %description QuTiP is open-source software for simulating the dynamics of closed and open quantum systems. The QuTiP library depends on the excellent Numpy, Scipy, and Cython numerical packages. In addition, graphical output is provided by Matplotlib. QuTiP aims to provide user-friendly and efficient numerical simulations of a wide variety of quantum mechanical problems, including those with Hamiltonians and/or collapse operators with arbitrary time-dependence, commonly found in a wide range of physics applications. QuTiP is freely availablefor use and/or modification on all common platforms. Being free of any licensingfees, QuTiP is ideal for exploring quantum mechanics in research as well as in the classroom. %prep %setup -q -n qutip-%{version} %patch0 -p1 %patch1 -p1 %build python setup.py build --with-f90mc %install python setup.py install --with-f90mc --prefix=%{_prefix} --root=%{buildroot} chmod +x %{buildroot}/%{python_sitearch}/qutip/fortran/setup.py %files %defattr(-,root,root) %{python_sitearch}/* %changelog