From 16d6ea9819bef3cbaeee08c2f7b0347c782750ce00143ef0cd4b91ffce3e2cd9 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:01:08 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-traitsui?expand=0&rev=7 --- python-traitsui.changes | 5 +++++ python-traitsui.spec | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-traitsui.changes b/python-traitsui.changes index 784ce40..e98e0b1 100644 --- a/python-traitsui.changes +++ b/python-traitsui.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 20 08:58:17 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Fri Sep 13 14:59:00 UTC 2019 - Tomáš Chvátal diff --git a/python-traitsui.spec b/python-traitsui.spec index bfdc5c2..5f65e37 100644 --- a/python-traitsui.spec +++ b/python-traitsui.spec @@ -1,7 +1,7 @@ # # spec file for package python-traitsui # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -19,6 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python %define X_display ":98" +%bcond_without python2 Name: python-traitsui Version: 6.1.3 Release: 0 @@ -50,8 +51,10 @@ BuildRequires: %{python_module nose} BuildRequires: %{python_module qt5} BuildRequires: %{python_module wxPython} BuildRequires: Mesa-dri -BuildRequires: python-mock BuildRequires: xorg-x11-server +%if %{with python2} +BuildRequires: python-mock +%endif # /SECTION %ifpython2 Provides: %{oldpython}-TraitsGUI = %{version}