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>
|
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
|
BuildRequires: cargo-packaging
|
||||||
Obsoletes: julia < %{oldest_supported_julia_version}
|
Obsoletes: julia < %{oldest_supported_julia_version}
|
||||||
%provides_julia_versioned julia
|
%provides_julia_versioned julia
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun):update-alternatives
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A cross-platform installer for the Julia programming language.
|
A cross-platform installer for the Julia programming language.
|
||||||
@ -99,34 +97,14 @@ cp %{SOURCE2} .cargo/config
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%{cargo_install}
|
%{cargo_install}
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
ln -sf %{_bindir}/julialauncher %{buildroot}%{_bindir}/julia
|
||||||
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
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{_bindir}/julia
|
|
||||||
%{_bindir}/juliainstaller
|
%{_bindir}/juliainstaller
|
||||||
%{_bindir}/julialauncher
|
%{_bindir}/julialauncher
|
||||||
%{_bindir}/juliaup
|
%{_bindir}/juliaup
|
||||||
%ghost %_sysconfdir/alternatives/julia
|
%{_bindir}/julia
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user