SHA256
1
0
forked from pool/juliaup
Soc Virnyl Estela 2022-07-21 06:05:34 +00:00 committed by Git OBS Bridge
parent 58f5d83b02
commit 9c47689c24

View File

@ -102,24 +102,24 @@ cp %{SOURCE2} .cargo/config
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
ln -sf %{_sysconfdir}/alternatives/julia %{buildroot}%{_bindir}/julia
%post
update-alternatives --install \
%{_bindir}/julia julia %{_bindir}/julia 15
%post -n juliaup
update-alternatives --install \
%{_bindir}/julia julia %{_bindir}/julialauncher 20
%{_bindir}/julia julia %{_bindir}/julialauncher 15
%postun
if [ ! -f %{_bindir}/julia ] ; then
update-alternatives --remove julia %{_bindir}/julia
fi
%post -n julia
update-alternatives --install \
%{_bindir}/julia julia %{_bindir}/julialauncher 20
%postun -n juliaup
if [ ! -f %{_bindir}/julialauncher ] ; then
update-alternatives --remove julia %{_bindir}/julialauncher
fi
%postun -n julia
if [ ! -f %{_bindir}/julia ] ; then
update-alternatives --remove julia %{_bindir}/julia
fi
%files
%license LICENSE
%doc README.md