File python-scikits-sparse.spec of Package python-scikits-sparse
#
# spec file for package python-scikits-sparse
#
# Copyright (c) 2013 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 kitname sparse
%define modname scikits.%{kitname}
Name: python-scikits-%{kitname}
Summary: Sparse matrix code in Python
License: GPL-2.0+
Group: Development/Libraries/Python
Version: 0.1
Release: 0
Source0: http://pypi.python.org/packages/source/s/scikits.%{kitname}/scikits.%{kitname}-%{version}.tar.gz
Patch0: scikits.sparse-numpy-includes.patch
Url: http://pypi.python.org/pypi/scikits.%{kitname}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: python-scipy
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gcc-fortran
BuildRequires: latex2html
BuildRequires: python-Cython
BuildRequires: python-Pygments
BuildRequires: python-Sphinx
BuildRequires: python-devel
BuildRequires: python-numpy-devel
BuildRequires: python-scipy
BuildRequires: python-setuptools
BuildRequires: suitesparse-devel
%if 0%{?suse_version} <= 1110
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%else
%{py_requires}
%endif
%description
scikits.sparse is a home for sparse matrix code in Python that plays well
with scipy.sparse, but that is somehow unsuitable for inclusion in scipy
proper. Usually this will be because it is released under the GPL.
So far we have a wrapper for the CHOLMOD library for sparse cholesky
decomposition
%package doc
Summary: Documentation for %{name}
Group: Documentation/HTML
Recommends: %{name} = %{version}
%description doc
Documentation and help files for %{name}
%prep
%setup -q -n scikits.%{kitname}-%{version}
%patch0 -p1
%build
#make -C doc PAPER=letter html
cython scikits/sparse/cholmod.pyx
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes %{buildroot}%{python_sitearch}
make -C doc PAPER=letter html
rm doc/_build/html/.buildinfo
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING
%dir %{python_sitearch}/scikits/
%{python_sitearch}/scikits/%{kitname}/
%{python_sitearch}/scikits.%{kitname}-%{version}-py%{py_ver}.egg-info/
%{python_sitearch}/scikits.%{kitname}-%{version}-py%{py_ver}-nspkg.pth
%files doc
%defattr(-,root,root)
%doc README doc/_build/html
%changelog