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

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
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))")}
BuildArch:      noarch

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,

%setup -q -n scitools-%{version}

python build
find . -name "*.py" -exec sed -i "/#!\/usr\/bin.*/d" {} \;

python install --root %{buildroot} --prefix=%{_prefix} --easyviz_backend matplotlib


openSUSE Build Service is sponsored by