forked from pool/suse-hpc
Accepting request 525945 from home:eeich:hpc_alt
- Add a dependency generator wrapper for binaries and libraries to avoid adding standard dependencies for HPC libraries. - Removed unneeded BuildRequires: OBS-URL: https://build.opensuse.org/request/show/525945 OBS-URL: https://build.opensuse.org/package/show/science:HPC/suse-hpc?expand=0&rev=3
This commit is contained in:
@@ -152,6 +152,7 @@ EOF\
|
||||
%global hpc_mpi_dir %{?hpc_mpi_family:%%{hpc_%{hpc_mpi_family}_dir}/} \
|
||||
%global hpc_mpi_pack_version %{?hpc_mpi_family:%%{hpc_%{hpc_mpi_family}_pack_version}} \
|
||||
} \
|
||||
# Preexpanded macros \
|
||||
%{expand: %%global hpc_prefix %{-M:%hpc_mpi_install_path}%{-C:%hpc_cf_install_path}%{!-M:%{!-C:%{hpc_install_path}}}} \
|
||||
%{?_hpc_build_mpi:%global _hpc_build_xx 1} \
|
||||
%{?_hpc_build_compiler:%global _hpc_build_xx 1} \
|
||||
@@ -159,6 +160,13 @@ EOF\
|
||||
%define _hpc_package_name_compiler %{?hpc_compiler_family:-%{hpc_compiler_family}%{?hpc_cf_pack_version}} \
|
||||
%define _hpc_package_name_mpi %{?hpc_mpi_family:%{!?_hpc_build_mpi:-%{hpc_mpi_family}%{?hpc_mpi_pack_version}}} \
|
||||
%global hpc_package_name_end %{_hpc_package_name_compiler}%{_hpc_package_name_mpi}-hpc \
|
||||
# Dependency Generator \
|
||||
%global tmp %__elf_exclude_path \
|
||||
%global __elf_exclude_path (%tmp)|(^%hpc_base) \
|
||||
%undefine tmp \
|
||||
%global tmp %__elflib_exclude_path \
|
||||
%global __elflib_exclude_path (%tmp)|(^%hpc_base) \
|
||||
%undefine tmp \
|
||||
%global _hpc_init_done 1
|
||||
|
||||
%hpc_init(Cc:Mm:v:V:e:) %{expand:%%_hpc_init %{**}}
|
||||
|
Reference in New Issue
Block a user