Files
espruino/espruino.spec

52 lines
1.5 KiB
RPMSpec

#
# spec file for package espruino
#
# 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: espruino
Version: 2.08
Release: 0
Summary: JavaScript interpreter optimized for microcontrollers
License: MPL-2.0
URL: https://www.espruino.com
Source: Espruino-%{version}.tar.xz
BuildRequires: python2-base
BuildRequires: gcc-c++
# replaces "shell git" in Makefile with noops
Patch0: fix-no-git.patch
%description
%prep
%autosetup -n Espruino-%{version} -p1
# apply same fix from:
# https://build.opensuse.org/package/view_file/home:zhonghuaren/espruino/espruino.spec?expand=1
sed -i 's|if USE_64BIT|ifdef USE_64BIT|' src/jsnative.c
./scripts/provision.sh LINUX
%build
%make_build
%install
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}
%files
%license LICENSE
%doc ChangeLog README.md
%{_bindir}/%{name}
%changelog