File python-guiqwt.spec of Package python-guiqwt
#
# spec file for package python-guiqwt
#
# Copyright (c) 2017 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/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with test
Name: python-guiqwt
Version: 3.0.3
Release: 0
License: CECILL-2.0
Summary: Python tools for curve and image plotting
Url: https://github.com/PierreRaybaut/guiqwt
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/g/guiqwt/guiqwt-%{version}.zip
BuildRequires: %{python_module devel}
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module PythonQwt >= 0.5}
BuildRequires: %{python_module guidata >= 1.7}
BuildRequires: %{python_module qt5 >= 5.5}
BuildRequires: %{python_module numpy-devel >= 1.6}
BuildRequires: %{python_module scipy >= 0.7}
BuildRequires: %{python_module setuptools}
BuildRequires: c++_compiler
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
Requires: python-Pillow
Requires: python-PythonQwt >= 0.5
Requires: python-guidata >= 1.7
Requires: python-numpy >= 1.6
Requires: python-qt5 >= 5.5
Requires: python-scipy >= 0.7
Recommends: python-dicom >= 0.9.3
Recommends: spyder >= 2.1
%python_subpackages
%description
Based on PythonQwt (a pure Python/PyQt reimplementation of the curve
plotting Qwt C++ library, included in guiqwt base source code) and
on the scientific modules NumPy and SciPy, guiqwt is a Python library
providing efficient 2D data-plotting features (curve/image
visualization and related tools) for interactive computing and
signal/image processing application development. It is based on Qt
graphical user interfaces library, and currently supports both PyQt4
and PyQt5.
Extension to PythonQwt:
* Set of tools for curve and image plotting
* GUI-based application development helpers
%prep
%setup -q -n guiqwt-%{version}
# Fix wrong file end-of-line encoding
sed -i 's/\r$//' CHANGELOG.md
sed -i 's/\r$//' Licence_CeCILL_V2-en.txt
sed -i 's/\r$//' README.md
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
rm -r %{buildroot}%{_bindir}/guiqwt-tests-*
%if %{with test}
%check
%python_exec setup.py test
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGELOG.md Licence_CeCILL_V2-en.txt README.md
%python2_only %{_bindir}/sift-py2
%python3_only %{_bindir}/sift-py3
%{python_sitearch}/guiqwt/
%{python_sitearch}/guiqwt-%{version}-py*.egg-info
%changelog