File python-scitools.spec of Package python-scitools
#
# spec file for package python-scitools
#
# 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-scitools
Version: 0.9.0
Release: 0
Summary: A Python package containing lots of useful tools for scientific
License: BSD-3-Clause and GPL-2.0+
Group: Development/Libraries/Python
Url: http://code.google.com/p/scitools/
Source0: http://scitools.googlecode.com/files/scitools-%{version}.tar.gz
BuildRequires: python-devel
Requires: python-numpy
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(1))")}
%else
BuildArch: noarch
%endif
%description
SciTools is a Python package containing lots of useful tools for
scientific computing in Python. The package is built on top of other
widely used packages such as NumPy, SciPy, ScientificPython, Gnuplot,
etc.
%prep
%setup -q -n scitools-%{version}
%build
python setup.py build
find . -name "*.py" -exec sed -i "/#!\/usr\/bin.*/d" {} \;
%install
python setup.py install --root %{buildroot} --prefix=%{_prefix} --easyviz_backend matplotlib
%files
%defattr(-,root,root)
%doc ChangeLog README LICENSE
%{_bindir}/scitools
%{_mandir}/man1/scitools.1.gz
%{python_sitelib}/scitools/
%{python_sitelib}/SciTools-%{version}-py%{py_ver}.egg-info
%changelog