From eeaeee076840d4267b71a476d928c4688c8346adebc0787b4cf4860c206f2321 Mon Sep 17 00:00:00 2001 From: Axel Braun Date: Sat, 2 Mar 2024 09:51:08 +0000 Subject: [PATCH] Accepting request 1154268 from Application:ERP:GNUHealth:4.4 - limit python build to latest python version OBS-URL: https://build.opensuse.org/request/show/1154268 OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/gnuhealth-thalamus?expand=0&rev=23 --- gnuhealth-thalamus.changes | 5 +++++ gnuhealth-thalamus.spec | 18 +++++++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/gnuhealth-thalamus.changes b/gnuhealth-thalamus.changes index 549a727..06c10ed 100644 --- a/gnuhealth-thalamus.changes +++ b/gnuhealth-thalamus.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Mar 2 09:23:21 UTC 2024 - Axel Braun + +- limit python build to latest python version + ------------------------------------------------------------------- Mon Jan 22 10:11:10 UTC 2024 - Axel Braun diff --git a/gnuhealth-thalamus.spec b/gnuhealth-thalamus.spec index ebf9ac7..36c7587 100644 --- a/gnuhealth-thalamus.spec +++ b/gnuhealth-thalamus.spec @@ -17,9 +17,17 @@ # -%bcond_without test +%bcond_without test 1 + +%if 0%{?suse_version} >= 1550 +%define pythons python3 +%define mypython python3 +%define mysitelib %python3_sitelib +%else %{?sle15_python_module_pythons} -%define skip_python39 1 +%define mypython %pythons +%define mysitelib %{expand:%%%{mypython}_sitelib} +%endif %define modname thalamus Name: gnuhealth-%{modname} @@ -88,12 +96,12 @@ independent server that can be used in different health related scenarios. %install %pyproject_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{mysitelib} -%files %{python_files} +%files %defattr(-,root,root) %doc README.rst %license LICENSE -%{python_sitelib}/* +%{mysitelib}/thalamus* %changelog