%global debug_package %{nil} %if 0%{?fedora} >= 40 %define llvm_version 17 %endif Name: inko Version: 0.17.1 Release: 1%{?dist} Summary: A language for building concurrent software with confidence License: MPL-2.0 URL: https://github.com/inko-lang/inko Source: https://github.com/inko-lang/inko/archive/refs/tags/v%{version}.tar.gz BuildRequires: llvm%{?llvm_version} BuildRequires: llvm%{?llvm_version}-devel BuildRequires: llvm%{?llvm_version}-static BuildRequires: rust BuildRequires: cargo BuildRequires: gcc make BuildRequires: libstdc++-devel libstdc++-static libffi-devel zlib-devel git Requires: libgcc gcc git %description Inko is a language for building concurrent software with confidence. Inko makes it easy to build concurrent software, without having to worry about unpredictable performance, unexpected runtime errors, or race conditions. %files -n %{name} %license LICENSE %doc README.md CHANGELOG.md %{_bindir}/inko %{_libdir}/%{name}/ %prep %autosetup -n %{name}-%{version_no_tilde} -p0 %build export INKO_STD=%{_libdir}/%{name}/std export INKO_RT=%{_libdir}/%{name}/runtime cargo build --release %install mkdir -p %{buildroot}/%{_libdir}/%{name}/std cp -r %{_builddir}/%{name}-%{version}/std/src/* %{buildroot}/%{_libdir}/%{name}/std mkdir -p %{buildroot}/%{_libdir}/%{name}/runtime install -m644 %{_builddir}/%{name}-%{version}/target/release/lib%{name}.a %{buildroot}/%{_libdir}/%{name}/runtime/lib%{name}.a mkdir -p %{buildroot}/%{_bindir} install -m755 %{_builddir}/%{name}-%{version}/target/release/%{name} %{buildroot}/%{_bindir}/%{name} %changelog %autochangelog