From a59694c3086a7ee50a7c0b1c127d8b53d6c645ba146d4af5277b0c20fe71691f Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Sat, 18 May 2024 03:01:12 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/science/julia?expand=0&rev=188 --- julia.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/julia.spec b/julia.spec index cb5ecf3..5822e6f 100644 --- a/julia.spec +++ b/julia.spec @@ -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