File python-abstract_rendering.spec of Package python-abstract_rendering
#
# spec file for package python-abstract_rendering
#
# Copyright (c) 2017 SUSE LINUX 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with test
Name: python-abstract_rendering
Version: 0.5.1
Release: 0
Summary: Rendering as a binning process
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://github.com/JosephCottam/AbstractRendering
Source: https://files.pythonhosted.org/packages/source/a/abstract_rendering/abstract_rendering-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy-devel}
BuildRequires: %{python_module scipy}
BuildRequires: %{python_module setuptools}
BuildRequires: c++_compiler
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module nose}
%endif
Requires: python-numpy
Requires: python-scipy
%python_subpackages
%description
Information visualization rests on the idea that a meaningful
relationship can be drawn between pixels and data. This is most
often mediated by geometric entities (such as circles, squares
and text) but always involves pixels eventually to display. In
most systems, the pixels are tucked away under levels of
abstraction in the rendering system. Abstract Rendering takes
the opposite approach: expose the pixels and gain powerful
pixel-level control. This pixel-level power is a complement
many existing visualization techniques. It is an elaboration
on rendering, not an analytic or projection step, so it can be
used as epilogue to many existing techniques.
In standard rendering, geometric objects are projected to an
image and represented on that image's discrete pixels. The
source space is a canvas that contains logically continuous
geometric primitives and the target space is an image that
contains discrete colors. Abstract Rendering fits between
these two states. It introduces a discretization of the data
at the pixel-level, but not necessarily all the way to colors.
This enables many pixel-level concerns to be efficiently and
concisely captured.
%prep
%setup -q -n abstract_rendering-%{version}
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%if %{with test}
%check
%python_expand nosetests-%{$python_bin_suffix}
%endif
%files %{python_files}
%defattr(-,root,root,-)
%{python_sitearch}/*
%changelog