2022-03-10 17:50:24 +01:00
|
|
|
#
|
|
|
|
# spec file for package juliaup
|
|
|
|
#
|
2024-01-14 01:43:40 +01:00
|
|
|
# Copyright (c) 2024 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
|
2024-01-14 01:43:40 +01:00
|
|
|
%global latest_julia_version 1.10.1
|
2022-07-21 07:53:41 +02:00
|
|
|
|
2022-03-10 17:50:24 +01:00
|
|
|
Name: juliaup
|
2024-02-15 16:55:37 +01:00
|
|
|
Version: 1.14.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
|
2024-01-14 01:43:40 +01:00
|
|
|
Source0: https://github.com/JuliaLang/juliaup/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2023-02-13 01:04:11 +01:00
|
|
|
Source1: vendor.tar.zst
|
2024-02-15 16:55:37 +01:00
|
|
|
BuildRequires: cargo
|
2022-03-10 17:50:24 +01:00
|
|
|
BuildRequires: cargo-packaging
|
2023-03-01 11:25:44 +01:00
|
|
|
BuildRequires: zstd
|
2023-12-10 14:50:47 +01:00
|
|
|
Requires(post): %{_sbindir}/update-alternatives
|
2024-02-15 16:55:37 +01:00
|
|
|
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
|
2023-12-12 20:38:16 +01:00
|
|
|
%{cargo_build} --no-default-features -F binjulialauncher
|
2022-03-10 17:50:24 +01:00
|
|
|
|
|
|
|
%install
|
2023-12-12 20:38:16 +01:00
|
|
|
%{cargo_install} --no-default-features -F binjulialauncher
|
2023-12-10 14:50:47 +01:00
|
|
|
|
2023-12-10 15:59:49 +01:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
2023-12-10 15:55:26 +01:00
|
|
|
ln -sf %{_sysconfdir}/alternatives/julia %{buildroot}%{_bindir}/julia
|
2023-12-10 14:50:47 +01:00
|
|
|
|
|
|
|
%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
|
2023-12-10 15:55:26 +01:00
|
|
|
%ghost %{_bindir}/julia
|
2023-12-12 20:38:16 +01:00
|
|
|
%ghost %{_sysconfdir}/alternatives/julia
|
2022-03-10 17:50:24 +01:00
|
|
|
|
2022-11-24 20:23:01 +01:00
|
|
|
%changelog
|