From 5819995f60b9db2ca4564d8e9e8dd6a5a63a2a78e8be50ead6d2efbeaf53dcb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 28 Mar 2020 07:39:28 +0000 Subject: [PATCH] - Fix buidl without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-jupyter-core?expand=0&rev=7 --- python-jupyter-core.changes | 5 +++++ python-jupyter-core.spec | 3 +++ 2 files changed, 8 insertions(+) diff --git a/python-jupyter-core.changes b/python-jupyter-core.changes index 27024d6..30e5cbe 100644 --- a/python-jupyter-core.changes +++ b/python-jupyter-core.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Mar 28 07:39:17 UTC 2020 - Tomáš Chvátal + +- Fix buidl without python2 + ------------------------------------------------------------------- Tue Mar 17 07:20:32 UTC 2020 - Tomáš Chvátal diff --git a/python-jupyter-core.spec b/python-jupyter-core.spec index 0758c10..c41223a 100644 --- a/python-jupyter-core.spec +++ b/python-jupyter-core.spec @@ -24,6 +24,7 @@ %define psuffix %{nil} %bcond_with test %endif +%bcond_without python2 %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python Name: python-jupyter-core%{psuffix} @@ -56,8 +57,10 @@ Obsoletes: %{oldpython}-jupyter_core < %{version} BuildRequires: %{python_module jupyter-core} BuildRequires: %{python_module nose} BuildRequires: %{python_module pytest} +%if %{with python2} BuildRequires: python-mock %endif +%endif %python_subpackages %description