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