SHA256
1
0
forked from pool/julia
Soc Virnyl Estela 2024-05-18 03:01:12 +00:00 committed by Git OBS Bridge
parent a84591d305
commit a59694c308

View File

@ -224,9 +224,9 @@ Requires: julia-compat-devel = %{version}
Requires: julia-devel = %{version}
%endif
Requires(post): /sbin/update-alternatives
Requires(post): %{_sbindir}/update-alternatives
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives
Requires(postun): /sbin/ldconfig
Recommends: curl
@ -540,13 +540,13 @@ find %{buildroot} -type f -name "*.la" -delete -print
patchelf --set-rpath "%{_libdir}/julia:%{_libdir}:%{_prefix}/lib" "%{buildroot}%{_libdir}/julia/libmpfr.so"
%post
/sbin/update-alternatives --install %{_bindir}/julia \
%{_sbindir}/update-alternatives --install %{_bindir}/julia \
julia %{_bindir}/julia-base 5
/sbin/ldconfig
%postun
if [ ! -f %{_bindir}/julia-base ] ; then
/sbin/update-alternatives --remove julia %{_bindir}/julia-base
%{_sbindir}/update-alternatives --remove julia %{_bindir}/julia-base
fi
/sbin/ldconfig