Accepting request 688618 from devel:languages:python

- Make CairoSVG only python3 dependency and simply not provide
  the png conversion feature on python2

OBS-URL: https://build.opensuse.org/request/show/688618
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pygal?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2019-03-29 19:37:37 +00:00 committed by Git OBS Bridge
commit ddb3ef2147
2 changed files with 16 additions and 10 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 26 09:21:16 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Make CairoSVG only python3 dependency and simply not provide
the png conversion feature on python2
-------------------------------------------------------------------
Tue Dec 4 12:52:14 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pygal
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@ -17,33 +17,33 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pygal
Version: 2.4.0
Release: 0
Summary: A python svg graph plotting library
License: LGPL-3.0-or-later
Group: Development/Languages/Python
Url: http://pygal.org/
URL: http://pygal.org/
Source: https://files.pythonhosted.org/packages/source/p/pygal/pygal-%{version}.tar.gz
Source10: https://raw.githubusercontent.com/Kozea/pygal/%{version}/COPYING
BuildRequires: %{python_module CairoSVG}
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pyquery}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-CairoSVG
Requires: python-lxml
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%ifpython3
Recommends: python-CairoSVG
%endif
# SECTION test requirements
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module pytest}
# /SECTION
Requires: python-lxml
Recommends: python-CairoSVG
BuildArch: noarch
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description