2fd474d3ef
* Add Julia 1.8.0-rc4 * Fix another bug * Fix typo * Fix a bug * Fix typo * Fix a bug * Fix a typo * Compile different msix files * Fix a name in the app installer * Updates * Add VCLibs to app installer * Fix naming mismatch * Turn off some debug output * Update deps * Fix aws s3 sync call * Use aws cli directly on Windows * Fix workflow bugs * Fix things * Restructure deployment * Disable all deploy to GitHub releases * Don't run test workflow on version tags * Use concurrency for test workflow * Split workflow into test and build * Add tenant id for sign tool * Sign on Windows * Fix typo * Add Win AppInstaller (#371) * Update script that downloads bundled Julia versions * Fix typo OBS-URL: https://build.opensuse.org/package/show/science/juliaup?expand=0&rev=39
130 lines
4.4 KiB
RPMSpec
130 lines
4.4 KiB
RPMSpec
#
|
|
# spec file for package juliaup
|
|
#
|
|
# Copyright (c) 2022 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/
|
|
#
|
|
|
|
|
|
%global oldest_supported_julia_version 0.7.0
|
|
|
|
# Based on the latest stable release in the https://julialang.org/ website
|
|
# Juliaup follows the versions too in the following permalink:
|
|
# https://github.com/JuliaLang/juliaup/blob/main/build.rs#L22-L72
|
|
%define provides_julia_versioned() \
|
|
Provides: %{1}-0.7.0%{?2:-%{2}} \
|
|
Provides: %{1}-1.0.0%{?2:-%{2}} \
|
|
Provides: %{1}-1.0.1%{?2:-%{2}} \
|
|
Provides: %{1}-1.0.2%{?2:-%{2}} \
|
|
Provides: %{1}-1.0.3%{?2:-%{2}} \
|
|
Provides: %{1}-1.0.4%{?2:-%{2}} \
|
|
Provides: %{1}-1.0.5%{?2:-%{2}} \
|
|
Provides: %{1}-1.1.0%{?2:-%{2}} \
|
|
Provides: %{1}-1.1.1%{?2:-%{2}} \
|
|
Provides: %{1}-1.2.0%{?2:-%{2}} \
|
|
Provides: %{1}-1.3.0%{?2:-%{2}} \
|
|
Provides: %{1}-1.3.1%{?2:-%{2}} \
|
|
Provides: %{1}-1.4.0%{?2:-%{2}} \
|
|
Provides: %{1}-1.4.1%{?2:-%{2}} \
|
|
Provides: %{1}-1.4.2%{?2:-%{2}} \
|
|
Provides: %{1}-1.5.0%{?2:-%{2}} \
|
|
Provides: %{1}-1.5.1%{?2:-%{2}} \
|
|
Provides: %{1}-1.5.2%{?2:-%{2}} \
|
|
Provides: %{1}-1.5.3%{?2:-%{2}} \
|
|
Provides: %{1}-1.5.4%{?2:-%{2}} \
|
|
Provides: %{1}-1.6.0%{?2:-%{2}} \
|
|
Provides: %{1}-1.6.1%{?2:-%{2}} \
|
|
Provides: %{1}-1.6.2%{?2:-%{2}} \
|
|
Provides: %{1}-1.6.3%{?2:-%{2}} \
|
|
Provides: %{1}-1.6.4%{?2:-%{2}} \
|
|
Provides: %{1}-1.6.5%{?2:-%{2}} \
|
|
Provides: %{1}-1.6.6%{?2:-%{2}} \
|
|
Provides: %{1}-1.7.0-beta1%{?2:-%{2}} \
|
|
Provides: %{1}-1.7.0-beta2%{?2:-%{2}} \
|
|
Provides: %{1}-1.7.0-beta3%{?2:-%{2}} \
|
|
Provides: %{1}-1.7.0-beta4%{?2:-%{2}} \
|
|
Provides: %{1}-1.7.0-rc1%{?2:-%{2}} \
|
|
Provides: %{1}-1.7.0%{?2:-%{2}} \
|
|
Provides: %{1}-1.7.0-rc2%{?2:-%{2}} \
|
|
Provides: %{1}-1.7.0-rc3%{?2:-%{2}} \
|
|
Provides: %{1}-1.7.1%{?2:-%{2}} \
|
|
Provides: %{1}-1.7.2%{?2:-%{2}} \
|
|
Provides: %{1}-1.7.3%{?2:-%{2}} \
|
|
Provides: %{1}-1.8.0-beta1%{?2:-%{2}} \
|
|
Provides: %{1}-1.8.0-beta3%{?2:-%{2}} \
|
|
Provides: %{1}-1.8.0-rc1%{?2:-%{2}} \
|
|
Provides: %{1}-1.8.0-rc3%{?2:-%{2}} \
|
|
Provides: %{1}-1.8.0-rc4%{?2:-%{2}}
|
|
|
|
Name: juliaup
|
|
Version: 1.7.20
|
|
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: %{name}-%{version}.tar.gz
|
|
Source1: vendor.tar.gz
|
|
Source2: cargo_config
|
|
BuildRequires: cargo-packaging
|
|
Conflicts: julia
|
|
%provides_julia_versioned julia
|
|
Obsoletes: julia < %{oldest_supported_julia_version}
|
|
PreReq: update-alternatives
|
|
|
|
%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
|
|
mkdir .cargo
|
|
cp %{SOURCE2} .cargo/config
|
|
|
|
%build
|
|
%{cargo_build}
|
|
|
|
%install
|
|
%{cargo_install}
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
ln -sf %{_sysconfdir}/alternatives/julia %{buildroot}/%{_bindir}/julia
|
|
|
|
%post
|
|
"%_sbindir/update-alternatives" --install \
|
|
"%{_bindir}/julia" julia "%{_bindir}/julialauncher" 15
|
|
|
|
%pre
|
|
if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then
|
|
"%{_sbindir}/update-alternatives" --remove julia "%{_bindir}/julialauncher";
|
|
fi;
|
|
|
|
%postun
|
|
if [ ! -f %{_bindir}/julia ] ; then
|
|
"%{_sbindir}/update-alternatives" --remove julia "%{_bindir}/julialauncher"
|
|
fi
|
|
|
|
%files
|
|
%ghost %_sysconfdir/alternatives/julia
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/juliainstaller
|
|
%{_bindir}/julialauncher
|
|
%{_bindir}/juliaup
|
|
%{_bindir}/julia
|
|
|
|
%changelog
|