Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:smarty12:Python
python-pysparse
python-pysparse.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-pysparse.spec of Package python-pysparse
# # spec file for package python-pysparse # # 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/ # Name: python-pysparse Version: 1.2 Release: 0 Summary: A fast sparse matrix library for Python License: BSD Group: Development/Libraries/Python Url: http://pysparse.sourceforge.net/index.html Source0: pysparse-%{version}-dev224.tar.bz2 Source1: pysparse.rpmlintrc Patch0: pysparse-1.2-fix-implicit-definitions.patch Patch1: pysparse-1.2-fix-no-return-in-nonvoid-function.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %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 BuildRequires: fdupes BuildRequires: python-Pygments BuildRequires: python-Sphinx BuildRequires: python-devel BuildRequires: python-numpy-devel BuildRequires: python-setuptools %description Pysparse is a fast sparse matrix library for Python. It provides several sparse matrix storage formats and conversion methods. It also implements a number of iterative solvers, preconditioners, and interfaces to efficient factorization packages. Both low-level and high-level interfaces are available, each with different strengths. %package doc Summary: The documentation files of %{name} Group: Documentation/HTML %if 0%{?suse_version} >= 1120 BuildArch: noarch %endif %description doc This package contains the html documentation files for %{name}. %prep %setup -q -n pysparse-%{version}-dev224 %patch0 -p1 %patch1 -p1 %build CFLAGS="%{optflags}" python setup.py build %install python setup.py install --prefix %{_prefix} --root %{buildroot} # fix executables permissions find %{buildroot}%{python_sitearch}/pysparse -type f -name *.py -exec %__chmod 755 {} \; chmod 755 %{buildroot}%{python_sitearch}/pysparse/sparse/*sparseMatrix.py %fdupes -s %{buildroot} # build doc export PYTHONPATH=%{buildroot}%{python_sitearch} make -C doc/pysparse PAPER=letter html rm -f doc/pysparse/build/html/.buildinfo # find %{buildroot}%{python_sitearch} -type f -name *.pyc -exec %__sed -i 's|%{buildroot}||g' {} \; %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc CHANGES LICENSE README TODO examples test %{python_sitearch}/* %files doc %defattr(-,root,root,-) %doc doc/pysparse/build/html %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