forked from pool/juliaup
This commit is contained in:
parent
f0254a31b3
commit
dff0d597bd
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%global oldest_supported_julia_version 0.7.0
|
%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
|
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now -C debuginfo=2
|
||||||
|
|
||||||
# Based on the latest stable release in the https://julialang.org/ website
|
# Based on the latest stable release in the https://julialang.org/ website
|
||||||
@ -129,7 +130,7 @@ mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
"%_sbindir/update-alternatives" --install \
|
"%_sbindir/update-alternatives" --install \
|
||||||
"%{_bindir}/julia" julia "%{_bindir}/julialauncher" 15
|
"%{_bindir}/julia" julia "%{_bindir}/julialauncher" $(printf %{latest_julia_version} | sed 's/\.//g')
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then
|
if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then
|
||||||
@ -154,6 +155,5 @@ ln -sf %{_bindir}/julia %{buildroot}%{_bindir}/julialauncher
|
|||||||
%{_bindir}/juliainstaller
|
%{_bindir}/juliainstaller
|
||||||
%{_bindir}/julialauncher
|
%{_bindir}/julialauncher
|
||||||
%{_bindir}/juliaup
|
%{_bindir}/juliaup
|
||||||
%{_bindir}/julia
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user