From ac5d48749bacf8c6f4d519659dd6d71352379458 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 26 Feb 2025 14:54:30 +0100 Subject: [PATCH] spec: POSIX sh compatibility --- package/yast2-python-bindings.spec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package/yast2-python-bindings.spec b/package/yast2-python-bindings.spec index 102c475..1641237 100644 --- a/package/yast2-python-bindings.spec +++ b/package/yast2-python-bindings.spec @@ -1,7 +1,7 @@ # # spec file for package yast2-python-bindings # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -77,23 +77,23 @@ The bindings allow YaST modules to be written using the Python language and also Python scripts can use YaST agents, APIs and modules. %prep -%setup -q +%autosetup -p1 %build -make %{?_smp_mflags} -f Makefile.cvs all +%make_build -f Makefile.cvs all %if %{with python3} -mkdir py3 && pushd py3 +mkdir py3 && cd py3 ln -s ../configure configure %configure --enable-python3 %make_build -popd +cd - %endif %if %{with python2} -mkdir py2 && pushd py2 +mkdir py2 && cd py2 ln -s ../configure configure %configure %make_build -popd +cd - %endif %install