diff --git a/_service b/_service index 68e0786..6a1b642 100644 --- a/_service +++ b/_service @@ -6,7 +6,7 @@ .git suse-hpc 0.4.%h - 663bf86ed7dc0d3e5526d4b7c7edaf5d04de648f + c65447a9944f342fbca39b0d339e347861098dd7 general/dlinfo.c general/macros.hpc general/hpc_elf.pl diff --git a/macros.hpc b/macros.hpc index 6a779e7..61cfc7a 100644 --- a/macros.hpc +++ b/macros.hpc @@ -467,15 +467,15 @@ When this package gets updated it installs the latest version of %name. \ # get the python version specific directory for arch specific files in the HPC # directory structure (singlepsec). -%hpc_python_sitearch %{_hpc_python_sysconfig_path %python_flavor platlib %{?hpc_prefix}} +%hpc_python_sitearch %{_hpc_python_sysconfig_path %{expand:%__%{python_flavor}} platlib %{?hpc_prefix}} # same for non-singlespec (using internal %%_hpc_python3) -%hpc_python_sitearch_no_singlespec %{_hpc_python_sysconfig_path %{?_hpc_python3:/usr/bin/python3}%{!?_hpc_python3:%python_flavor} platlib %{?hpc_prefix}} +%hpc_python_sitearch_no_singlespec %{_hpc_python_sysconfig_path %{?_hpc_python3:/usr/bin/python3}%{!?_hpc_python3:%{expand:%__%{python_flavor}}} platlib %{?hpc_prefix}} %_hpc_python_ver() %(%1 -c "import sys as s;print(s.version[:3]);") # get the (abbreviated) python version used for package and directory names (singlespec). -%hpc_python_version %{_hpc_python_ver %python_flavor} +%hpc_python_version %{_hpc_python_ver %{expand:%__%{python_flavor}}} # %{hpc_python_master_package [-n ] [-g ] [-l][-L][-a]} # (singlespec) diff --git a/suse-hpc.changes b/suse-hpc.changes index 90d7ead..098eb08 100644 --- a/suse-hpc.changes +++ b/suse-hpc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 18 17:20:57 UTC 2021 - Egbert Eich + +- Expand python_flavor to python executable. Thanks to Ben Greiner. + ------------------------------------------------------------------- Thu Jul 23 17:42:34 UTC 2020 - Egbert Eich diff --git a/suse-hpc.spec b/suse-hpc.spec index d41cae4..a97c124 100644 --- a/suse-hpc.spec +++ b/suse-hpc.spec @@ -1,7 +1,7 @@ # # spec file for package suse-hpc # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed