From 1b21767d99b6ee1b57809e735fc354aa1cb4ae87b550074115f48c8d0ebf70a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 20 Apr 2020 09:44:20 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rjsmin?expand=0&rev=14 --- python-rjsmin.changes | 5 +++++ python-rjsmin.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python-rjsmin.changes b/python-rjsmin.changes index 7d2fc99..899cb03 100644 --- a/python-rjsmin.changes +++ b/python-rjsmin.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 20 09:44:09 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Mon Mar 9 09:45:29 UTC 2020 - Tomáš Chvátal diff --git a/python-rjsmin.spec b/python-rjsmin.spec index 968455a..dfbc5cf 100644 --- a/python-rjsmin.spec +++ b/python-rjsmin.spec @@ -19,6 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define mod_name rjsmin %define release_sha 53a0848b2372c1b49c03326bc8209ea39e889c47 +%bcond_without python2 Name: python-%{mod_name} Version: 1.1.0 Release: 0 @@ -32,9 +33,11 @@ BuildRequires: %{python_module devel} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-mock BuildRequires: python-rpm-macros Obsoletes: %{name}-doc +%if %{with python2} +BuildRequires: python-mock +%endif %python_subpackages %description