diff --git a/osc.changes b/osc.changes index 149df1c..ea71212 100644 --- a/osc.changes +++ b/osc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 11 11:38:19 UTC 2022 - Daniel Mach + +- fix building on distros that are not openSUSE or SLE + ------------------------------------------------------------------- Thu Aug 4 08:31:49 UTC 2022 - Dirk Müller diff --git a/osc.spec b/osc.spec index a104ba6..c74b832 100644 --- a/osc.spec +++ b/osc.spec @@ -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