From 82eec3ac40e67b40706e9da571fa7098c04c24cbcc1b521174c6e25729b395d6 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Fri, 22 Jul 2022 10:59:12 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/science/juliaup?expand=0&rev=30 --- juliaup.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/juliaup.spec b/juliaup.spec index 4558a21..7de24db 100644 --- a/juliaup.spec +++ b/juliaup.spec @@ -99,11 +99,12 @@ cp %{SOURCE2} .cargo/config %install %{cargo_install} mkdir -p %{buildroot}%{_sysconfdir}/alternatives +ln -sf %{buildroot}%{_bindir}/julialauncher %{_sysconfdir}/alternatives/julia ln -sf %{_sysconfdir}/alternatives/julia %{buildroot}%{_bindir}/julia %post "%_sbindir/update-alternatives" --install \ - "%_bindir/julia" julia "%_bindir/julialauncher" 1 + "%_bindir/julia" julia "%_bindir/julialauncher" %pre if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then