File mquickjs.spec of Package mquickjs
#
# spec file for package mquickjs
#
# Copyright (c) 2025 mantarimay
#
# 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/
#
Name: mquickjs
Version: 0
Release: 0
Summary: Micro QuickJS Javascript Engine
License: MIT
URL: https://github.com/bellard/mquickjs
Source0: %{name}-%{version}.tar.zst
%description
MicroQuickJS (aka. MQuickJS) is a JavaScript engine targetted at embedded
systems. It compiles and runs JavaScript programs using as little as 10 kB
of RAM. The whole engine requires about 100 kB of ROM (ARM Thumb-2 code)
including the C library. The speed is comparable to QuickJS.
%prep
%autosetup
%build
%make_build PREFIX=%{_prefix}
%install
install -Dm0755 mqjs -t %{buildroot}%{_bindir}
%files
%license LICENSE
%doc README.md Changelog
%{_bindir}/mqjs
%changelog