SHA256
1
0
forked from pool/juliaup
Soc Virnyl Estela 2022-11-24 14:26:18 +00:00 committed by Git OBS Bridge
parent f0254a31b3
commit dff0d597bd

View File

@ -17,6 +17,7 @@
%global oldest_supported_julia_version 0.7.0
%global latest_julia_version 1.8.3
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now -C debuginfo=2
# Based on the latest stable release in the https://julialang.org/ website
@ -129,7 +130,7 @@ mkdir -p %{buildroot}%{_sysconfdir}/alternatives
%post
"%_sbindir/update-alternatives" --install \
"%{_bindir}/julia" julia "%{_bindir}/julialauncher" 15
"%{_bindir}/julia" julia "%{_bindir}/julialauncher" $(printf %{latest_julia_version} | sed 's/\.//g')
%pre
if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then
@ -154,6 +155,5 @@ ln -sf %{_bindir}/julia %{buildroot}%{_bindir}/julialauncher
%{_bindir}/juliainstaller
%{_bindir}/julialauncher
%{_bindir}/juliaup
%{_bindir}/julia
%changelog