From 4e4479b08119c9c3b1f0479e3257afaa28784e0f7f095ad1b556dd56a7a872f8 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Thu, 21 Jul 2022 06:20:34 +0000 Subject: [PATCH] - disabled alternatives. need to modify the actual julia package and contact package maintainer OBS-URL: https://build.opensuse.org/package/show/science/juliaup?expand=0&rev=26 --- juliaup.changes | 6 ++++++ juliaup.spec | 26 ++------------------------ 2 files changed, 8 insertions(+), 24 deletions(-) diff --git a/juliaup.changes b/juliaup.changes index 282b7e9..39a9f92 100644 --- a/juliaup.changes +++ b/juliaup.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jul 21 06:19:39 UTC 2022 - Soc Virnyl Estela + +- disabled alternatives. need to modify the actual julia + package and contact package maintainer + ------------------------------------------------------------------- Thu Jul 21 05:53:04 UTC 2022 - Soc Virnyl Estela diff --git a/juliaup.spec b/juliaup.spec index 09c35b7..6691e67 100644 --- a/juliaup.spec +++ b/juliaup.spec @@ -78,8 +78,6 @@ Source2: cargo_config BuildRequires: cargo-packaging Obsoletes: julia < %{oldest_supported_julia_version} %provides_julia_versioned julia -Requires(post): update-alternatives -Requires(postun):update-alternatives %description A cross-platform installer for the Julia programming language. @@ -99,34 +97,14 @@ cp %{SOURCE2} .cargo/config %install %{cargo_install} -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -ln -sf %{_sysconfdir}/alternatives/julia %{buildroot}%{_bindir}/julia - -%post -update-alternatives --install \ - %{_bindir}/julia julia %{_bindir}/julialauncher 15 - -%post -n julia -update-alternatives --install \ - %{_bindir}/julia julia %{_bindir}/julialauncher 20 - -%postun -if [ ! -f %{_bindir}/julialauncher ] ; then - update-alternatives --remove julia %{_bindir}/julialauncher -fi - -%postun -n julia -if [ ! -f %{_bindir}/julia ] ; then - update-alternatives --remove julia %{_bindir}/julia -fi +ln -sf %{_bindir}/julialauncher %{buildroot}%{_bindir}/julia %files %license LICENSE %doc README.md -%{_bindir}/julia %{_bindir}/juliainstaller %{_bindir}/julialauncher %{_bindir}/juliaup -%ghost %_sysconfdir/alternatives/julia +%{_bindir}/julia %changelog