SHA256
1
0
forked from pool/juliaup
Soc Virnyl Estela 2022-11-24 14:41:53 +00:00 committed by Git OBS Bridge
parent dff0d597bd
commit 3e4f2e7a6e

View File

@ -126,8 +126,11 @@ cargo install --offline --release --no-default-features --no-track --root="%{bui
%endif %endif
mkdir -p %{buildroot}%{_sysconfdir}/alternatives 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 %post
"%_sbindir/update-alternatives" --install \ "%_sbindir/update-alternatives" --install \
"%{_bindir}/julia" julia "%{_bindir}/julialauncher" $(printf %{latest_julia_version} | sed 's/\.//g') "%{_bindir}/julia" julia "%{_bindir}/julialauncher" $(printf %{latest_julia_version} | sed 's/\.//g')
@ -141,9 +144,6 @@ fi;
if [ ! -f %{_bindir}/julia ] ; then if [ ! -f %{_bindir}/julia ] ; then
"%{_sbindir}/update-alternatives" --remove julia "%{_bindir}/julialauncher" "%{_sbindir}/update-alternatives" --remove julia "%{_bindir}/julialauncher"
fi fi
%else
ln -sf %{_bindir}/julia %{buildroot}%{_bindir}/julialauncher
%endif %endif
%files %files