+tiny-js OBS-URL: https://build.opensuse.org/request/show/866961 OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/tiny-js?expand=0&rev=1
49 lines
1.3 KiB
RPMSpec
49 lines
1.3 KiB
RPMSpec
#
|
|
# spec file for package tiny-js
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# 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: tiny-js
|
|
Version: 0.1
|
|
Release: 0
|
|
Summary: Small (2000 LOC) C++ JavaScript interpreter
|
|
License: MIT
|
|
URL: https://github.com/gfwilliams/tiny-js
|
|
Source: %{name}-%{version}.tar.xz
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: cmake
|
|
BuildRequires: ninja
|
|
|
|
%description
|
|
A small and incomplete JavaScript interpreter written in C++
|
|
|
|
%prep
|
|
%setup -q
|
|
%cmake -G Ninja
|
|
|
|
%build
|
|
%ninja_build -C build
|
|
|
|
%install
|
|
install -Dm755 build/tiny-js-cli %{buildroot}/%{_bindir}/tiny-js-cli
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/tiny-js-cli
|
|
|
|
%changelog
|