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