From 1912fd9bced1cdbe2d2b3ffa744cb891f443bfa509a327057f6e9873a94dc408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 25 Sep 2024 07:52:19 +0000 Subject: [PATCH] Accepting request 1203217 from home:yeey:branches:home:yeey:OpenWebUI - Enable sle15_python_module_pythons. - Use proper macro for python executable OBS-URL: https://build.opensuse.org/request/show/1203217 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ebcdic?expand=0&rev=7 --- python-ebcdic.changes | 6 ++++++ python-ebcdic.spec | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/python-ebcdic.changes b/python-ebcdic.changes index d76037a..da56151 100644 --- a/python-ebcdic.changes +++ b/python-ebcdic.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Sep 24 19:11:45 UTC 2024 - Guang Yee + +- Enable sle15_python_module_pythons. +- Use proper macro for python executable + ------------------------------------------------------------------- Thu Oct 7 12:49:49 UTC 2021 - pgajdos@suse.com diff --git a/python-ebcdic.spec b/python-ebcdic.spec index 6971e64..a34279d 100644 --- a/python-ebcdic.spec +++ b/python-ebcdic.spec @@ -1,7 +1,7 @@ # # spec file for package python-ebcdic # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} Name: python-ebcdic Version: 1.1.1 Release: 0 @@ -38,12 +38,12 @@ Additional EBCDIC codecs for Python. %prep %setup -q -n CodecMapper-%{version}/ebcdic # do not use venv python -sed -i -e 's:"${basedir}/venv/bin/python":"/usr/bin/python3":' ../build.xml +sed -i -e 's:"${basedir}/venv/bin/python":"${PYTHON}":' ../build.xml %build # first generate the py files pushd .. -ant ebcdic +%python_expand ant ebcdic -DPYTHON="$python" popd %python_build