Accepting request 674821 from home:eeich:branches:science:HPC
- Add links from the generic compiler binary names cc, cpp, c++ and fc to the compiler specific names in the package private binary directory. OBS-URL: https://build.opensuse.org/request/show/674821 OBS-URL: https://build.opensuse.org/package/show/science:HPC/gnu-compilers-hpc?expand=0&rev=20
This commit is contained in:
parent
62efb59f62
commit
660edb91ad
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 16 15:01:07 UTC 2019 - eich@suse.com
|
||||||
|
|
||||||
|
- Add links from the generic compiler binary names cc, cpp, c++
|
||||||
|
and fc to the compiler specific names in the package private
|
||||||
|
binary directory.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Nov 18 10:32:56 UTC 2018 - eich@suse.com
|
Sun Nov 18 10:32:56 UTC 2018 - eich@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gnu
|
# spec file for package gnu
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ Summary: SUSE HPC GNU Compiler Toolchain environment
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Tools/Other
|
Group: Development/Tools/Other
|
||||||
Name: %myname
|
Name: %myname
|
||||||
Version: 1.3
|
Version: 1.4
|
||||||
Release: 0
|
Release: 0
|
||||||
|
|
||||||
Url: https://github.com/openhpc/ohpc
|
Url: https://github.com/openhpc/ohpc
|
||||||
@ -145,9 +145,9 @@ module-whatis "URL: http://gcc.gnu.org"
|
|||||||
|
|
||||||
set version %{hpc_cf_dep_version}
|
set version %{hpc_cf_dep_version}
|
||||||
prepend-path MODULEPATH %{hpc_modulepath}
|
prepend-path MODULEPATH %{hpc_modulepath}
|
||||||
|
prepend-path PATH %{hpc_cf_install_path}/bin
|
||||||
%if 0%{?c_f_ver:1} > 0
|
%if 0%{?c_f_ver:1} > 0
|
||||||
prepend-path MANPATH %{hpc_cf_install_path}/man
|
prepend-path MANPATH %{hpc_cf_install_path}/man
|
||||||
prepend-path PATH %{hpc_cf_install_path}/bin
|
|
||||||
setenv CC gcc%{hpc_gnu_bin_version}
|
setenv CC gcc%{hpc_gnu_bin_version}
|
||||||
setenv CXX g++%{hpc_gnu_bin_version}
|
setenv CXX g++%{hpc_gnu_bin_version}
|
||||||
setenv FC gfortran%{hpc_gnu_bin_version}
|
setenv FC gfortran%{hpc_gnu_bin_version}
|
||||||
@ -175,11 +175,11 @@ EOF
|
|||||||
rm -rf %{hpc_cf_install_path}/bin %{hpc_cf_install_path}/bin
|
rm -rf %{hpc_cf_install_path}/bin %{hpc_cf_install_path}/bin
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?c_f_ver:1}
|
|
||||||
%posttrans devel
|
%posttrans devel
|
||||||
|
mkdir -p %{hpc_cf_install_path}/bin
|
||||||
|
%if 0%{?c_f_ver:1}
|
||||||
export list="cpp%{hpc_cf_pack_version} gcc%{hpc_cf_pack_version} \
|
export list="cpp%{hpc_cf_pack_version} gcc%{hpc_cf_pack_version} \
|
||||||
gcc%{hpc_cf_pack_version}-c++ gcc%{hpc_cf_pack_version}-fortran"
|
gcc%{hpc_cf_pack_version}-c++ gcc%{hpc_cf_pack_version}-fortran"
|
||||||
mkdir -p %{hpc_cf_install_path}/bin
|
|
||||||
for i in $(rpm -ql ${list} | grep -E -e "/usr/bin|/usr/share/man")
|
for i in $(rpm -ql ${list} | grep -E -e "/usr/bin|/usr/share/man")
|
||||||
do
|
do
|
||||||
dir=$(dirname $i)
|
dir=$(dirname $i)
|
||||||
@ -197,7 +197,15 @@ do
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
%else
|
||||||
|
# for the base compiler version link to the 'default' binary:
|
||||||
|
localbindir=%_bindir/
|
||||||
%endif
|
%endif
|
||||||
|
for i in cc cpp c++
|
||||||
|
do
|
||||||
|
test -e %{hpc_cf_install_path}/bin/${i} || ln -sf ${localbindir}${i}%{hpc_gnu_bin_version} %{hpc_cf_install_path}/bin/${i}
|
||||||
|
done
|
||||||
|
test -e %{hpc_cf_install_path}/bin/fortran || ln -sf ${localbindir}gfortran%{hpc_gnu_bin_version} %{hpc_cf_install_path}/bin/fc
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user