SHA256
1
0
forked from pool/juliaup
Soc Virnyl Estela 2022-07-21 06:08:48 +00:00 committed by Git OBS Bridge
parent 9c47689c24
commit a2f5a7e150

View File

@ -102,7 +102,7 @@ cp %{SOURCE2} .cargo/config
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
ln -sf %{_sysconfdir}/alternatives/julia %{buildroot}%{_bindir}/julia ln -sf %{_sysconfdir}/alternatives/julia %{buildroot}%{_bindir}/julia
%post -n juliaup %post
update-alternatives --install \ update-alternatives --install \
%{_bindir}/julia julia %{_bindir}/julialauncher 15 %{_bindir}/julia julia %{_bindir}/julialauncher 15
@ -110,7 +110,7 @@ update-alternatives --install \
update-alternatives --install \ update-alternatives --install \
%{_bindir}/julia julia %{_bindir}/julialauncher 20 %{_bindir}/julia julia %{_bindir}/julialauncher 20
%postun -n juliaup %postun
if [ ! -f %{_bindir}/julialauncher ] ; then if [ ! -f %{_bindir}/julialauncher ] ; then
update-alternatives --remove julia %{_bindir}/julialauncher update-alternatives --remove julia %{_bindir}/julialauncher
fi fi