File python-graphcanvas.spec of Package python-graphcanvas
#
# spec file for package python-graphcanvas
#
# 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 graphcanvas
Name: python-%{modname}
Version: 4.0.2
Release: 0
Summary: Interactive graph (network) visualization
License: BSD-3-Clause
Group: Development/Libraries/Python
Url: https://pypi.python.org/pypi/graphcanvas/
Source: http://www.enthought.com/repo/ets/%{modname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: python-devel
BuildRequires: python-numpy
BuildRequires: python-setuptools
BuildRequires: python-traits
Requires: python-numpy
Requires: python-traits
%if 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%else
BuildArch: noarch
%py_requires
%endif
%description
The etsdevtools project includes a set of packages that can be used during the
development of a software project, for understanding, debugging, testing, and
inspecting code.
- etsdevtools.debug: A collection of debugging tools, not to be included
in production code. NOTE: These tools are functional, but are not being
developed or supported. They have been mainly superceded by the tools
in the Enthought Developer Tool Suite.
- etsdevtools.developer: A collection of
utilities, designed to ease the development and debugging of Traits-based
programs. They can be used as plug-ins to your Envisage application while
you are developing it, and then removed when you are ready to release it.
- etsdevtools.endo: A Traits-aware tool for processing API documentation
of Python code. It extracts not only docstrings, but also plain comments
that immediately precede variable assignments (both module-scope variables
and class attributes).
Part of the Enthought Tool Suite (ETS).
%prep
%setup -q -n %{modname}-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes -s %{buildroot}
%files
%defattr(-,root,root,-)
%doc README.rst examples/
%{python_sitelib}/%{modname}/
%{python_sitelib}/%{modname}-%{version}-py*.egg-info/
%changelog