Files
hermes/hermes.spec
2025-11-08 17:38:22 -05:00

75 lines
2.0 KiB
RPMSpec

#
# spec file for package hermes
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#
# The build here opts to use cmake and ninja directly instead of py tool:
# https://github.com/facebook/hermes/blob/main/doc/BuildingAndRunning.md
Name: hermes
Version: 0.14.0
Release: 0
Summary: A small JavaScript engine
License: MIT
URL: https://hermesengine.dev
Source: https://github.com/facebook/hermes/archive/refs/tags/hermes-v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source88: hermes-rpmlintrc
BuildRequires: cmake
BuildRequires: python3-base
BuildRequires: gcc-c++
BuildRequires: libicu-devel
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: zip
BuildRequires: pkgconfig(readline)
%package -n hermes-devel
Summary: Hermes development headers
%description -n hermes-devel
Hermes JavaScript engine development headers
%description
Hermes is a JavaScript engine optimized for running React Native
on Android.
%prep
%autosetup -n hermes-hermes-v%{version}
%cmake -G Ninja
%build
%ninja_build -C build
%install
%ninja_install -C build
# remove empty dirs
rm -fr %{buildroot}%{_datadir}
%files
%license LICENSE
%doc README.md
%{_bindir}/hermes
%{_bindir}/hermesc
%{_bindir}/hdb
%{_bindir}/hbcdump
%{_bindir}/hvm
%{_prefix}/lib/libhermes.so
%files devel
%{_includedir}/hermes
%{_includedir}/jsi
%changelog