From 3e4f2e7a6ebea68b2b4757adf32101cc4310669bf9e359342b08ec4977857a92 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Thu, 24 Nov 2022 14:41:53 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/science/juliaup?expand=0&rev=55 --- juliaup.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/juliaup.spec b/juliaup.spec index 1e9e769..1687f01 100644 --- a/juliaup.spec +++ b/juliaup.spec @@ -126,8 +126,11 @@ cargo install --offline --release --no-default-features --no-track --root="%{bui %endif 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 "%_sbindir/update-alternatives" --install \ "%{_bindir}/julia" julia "%{_bindir}/julialauncher" $(printf %{latest_julia_version} | sed 's/\.//g') @@ -141,9 +144,6 @@ fi; if [ ! -f %{_bindir}/julia ] ; then "%{_sbindir}/update-alternatives" --remove julia "%{_bindir}/julialauncher" fi - -%else -ln -sf %{_bindir}/julia %{buildroot}%{_bindir}/julialauncher %endif %files