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}
|
Requires: julia-devel = %{version}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Requires(post): /sbin/update-alternatives
|
Requires(post): %{_sbindir}/update-alternatives
|
||||||
Requires(post): /sbin/ldconfig
|
Requires(post): /sbin/ldconfig
|
||||||
Requires(postun): /sbin/update-alternatives
|
Requires(postun): %{_sbindir}/update-alternatives
|
||||||
Requires(postun): /sbin/ldconfig
|
Requires(postun): /sbin/ldconfig
|
||||||
|
|
||||||
Recommends: curl
|
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"
|
patchelf --set-rpath "%{_libdir}/julia:%{_libdir}:%{_prefix}/lib" "%{buildroot}%{_libdir}/julia/libmpfr.so"
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/update-alternatives --install %{_bindir}/julia \
|
%{_sbindir}/update-alternatives --install %{_bindir}/julia \
|
||||||
julia %{_bindir}/julia-base 5
|
julia %{_bindir}/julia-base 5
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ ! -f %{_bindir}/julia-base ] ; then
|
if [ ! -f %{_bindir}/julia-base ] ; then
|
||||||
/sbin/update-alternatives --remove julia %{_bindir}/julia-base
|
%{_sbindir}/update-alternatives --remove julia %{_bindir}/julia-base
|
||||||
fi
|
fi
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user