File python-sympy.spec of Package python-sympy

#
# spec file for package python-sympy
#
# 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 modname sympy
Name:           python-%{modname}
Version:        0.7.2
Release:        0
Summary:        Python library for symbolic mathematics
License:        BSD-3-Clause
Group:          Development/Libraries/Python
Url:            http://code.google.com/p/%{modname}/
Source0:        http://%{modname}.googlecode.com/files/%{modname}-%{version}.tar.gz
BuildRequires:  python-devel >= 2.5
Requires:       python-base >= 2.5
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{py_requires}
%else
BuildArch:      noarch
%endif

%description
SymPy is a Python library for symbolic mathematics. It aims to become
a full-featured computer algebra system (CAS) while keeping the code
as simple as possible in order to be comprehensible and easily
extensible. SymPy is written entirely in Python and does not require
any external libraries.

%prep
%setup -q -n %{modname}-%{version}
# For rpmlint warning: remove shebang from python library:
sed -i '/^#!/d' ./%{modname}/galgebra/GA.py
sed -i '/^#!/d' ./%{modname}/galgebra/tests/test_GA.py
sed -i '/^#!/d' ./%{modname}/mpmath/tests/runtests.py

%build
python setup.py build

%install
python setup.py install --root=%{buildroot} --prefix=%{_prefix}

%files
%defattr(-,root,root,-)
%{_bindir}/isympy
%{_mandir}/man1/isympy.1.gz
%{python_sitelib}/%{modname}
%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info

%changelog
openSUSE Build Service is sponsored by