File python-wordcloud.spec of Package python-wordcloud
#
# spec file for package python-wordcloud
#
# Copyright (c) 2016-2023, 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/
#
%define skip_python2 1
%define skip_python311 1
Name: python-wordcloud
Version: 1.8.2.2
Release: 0
Summary: A little word cloud generator
License: MIT
Group: Development/Languages/Python
#Git-Clone: https://github.com/amueller/word_cloud.git
URL: https://amueller.github.io/word_cloud/
Source: https://files.pythonhosted.org/packages/source/w/wordcloud/wordcloud-%{version}.tar.gz
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module matplotlib}
BuildRequires: %{python_module numpy >= 1.6.1}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Pillow
Requires: python-matplotlib
Requires: python-numpy >= 1.6.1
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: google-droid-fonts
%python_subpackages
%description
A little word cloud generator in Python.
%prep
%setup -q -n wordcloud-%{version}
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%python_clone -a %{buildroot}%{_bindir}/wordcloud_cli
%post
%python_install_alternative wordcloud_cli
%postun
%python_uninstall_alternative wordcloud_cli
%check
#%%pytest
%files %{python_files}
%python_alternative %{_bindir}/wordcloud_cli
%{python_sitearch}/wordcloud
%{python_sitearch}/wordcloud-%{version}-py*.egg-info
%changelog