Accepting request 866960 from home:avindra:devel:languages:javascript

+hermes (JS engine, react native tooling)

OBS-URL: https://build.opensuse.org/request/show/866960
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/hermes?expand=0&rev=1
This commit is contained in:
2021-01-26 16:32:58 +00:00
committed by Git OBS Bridge
commit a7a48e46ee
7 changed files with 129 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

23
_service Normal file
View File

@@ -0,0 +1,23 @@
<!--
# vim: set syntax=xml
-->
<services>
<service name="tar_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/facebook/hermes.git</param>
<param name="revision">2686ddbf72010f9597f859fd125c709a2fb4fef9</param>
<param name="version">0.7.2</param>
<param name="exclude">.circleci</param>
<param name="exclude">.github</param>
<param name="exclude">.gitignore</param>
<param name="exclude">CODE_OF_CONDUCT.md</param>
</service>
<service name="tar" mode="manual"/>
<service name="recompress" mode="manual">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
</services>

3
hermes-0.7.2.tar.xz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0f1c96c869160cf36a64ddbccf9fe8fdbde3e4d82931ab0c22a4232512ab0ea6
size 5125556

4
hermes-rpmlintrc Normal file
View File

@@ -0,0 +1,4 @@
# todo: package shared lib correctly
addFilter("shlib-policy-name-error .*");

4
hermes.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Mon Jan 4 04:15:12 UTC 2021 - Avindra Goolcharan <avindra@opensuse.org>
- init pkg at 0.7.2+

71
hermes.spec Normal file
View File

@@ -0,0 +1,71 @@
#
# spec file for package hermes
#
# 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/
#
# The build here opts to use cmake and ninja directly instead of py tool:
# https://hermesengine.dev/docs/building-and-running
Name: hermes
Version: 0.7.2
Release: 0
Summary: A small JavaScript engine
License: MIT
URL: https://hermesengine.dev
Source: %{name}-%{version}.tar.xz
Source88: hermes-rpmlintrc
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libicu-devel
BuildRequires: ninja
BuildRequires: zip
%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
%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