diff --git a/python-soupsieve.changes b/python-soupsieve.changes index c14c0c3..69f4fa6 100644 --- a/python-soupsieve.changes +++ b/python-soupsieve.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 13 13:02:59 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Fri Dec 20 18:49:34 UTC 2019 - Dirk Mueller diff --git a/python-soupsieve.spec b/python-soupsieve.spec index f1bcfe1..358551a 100644 --- a/python-soupsieve.spec +++ b/python-soupsieve.spec @@ -1,7 +1,7 @@ # # spec file for package python-soupsieve # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,7 @@ %define psuffix %{nil} %bcond_with test %endif +%bcond_without python2 Name: python-soupsieve%{psuffix} Version: 1.9.5 Release: 0 @@ -40,8 +41,10 @@ BuildArch: noarch %if %{with test} BuildRequires: %{python_module beautifulsoup4} BuildRequires: %{python_module pytest} +%if %{with python2} BuildRequires: python-backports.functools_lru_cache %endif +%endif %ifpython2 Requires: python-backports.functools_lru_cache %endif