forked from pool/juliaup
- 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
This commit is contained in:
parent
a2f5a7e150
commit
4e4479b081
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 21 06:19:39 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
||||
|
||||
- disabled alternatives. need to modify the actual julia
|
||||
package and contact package maintainer
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 21 05:53:04 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
||||
|
||||
|
26
juliaup.spec
26
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
|
||||
|
Loading…
Reference in New Issue
Block a user