diff --git a/python-pygal.changes b/python-pygal.changes index ee9cbdf..71e70e6 100644 --- a/python-pygal.changes +++ b/python-pygal.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 26 09:21:16 UTC 2019 - Tomáš Chvátal + +- 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 diff --git a/python-pygal.spec b/python-pygal.spec index c127d78..286b946 100644 --- a/python-pygal.spec +++ b/python-pygal.spec @@ -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