2022-03-10 17:50:24 +01:00
|
|
|
#
|
|
|
|
# spec file for package juliaup
|
|
|
|
#
|
2023-01-04 02:21:36 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2022-03-10 17:50:24 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2022-03-14 07:29:56 +01:00
|
|
|
|
2022-11-25 10:17:23 +01:00
|
|
|
# We will keep this for now
|
2022-07-21 07:53:41 +02:00
|
|
|
%global oldest_supported_julia_version 0.7.0
|
2022-11-24 15:26:18 +01:00
|
|
|
%global latest_julia_version 1.8.3
|
2022-07-21 07:53:41 +02:00
|
|
|
|
2022-03-10 17:50:24 +01:00
|
|
|
Name: juliaup
|
2023-12-05 22:37:33 +01:00
|
|
|
Version: 1.12.5
|
2022-03-10 17:50:24 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Julia installer and version multiplexer
|
2022-03-14 07:29:56 +01:00
|
|
|
License: (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND (Apache-2.0 OR MIT OR Zlib) AND (Apache-2.0 OR MIT OR Zlib) AND (MIT OR Unlicense) AND (Apache-2.0 OR Zlib OR MIT) AND Apache-2.0 AND ISC AND MIT AND MPL-2.0 AND MIT
|
2022-03-11 02:07:05 +01:00
|
|
|
Group: Development/Languages/Other
|
2022-03-14 07:29:56 +01:00
|
|
|
URL: https://github.com/JuliaLang/juliaup
|
2023-02-13 01:04:11 +01:00
|
|
|
Source0: %{name}-%{version}.tar.zst
|
|
|
|
Source1: vendor.tar.zst
|
2023-12-10 14:50:47 +01:00
|
|
|
Patch0: https://patch-diff.githubusercontent.com/raw/JuliaLang/juliaup/pull/767.patch#/improve-error-message-if-version-or-channel-is-not-installed.patch
|
2022-03-10 17:50:24 +01:00
|
|
|
BuildRequires: cargo-packaging
|
2022-11-24 20:37:33 +01:00
|
|
|
BuildRequires: rust+cargo
|
2023-03-01 11:25:44 +01:00
|
|
|
BuildRequires: zstd
|
2023-12-10 14:50:47 +01:00
|
|
|
Requires(post): %{_sbindir}/update-alternatives
|
|
|
|
Requires(postun):%{_sbindir}/update-alternatives
|
2023-03-01 11:14:48 +01:00
|
|
|
ExclusiveArch: %{rust_tier1_arches}
|
2022-11-24 16:24:52 +01:00
|
|
|
|
2022-03-10 17:50:24 +01:00
|
|
|
%description
|
|
|
|
A cross-platform installer for the Julia programming language.
|
|
|
|
|
2022-03-14 07:29:56 +01:00
|
|
|
The installer also bundles a full Julia version manager called juliaup.
|
2022-07-17 14:57:35 +02:00
|
|
|
One can use juliaup to install specific Julia versions, it alerts users
|
|
|
|
when new Julia versions are released and provides a convenient Julia
|
|
|
|
release channel abstraction.
|
2022-03-10 17:50:24 +01:00
|
|
|
|
|
|
|
%prep
|
2022-12-26 07:22:49 +01:00
|
|
|
%autosetup -a1 -p1
|
2022-03-10 17:50:24 +01:00
|
|
|
|
|
|
|
%build
|
2022-11-21 15:20:25 +01:00
|
|
|
%{cargo_build} --no-default-features
|
2022-03-10 17:50:24 +01:00
|
|
|
|
|
|
|
%install
|
2022-11-21 15:20:25 +01:00
|
|
|
%{cargo_install} --no-default-features
|
2023-12-10 14:50:47 +01:00
|
|
|
|
|
|
|
# We are doing alternatives so we move julia as julialauncher
|
|
|
|
mv %{buildroot}%{_bindir}/julia %{buildroot}%{_bindir}/julialauncher
|
|
|
|
ln -sf %{_sysconfdir}/alternatives/julia %{buildroot}%{_bindir}/julia
|
|
|
|
|
|
|
|
%post
|
|
|
|
%{_sbindir}/update-alternatives --install %{_bindir}/julia \
|
|
|
|
julia %{_bindir}/julialauncher 10
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ ! -f %{_bindir}/julialauncher ] ; then
|
|
|
|
%{_sbindir}/update-alternatives --remove julia %{_bindir}/julialauncher
|
|
|
|
fi
|
2022-08-17 15:02:41 +02:00
|
|
|
|
2022-03-10 17:50:24 +01:00
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/juliaup
|
2023-12-10 14:50:47 +01:00
|
|
|
%{_bindir}/julialauncher
|
|
|
|
%ghost %{_bindir}/julia
|
2022-03-10 17:50:24 +01:00
|
|
|
|
2022-11-24 20:23:01 +01:00
|
|
|
%changelog
|