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

+wasp (WASM tool)

OBS-URL: https://build.opensuse.org/request/show/866958
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/wasp?expand=0&rev=1
This commit is contained in:
Avindra Goolcharan 2021-01-26 16:33:27 +00:00 committed by Git OBS Bridge
commit 198ea1ca90
7 changed files with 133 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

27
_service Normal file
View File

@ -0,0 +1,27 @@
<!--
# vim: set syntax=xml
-->
<services>
<!--
To get a new tarball, make your changes then run:
$ osc service manualrun tar_scm && osc service manualrun recompress
-->
<service name="tar_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/WebAssembly/wasp.git</param>
<param name="revision">v0.0.4</param>
<param name="version">0.0.4</param>
<param name="exclude">.github</param>
<param name="exclude">.gitignore</param>
<param name="exclude">.circleci</param>
<param name="exclude">.clang-format</param>
<param name="exclude">Makefile</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
wasp-0.0.4.tar.xz Normal file
View File

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

4
wasp-rpmlintrc Normal file
View File

@ -0,0 +1,4 @@
# todo: package shared lib correctly
addFilter("lto-no-text-in-archive .*");

6
wasp.changes Normal file
View File

@ -0,0 +1,6 @@
-------------------------------------------------------------------
Sun Jan 10 20:04:46 UTC 2021 - Avindra Goolcharan <avindra@opensuse.org>
- initial package at 0.0.4, based mostly on wabt spec
- incomplete: tools are not installed to the correct locations and
not linked correctly

69
wasp.spec Normal file
View File

@ -0,0 +1,69 @@
#
# spec file for package wasp
#
# 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: wasp
Version: 0.0.4
Release: 0
Summary: wabt-related technology
License: Apache-2.0
# FIXME: use correct group or remove it, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group: Development/Tools
URL: https://github.com/WebAssembly/wasp
Source0: %{name}-%{version}.tar.xz
Source99: wasp-rpmlintrc
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: ninja
%description
Wasp is a C++ library designed to make it easy to work with WebAssembly modules.
Unlike wabt, it is designed to be used as a library.
It includes the wasp tool.
%package devel
Summary: Development packages for %{name}
Group: Development/Libraries/C and C++
%description devel
Development headers for wasp
%prep
%autosetup
%cmake -DBUILD_TESTS=OFF -G Ninja
cd -
%build
%ninja_build -C build
%install
%ninja_install -C build
%files
%license LICENSE
%doc README.md
%{_bindir}/wasp
%{_mandir}/man1/wasp.1%{?ext_man}
%files devel
%{_includedir}/wasm-rt-impl.h
%{_includedir}/wasm-rt.h
%{_libdir}/libwasm-rt-impl.a
%changelog