SHA256
1
0
forked from pool/juliaup
Soc Virnyl Estela 2022-07-22 11:06:56 +00:00 committed by Git OBS Bridge
parent 82eec3ac40
commit 337be96cea

View File

@ -98,17 +98,14 @@ 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"
"%{_bindir}/julia" julia "%{_bindir}/julialauncher"
%pre
if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then
"%_sbindir/update-alternatives" --remove julia "%_bindir/julialauncher";
"%{_sbindir}/update-alternatives" --remove julia "%{_bindir}/julialauncher";
fi;
%postun