Accepting request 630405 from home:eeich:branches:science:HPC

- macros: %hpc_master_package: properly escape '\'

- macros:
  * Fix line endings
  * Replace %%compiler_family by %%hpc_compiler_family

OBS-URL: https://build.opensuse.org/request/show/630405
OBS-URL: https://build.opensuse.org/package/show/science:HPC/suse-hpc?expand=0&rev=29
This commit is contained in:
Egbert Eich 2018-08-19 14:30:23 +00:00 committed by Git OBS Bridge
parent 42d487174c
commit b290d20fc3
2 changed files with 16 additions and 4 deletions

View File

@ -89,7 +89,7 @@ EOF\
# Base
%hpc_requires Requires: lua-lmod \
%{?hpc_compiler_family:%{!?_hpc_build_compiler:%hpc_cf_requires}}\
%{?hpc_mpi_family:%{!?_hpc_build_mpi:%hpc_mpi_requires}}\
%{?hpc_mpi_family:%{!?_hpc_build_mpi:%hpc_mpi_requires}}
# Devel
%hpc_requires_devel %{?hpc_compiler_family:%{!?_hpc_build_compiler:%hpc_cf_requires_devel}}\
@ -176,7 +176,7 @@ EOF\
#
# Environment Modules
#
%hpc_mpi_family_path %{?hpc_mpi_family:-%{hpc_mpi_family}%([ -n "%{hpc_mpi_dep_version}" ] &&
%hpc_mpi_family_path %{?hpc_mpi_family:-%{hpc_mpi_family}%([ -n "%{hpc_mpi_dep_version}" ] && \
echo -n "-%{hpc_mpi_dep_version}")}
%hpc_compiler_family_path %{?hpc_compiler_family:%{hpc_compiler_family}-%{hpc_cf_dep_version}}
@ -369,7 +369,7 @@ cat << EOF > %{buildroot}%{hpc_module_dep_base}%{version}
} \
%{-n:%define _lname %{-n*}} \
%{!-n:\
%define _lname_cf %{?compiler_family:-%{compiler_family}%{?hpc_cf_pack_version}} \
%define _lname_cf %{?compiler_family:-%{hpc_compiler_family}%{?hpc_cf_pack_version}} \
%define _lname_mpi %{!?_hpc_build_mpi:%{?hpc_mpi_family:-%{hpc_mpi_family}%{?hpc_mpi_pack_version}}} \
%define _lname_build_mpi_name %{?_hpc_build_mpi:%{hpc_mpi_family}%{?hpc_ext}%{?hpc_mpi_pack_version}} \
%define _lname_name %{!?_hpc_build_mpi:%{_pname}%{?hpc_ext}%{-s*}} \
@ -395,7 +395,7 @@ cat << EOF > %{buildroot}%{hpc_module_dep_base}%{version}
%{!-s:%define n_name %_name} \
%{-s:%define n_name %(a=%{_name};echo -n ${a/%{_pname}/%{_pname}%{-s*}})} \
%{!-s:%define s_name %{_mylib}%{n_name}%{_p_ext}} \
%{-s:%define s_name %(echo -n %{_mylib}%{_name}%{_p_ext} | sed -e "s/\\(.*%{_pname}\\)\\(.*\\)/\\\\1%{-s*}\\\\2/")} \
%{-s:%define s_name %(echo -n %{_mylib}%{_name}%{_p_ext} | sed -e "s/\\\\(.*%{_pname}\\\\)\\\\(.*\\\\)/\\\\1%{-s*}\\\\2/")} \
%package -n %_lname \
Summary: Dependency package for %{s_name} \
Group: %_group \

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sun Aug 19 12:54:39 UTC 2018 - eich@suse.com
- macros: %hpc_master_package: properly escape '\'
-------------------------------------------------------------------
Sun Aug 19 09:32:21 UTC 2018 - eich@suse.com
- macros:
* Fix line endings
* Replace %%compiler_family by %%hpc_compiler_family
-------------------------------------------------------------------
Tue Jun 19 05:08:01 UTC 2018 - eich@suse.com