forked from pool/julia
This commit is contained in:
parent
a84591d305
commit
a59694c308
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user