forked from pool/juliaup
This commit is contained in:
parent
58f5d83b02
commit
9c47689c24
18
juliaup.spec
18
juliaup.spec
@ -102,24 +102,24 @@ cp %{SOURCE2} .cargo/config
|
|||||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
ln -sf %{_sysconfdir}/alternatives/julia %{buildroot}%{_bindir}/julia
|
ln -sf %{_sysconfdir}/alternatives/julia %{buildroot}%{_bindir}/julia
|
||||||
|
|
||||||
%post
|
|
||||||
update-alternatives --install \
|
|
||||||
%{_bindir}/julia julia %{_bindir}/julia 15
|
|
||||||
|
|
||||||
%post -n juliaup
|
%post -n juliaup
|
||||||
update-alternatives --install \
|
update-alternatives --install \
|
||||||
%{_bindir}/julia julia %{_bindir}/julialauncher 20
|
%{_bindir}/julia julia %{_bindir}/julialauncher 15
|
||||||
|
|
||||||
%postun
|
%post -n julia
|
||||||
if [ ! -f %{_bindir}/julia ] ; then
|
update-alternatives --install \
|
||||||
update-alternatives --remove julia %{_bindir}/julia
|
%{_bindir}/julia julia %{_bindir}/julialauncher 20
|
||||||
fi
|
|
||||||
|
|
||||||
%postun -n juliaup
|
%postun -n juliaup
|
||||||
if [ ! -f %{_bindir}/julialauncher ] ; then
|
if [ ! -f %{_bindir}/julialauncher ] ; then
|
||||||
update-alternatives --remove julia %{_bindir}/julialauncher
|
update-alternatives --remove julia %{_bindir}/julialauncher
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%postun -n julia
|
||||||
|
if [ ! -f %{_bindir}/julia ] ; then
|
||||||
|
update-alternatives --remove julia %{_bindir}/julia
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
Loading…
Reference in New Issue
Block a user