From e36a2b116a4ddcc0db293a2ba910966c7eb4cb727b00d888259106ccdbe50d0d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 22 Jun 2020 11:42:35 +0000 Subject: [PATCH] Make Python2 conditional OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-osc-tiny?expand=0&rev=17 --- python-osc-tiny.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-osc-tiny.spec b/python-osc-tiny.spec index f8a8389..fd4e4d8 100644 --- a/python-osc-tiny.spec +++ b/python-osc-tiny.spec @@ -17,7 +17,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} + +%if 0%{?suse_version} > 1500 %bcond_with python2 +%else +%bcond_without python2 +%endif Name: python-osc-tiny Version: 0.2.2 Release: 0