From 9c47689c245711e8c01d06b7c5a048bf4e135264e0af190b72b5a90672d8f53f Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Thu, 21 Jul 2022 06:05:34 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/science/juliaup?expand=0&rev=24 --- juliaup.spec | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/juliaup.spec b/juliaup.spec index 9bdbc38..e5960a8 100644 --- a/juliaup.spec +++ b/juliaup.spec @@ -102,24 +102,24 @@ cp %{SOURCE2} .cargo/config mkdir -p %{buildroot}%{_sysconfdir}/alternatives ln -sf %{_sysconfdir}/alternatives/julia %{buildroot}%{_bindir}/julia -%post -update-alternatives --install \ - %{_bindir}/julia julia %{_bindir}/julia 15 - %post -n juliaup update-alternatives --install \ - %{_bindir}/julia julia %{_bindir}/julialauncher 20 + %{_bindir}/julia julia %{_bindir}/julialauncher 15 -%postun -if [ ! -f %{_bindir}/julia ] ; then - update-alternatives --remove julia %{_bindir}/julia -fi +%post -n julia +update-alternatives --install \ + %{_bindir}/julia julia %{_bindir}/julialauncher 20 %postun -n juliaup if [ ! -f %{_bindir}/julialauncher ] ; then update-alternatives --remove julia %{_bindir}/julialauncher fi +%postun -n julia +if [ ! -f %{_bindir}/julia ] ; then + update-alternatives --remove julia %{_bindir}/julia +fi + %files %license LICENSE %doc README.md