From 2fdd4314a0ff9e37af0b221b7fb159b4d83e114263f8304c6a6d07a2c89a4c6c Mon Sep 17 00:00:00 2001 From: Marco Strigl Date: Fri, 29 Jun 2018 07:28:51 +0000 Subject: [PATCH] - add Requires: python2 / python for Leap and Tumbleweed. Otherwise just python-base is installed which does not contain ssl.py [bnc#1097996] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/osc?expand=0&rev=265 --- osc.changes | 7 +++++++ osc.spec | 9 +++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/osc.changes b/osc.changes index 8c6e193..54da179 100644 --- a/osc.changes +++ b/osc.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Jun 29 07:23:57 UTC 2018 - marco.strigl@suse.com + +- add Requires: python2 / python for Leap and Tumbleweed. + Otherwise just python-base is installed which does not contain ssl.py + [bnc#1097996] + ------------------------------------------------------------------- Tue Dec 5 13:41:04 UTC 2017 - marco.strigl@suse.com diff --git a/osc.spec b/osc.spec index 838b335..4c0db2a 100644 --- a/osc.spec +++ b/osc.spec @@ -1,7 +1,7 @@ # # spec file for package osc # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ Name: osc Version: 0.162.1 Release: 0 Summary: Open Build Service Commander -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Development/Tools/Other Url: https://github.com/openSUSE/osc Source: %{name}-%{version}.tar.gz @@ -43,6 +43,11 @@ Requires: rpm-python %endif # %if 0%{?suse_version} +%if 0%{?suse_version} >= 1500 +Requires: python2 +%else +Requires: python +%endif %if 0%{?suse_version} < 1020 BuildRequires: python-elementtree Requires: python-elementtree