From 065a0aea15ee66ef2af04966a4237a733fe673fd23778fce1eab0de3dda57c1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 16 Jan 2024 14:52:26 +0000 Subject: [PATCH] Accepting request 1138474 from Application:ERP:GNUHealth:4.4 - added %{?sle15_python_module_pythons} OBS-URL: https://build.opensuse.org/request/show/1138474 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-sql?expand=0&rev=19 --- python-python-sql.changes | 5 +++++ python-python-sql.spec | 14 ++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/python-python-sql.changes b/python-python-sql.changes index 09270ff..4509042 100644 --- a/python-python-sql.changes +++ b/python-python-sql.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jan 13 14:06:41 UTC 2024 - Axel Braun + +- added %{?sle15_python_module_pythons} + ------------------------------------------------------------------- Tue Jan 9 22:04:57 UTC 2024 - Dirk Müller diff --git a/python-python-sql.spec b/python-python-sql.spec index a0a5c41..484f7bc 100644 --- a/python-python-sql.spec +++ b/python-python-sql.spec @@ -16,6 +16,16 @@ # +%if 0%{?suse_version} >= 1550 +%define pythons python3 +%define mypython python3 +%define mysitelib %python3_sitelib +%else +%{?sle15_python_module_pythons} +%define mypython %pythons +%define mysitelib %{expand:%%%{mypython}_sitelib} +%endif + %define base_name python-sql Name: python-%{base_name} Version: 1.4.3 @@ -52,7 +62,7 @@ mv sql_hide sql %files %{python_files} %license COPYRIGHT %doc README.rst -%{python_sitelib}/sql -%{python_sitelib}/python_sql-%{version}.dist-info +%{mysitelib}/sql +%{mysitelib}/python_sql-%{version}.dist-info %changelog