forked from pool/juliaup
This commit is contained in:
parent
dff0d597bd
commit
3e4f2e7a6e
@ -126,8 +126,11 @@ cargo install --offline --release --no-default-features --no-track --root="%{bui
|
||||
%endif
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||
|
||||
%if 0%{?suse_version}
|
||||
%if 0%{?rhel > 7 || 0%{?fedora}
|
||||
ln -sf %{_bindir}/julia %{buildroot}%{_bindir}/julialauncher
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version}
|
||||
%post
|
||||
"%_sbindir/update-alternatives" --install \
|
||||
"%{_bindir}/julia" julia "%{_bindir}/julialauncher" $(printf %{latest_julia_version} | sed 's/\.//g')
|
||||
@ -141,9 +144,6 @@ fi;
|
||||
if [ ! -f %{_bindir}/julia ] ; then
|
||||
"%{_sbindir}/update-alternatives" --remove julia "%{_bindir}/julialauncher"
|
||||
fi
|
||||
|
||||
%else
|
||||
ln -sf %{_bindir}/julia %{buildroot}%{_bindir}/julialauncher
|
||||
%endif
|
||||
|
||||
%files
|
||||
|
Loading…
Reference in New Issue
Block a user