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:
commit
ddb3ef2147
@ -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>
|
Tue Dec 4 12:52:14 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pygal
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,33 +17,33 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
|
||||||
Name: python-pygal
|
Name: python-pygal
|
||||||
Version: 2.4.0
|
Version: 2.4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A python svg graph plotting library
|
Summary: A python svg graph plotting library
|
||||||
License: LGPL-3.0-or-later
|
License: LGPL-3.0-or-later
|
||||||
Group: Development/Languages/Python
|
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
|
Source: https://files.pythonhosted.org/packages/source/p/pygal/pygal-%{version}.tar.gz
|
||||||
Source10: https://raw.githubusercontent.com/Kozea/pygal/%{version}/COPYING
|
Source10: https://raw.githubusercontent.com/Kozea/pygal/%{version}/COPYING
|
||||||
BuildRequires: %{python_module CairoSVG}
|
|
||||||
BuildRequires: %{python_module Flask}
|
BuildRequires: %{python_module Flask}
|
||||||
BuildRequires: %{python_module lxml}
|
BuildRequires: %{python_module lxml}
|
||||||
BuildRequires: %{python_module pyquery}
|
BuildRequires: %{python_module pyquery}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
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
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module pytest-runner}
|
BuildRequires: %{python_module pytest-runner}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
Requires: python-lxml
|
|
||||||
Recommends: python-CairoSVG
|
|
||||||
BuildArch: noarch
|
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
Loading…
Reference in New Issue
Block a user