2025-01-26 23:37:17 +05:30
|
|
|
Name: lune
|
|
|
|
Version: 0.8.9
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: A standalone Luau runtime
|
|
|
|
|
|
|
|
|
|
|
|
License: MPL2
|
|
|
|
URL: https://github.com/lune-org/lune
|
|
|
|
Source0: https://github.com/lune-org/lune/archive/refs/tags/v%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: x86_64 aarch64
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: rust
|
2025-01-28 18:16:31 +05:30
|
|
|
BuildRequires: cargo
|
2025-01-26 23:37:17 +05:30
|
|
|
BuildRequires: just
|
|
|
|
BuildRequires: clang
|
2025-01-31 13:13:52 +05:30
|
|
|
BuildRequires: perl
|
2025-01-28 18:25:19 +05:30
|
|
|
%ifarch aarch64
|
2025-01-28 18:28:57 +05:30
|
|
|
BuildRequires: gcc-aarch64-linux-gnu
|
2025-01-26 23:37:17 +05:30
|
|
|
BuildRequires: musl-devel
|
2025-01-28 18:21:51 +05:30
|
|
|
%endif
|
2025-01-26 23:37:17 +05:30
|
|
|
|
|
|
|
|
|
|
|
Requires: libstdc++
|
|
|
|
Requires: libgcc
|
|
|
|
Requires: openlibm
|
|
|
|
Requires: glibc
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n lune-%{version}
|
2025-01-31 12:45:55 +05:30
|
|
|
# Removes the first line containing clippy lint attribute which is falsely flagged as a shebang in build
|
2025-01-31 13:06:55 +05:30
|
|
|
find . -type f -name "*.rs" -exec perl -i -ne 'print unless /^\#!\[/ ' {} +
|
2025-01-26 23:37:17 +05:30
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
just build --locked --release
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
|
|
|
install -m0755 ./target/release/%{name} %{buildroot}/%{_bindir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE.txt
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%autochangelog
|
|
|
|
|