From 756b3e9b66e9a3a8c9ab55098d33aeb3e1e5001358e528d9a3faf64e052103d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 13 Mar 2020 13:03:13 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-soupsieve?expand=0&rev=16 --- python-soupsieve.changes | 5 +++++ python-soupsieve.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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