forked from pool/juliaup
90b6b169be
this is part of the patches now. - Update to version 0.13.0: * Fix formatting * Move the clap def structs to separate file * change wording for comment for help text * format: run cargo fmt. * improvement: new message for `juliaup self uninstall command` if feature `selfupdate` is disabled * cleanup: add a period for each info/error messages. * refactor: remove redundant versiondb_data. also remove versiondb_data.available_versions since users cant access those * Fix usage of drop * Update all deps * Replace unmaintained action-rs actions * Don't detect ttyname if it is not needed * Describe 'julia +channel' after primary help text * juliaup-init.sh: backport changes from rustup * fixup: message should be more clear and generic * Try removing an unused import. * Only register the CTRL-C handler when it's safe to do so. * Format code. * Use double fork to prevent zombies. * launcher: replace parent process on supported platforms. * fix other error messages as well * fix error message on tests channel selection * fix an oopsie on one of the messages * run cargo fmt * remove redundant use * remove comment. irrelevant and unrelated now OBS-URL: https://build.opensuse.org/package/show/science/juliaup?expand=0&rev=89
77 lines
2.7 KiB
RPMSpec
77 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package juliaup
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
# We will keep this for now
|
|
%global oldest_supported_julia_version 0.7.0
|
|
%global latest_julia_version 1.10.1
|
|
|
|
Name: juliaup
|
|
Version: 1.13.0
|
|
Release: 0
|
|
Summary: Julia installer and version multiplexer
|
|
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
|
|
Group: Development/Languages/Other
|
|
URL: https://github.com/JuliaLang/juliaup
|
|
Source0: https://github.com/JuliaLang/juliaup/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Source1: vendor.tar.zst
|
|
BuildRequires: cargo-packaging
|
|
BuildRequires: rust+cargo
|
|
BuildRequires: zstd
|
|
Requires(post): %{_sbindir}/update-alternatives
|
|
Requires(postun):%{_sbindir}/update-alternatives
|
|
ExclusiveArch: %{rust_tier1_arches}
|
|
|
|
%description
|
|
A cross-platform installer for the Julia programming language.
|
|
|
|
The installer also bundles a full Julia version manager called juliaup.
|
|
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.
|
|
|
|
%prep
|
|
%autosetup -a1 -p1
|
|
|
|
%build
|
|
%{cargo_build} --no-default-features -F binjulialauncher
|
|
|
|
%install
|
|
%{cargo_install} --no-default-features -F binjulialauncher
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
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
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/juliaup
|
|
%{_bindir}/julialauncher
|
|
%ghost %{_bindir}/julia
|
|
%ghost %{_sysconfdir}/alternatives/julia
|
|
|
|
%changelog
|