File wabt.spec of Package wabt
#
# spec file for package wabt
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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: wabt
Version: 1.0.8
Release: 0
Summary: The WebAssembly Binary Toolkit
License: Apache-2.0
Group: Development/Tools/Building
URL: https://github.com/WebAssembly/wabt
Source: https://github.com/WebAssembly/wabt/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: bison
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: python2-devel
%description
A suite of tools for WebAssembly. These tools are intended for use in (or for
development of) toolchains or other systems that want to manipulate WebAssembly
files. Unlike the WebAssembly spec interpreter (which is written to be as
simple, declarative and "speccy" as possible), they are written in C/C++ and
designed for easier integration into other systems. Unlike Binaryen these tools
do not aim to provide an optimization platform or a higher-level compiler
target; instead they aim for full fidelity and compliance with the spec (e.g.
1:1 round-trips with no changes to instructions).
%prep
%setup -q
%build
%cmake -DBUILD_TESTS=off
make %{?_smp_mflags}
%install
%cmake_install
%files
%license LICENSE
%doc README.md Contributing.md
%{_bindir}/wasm-objdump
%{_bindir}/wasm-interp
%{_bindir}/wasm-opcodecnt
%{_bindir}/wasm-strip
%{_bindir}/spectest-interp
%{_bindir}/wasm-validate
%{_bindir}/wasm2c
%{_bindir}/wasm2wat
%{_bindir}/wast2json
%{_bindir}/wat-desugar
%{_bindir}/wat2wasm
%{_mandir}/man1/wasm-interp.1%{?ext_man}
%{_mandir}/man1/wasm-objdump.1%{?ext_man}
%{_mandir}/man1/wasm2c.1%{?ext_man}
%{_mandir}/man1/wasm2wat.1%{?ext_man}
%{_mandir}/man1/wat2wasm.1%{?ext_man}
%{_mandir}/man1/wat-desugar.1%{?ext_man}
%{_mandir}/man1/spectest-interp.1%{?ext_man}
%{_mandir}/man1/wasm-opcodecnt.1%{?ext_man}
%{_mandir}/man1/wasm-strip.1%{?ext_man}
%{_mandir}/man1/wasm-validate.1%{?ext_man}
%{_mandir}/man1/wast2json.1%{?ext_man}
%changelog