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