SHA256
1
0
forked from pool/juliaup
Soc Virnyl Estela 2022-07-22 10:59:12 +00:00 committed by Git OBS Bridge
parent 66625e02f3
commit 82eec3ac40

View File

@ -99,11 +99,12 @@ cp %{SOURCE2} .cargo/config
%install %install
%{cargo_install} %{cargo_install}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
ln -sf %{buildroot}%{_bindir}/julialauncher %{_sysconfdir}/alternatives/julia
ln -sf %{_sysconfdir}/alternatives/julia %{buildroot}%{_bindir}/julia ln -sf %{_sysconfdir}/alternatives/julia %{buildroot}%{_bindir}/julia
%post %post
"%_sbindir/update-alternatives" --install \ "%_sbindir/update-alternatives" --install \
"%_bindir/julia" julia "%_bindir/julialauncher" 1 "%_bindir/julia" julia "%_bindir/julialauncher"
%pre %pre
if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then