Accepting request 994527 from home:dmach:branches:openSUSE:Tools

- fix building on distros that are not openSUSE or SLE

OBS-URL: https://build.opensuse.org/request/show/994527
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/osc?expand=0&rev=369
This commit is contained in:
Daniel Mach 2022-08-11 12:58:08 +00:00 committed by Git OBS Bridge
parent 7c4397e1f8
commit 6cea7d1951
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 11 11:38:19 UTC 2022 - Daniel Mach <daniel.mach@suse.com>
- fix building on distros that are not openSUSE or SLE
-------------------------------------------------------------------
Thu Aug 4 08:31:49 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -21,16 +21,20 @@
%else
%bcond_with python3
%endif
%if %{with python3}
%if 0%{?suse_version} >= 1500
%define use_python python3
%define use_pythonpkg python3
%else
%if 0%{?suse_version} && 0%{?suse_version} < 1500
%define use_python python3.6
%define use_pythonpkg python36
%endif
# else if with python3
%else
%define use_python python
%define use_pythonpkg python
%endif
%define version_unconverted 0.181.0