mjs/mjs.spec

48 lines
1.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package mjs
#
# 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: mjs
Version: 2.19.0
Release: 0
Summary: Embedded JavaScript engine for C/C++
License: GPL-2.0-only
URL: https://github.com/cesanta/mjs
Source: https://github.com/cesanta/mjs/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: clang
BuildRequires: glibc-devel
%description
%prep
%autosetup
%build
# see: https://github.com/cesanta/mjs/issues/62#issuecomment-387484977
cd mjs && %make_build DOCKER_CLANG=
%install
mkdir -p %{buildroot}%{_bindir}/
install -D -m755 mjs/build/mjs %{buildroot}%{_bindir}/mjs
%files
%license LICENSE
%doc README.md
%{_bindir}/mjs
%changelog