Name: odin-lang-nightly Version: 20261006 Release: 1%{?dist} Summary: Nightly builds of the Odin programming language compiler and standard library License: zlib URL: https://odin-lang.org/ %global __provides_exclude_from ^%{_prefix}/lib/odin/vendor/.*$ %global __requires_exclude_from ^%{_prefix}/lib/odin/vendor/.*$ %global odin_tag 0de10624fe594d77460192a675169e064a45f076 Source0: https://github.com/odin-lang/Odin/archive/%{odin_tag}.tar.gz#/Odin-%{odin_tag}.tar.gz Source1: odin.sh ExclusiveArch: x86_64 aarch64 %if 0%{?fedora} <= 44 BuildRequires: clang BuildRequires: lld BuildRequires: llvm-devel %else BuildRequires: clang22 BuildRequires: lld22 BuildRequires: llvm22-devel %endif Conflicts: odin-lang %description Odin is a general-purpose programming language with distinct typing built for high performance, modern systems and data-oriented programming. This package closely follows the master branch of the upstream repository. It builds Odin from source and installs the compiler along with the base, core, and vendor library collections. This is an unofficial COPR packaging of Odin and is maintained independently. Upstream project: https://github.com/odin-lang/Odin %prep %autosetup -n Odin-%{odin_tag} %build %if 0%{?fedora} > 44 export PATH="%{_libdir}/llvm22/bin:$PATH" %endif export CC=clang export CXX=clang++ export LLVM_CONFIG=llvm-config ./build_odin.sh nightly %check ./odin version %install install -d -m 0755 %{buildroot}%{_bindir} install -m 0755 odin %{buildroot}%{_bindir}/odin install -d -m 0755 %{buildroot}%{_prefix}/lib/odin cp -r base %{buildroot}%{_prefix}/lib/odin/base cp -r core %{buildroot}%{_prefix}/lib/odin/core cp -r vendor %{buildroot}%{_prefix}/lib/odin/vendor install -d -m 0755 %{buildroot}%{_sysconfdir}/profile.d install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d/odin.sh %files %license LICENSE %doc README.md %{_bindir}/odin %{_prefix}/lib/odin %config(noreplace) %{_sysconfdir}/profile.d/odin.sh %changelog * Tue Oct 6 2026 Fedora COPR 20261006-1 - Fedora 45 and Rawhide compatability. - Commit 0de10624fe594d77460192a675169e064a45f076