Name: swiftly Version: 1.1.1 Release: 5%{?dist} Summary: A Swift toolchain installer and manager, written in Swift License: Apache-2.0 URL: https://swift.org/swiftly/ BuildRequires: curl BuildRequires: tar Requires: glibc Requires: libgcc Requires: curl Requires: ncurses-libs Requires: libxml2 Requires: zlib Recommends: python3 Recommends: gnupg2 Provides: swiftly = %{version}-%{release} Provides: swift-language = %{version}-%{release} Conflicts: swiftly Conflicts: swift-language %description A Swift toolchain installer and manager, written in Swift. %prep case "%{_target_cpu}" in x86_64) archive_arch="x86_64" ;; aarch64) archive_arch="aarch64" ;; *) echo "Unsupported architecture: %{_target_cpu}"; exit 1 ;; esac curl -fL "https://download.swift.org/swiftly/linux/swiftly-%{version}-${archive_arch}.tar.gz" -o swiftly.tar.gz tar -xzf swiftly.tar.gz %build # Prebuilt binary package. %install install -Dm755 swiftly %{buildroot}%{_bindir}/swiftly %post -p /bin/bash echo "=================================================================" echo " swiftly has been installed successfully! " echo " " echo " Because Arch Linux does not have official swift binaries, " echo " it is recommended to use the RHEL 9 platform toolchain. " echo " " echo " To initialize swiftly, bypass the platform prompt, and install " echo " the latest toolchain, run the following command as your normal " echo " user (WITHOUT sudo): " echo " " echo " SWIFTLY_PLATFORM=rhel9 swiftly init " echo " " echo " This will download the toolchain to your home directory and " echo " add it to your PATH automatically. " echo "=================================================================" %files %{_bindir}/swiftly %changelog * Sat Jun 20 2026 Sl (Shahaf Levi) - 1.1.1-5 - Initial COPR package for Slash