File rayon.spec of Package rayon

#
# spec file for package rayon
#
# Copyright (c) 2015, Martin Hauke <mardnh@gmx.de>
#
# 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:           rayon
Version:        1.4.3
Release:        0
Summary:        A data visualization library written in Python
License:        GPL-2.0
Group:          Development/Languages/Python
Url:            http://tools.netsa.cert.org/ipa
Source:         http://tools.netsa.cert.org/releases/%{name}-%{version}.tar.gz
Patch0:		rayon-remove-unneeded-licensefile.diff
BuildRequires:  fdupes
BuildRequires:  python-devel
BuildRequires:  python-netsa
Requires:	python-cairo
Recommends:	python-wxWidgets
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Rayon is a Python library and set of tools for generating basic
two-dimensional statistical visualizations. Rayon can be used to
automate reporting; provide data visualization in command-line, GUI or
web applications; or do ad-hoc exploratory data analysis.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1

%build
python setup.py build

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

%files
%defattr(-,root,root)
%doc GPL.txt LICENSE-OPENSOURCE.txt README
%doc rayon-%{version}.pdf
%doc doc/
%{_bindir}/ry*
%{_mandir}/man?/ry*
%{py_sitedir}/*

%changelog
openSUSE Build Service is sponsored by