From c727d06a60c7396f4ce9edb82f85752a3c83b9a134901633bd82dff1736ee367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 8 Apr 2020 12:18:28 +0000 Subject: [PATCH] - Add conditional so we can dynamically turn off python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tornado?expand=0&rev=120 --- python-tornado.changes | 5 +++++ python-tornado.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python-tornado.changes b/python-tornado.changes index f46d554..0a2141b 100644 --- a/python-tornado.changes +++ b/python-tornado.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 8 12:17:24 UTC 2020 - Tomáš Chvátal + +- Add conditional so we can dynamically turn off python2 + ------------------------------------------------------------------- Tue Oct 1 13:36:35 UTC 2019 - Tomáš Chvátal diff --git a/python-tornado.spec b/python-tornado.spec index a1170e2..2cab85c 100644 --- a/python-tornado.spec +++ b/python-tornado.spec @@ -1,7 +1,7 @@ # # spec file for package python-tornado # -# 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 @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-tornado Version: 5 Release: 0 @@ -98,8 +99,10 @@ cp %{SOURCE0} . %install : +%if %{with python2} %files -n python2-tornado %doc README.SUSE +%endif %files -n python3-tornado %doc README.SUSE