From a50349c35b386ddaa29edf16c41509416e029b88 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Thu, 5 Oct 2017 07:03:56 +0000 Subject: [PATCH] Optimize dependencies Weaken dependencies on optional libraries -- cssselect is totally optional (and rarely used), html5lib and beautifulsoup4 are used only for HTML support, while primary use of lxml is processing XML. --- python-lxml.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python-lxml.spec b/python-lxml.spec index 93aad47..23a8a09 100644 --- a/python-lxml.spec +++ b/python-lxml.spec @@ -27,9 +27,9 @@ Summary: %{summary} BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: python2-Cython -Requires: python2-cssselect -Requires: python2-html5lib -Requires: python2-beautifulsoup4 +Recommends: python2-cssselect +Recommends: python2-html5lib +Recommends: python2-beautifulsoup4 %{?python_provide:%python_provide python2-%{modname}} %description -n python2-%{modname} %{_description} @@ -41,9 +41,9 @@ Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-Cython -Requires: python3-cssselect -Requires: python3-html5lib -Requires: python3-beautifulsoup4 +Recommends: python3-cssselect +Recommends: python3-html5lib +Recommends: python3-beautifulsoup4 %{?python_provide:%python_provide python3-%{modname}} %description -n python3-%{modname} %{_description}