File emscripten.spec of Package emscripten
#
# spec file for package emscripten
#
# 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: emscripten
Version: 1.38.28
Release: 0
Summary: Compile C and C++ into asm.js or WebAssembly
License: MIT
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group: Development/Tools
URL: https://github.com/emscripten-core/emscripten
Source: https://github.com/emscripten-core/emscripten/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: emscripten-fastcomp
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: git
BuildRequires: gtest
BuildRequires: java-10-openjdk-devel
BuildRequires: nodejs10-devel
BuildRequires: pkgconfig
BuildRequires: python-devel
Recommends: binaryen
%description
Emscripten is an LLVM-based project that compiles C and C++ into highly-optimizable JavaScript in asm.js format. This lets you run C and C++ on the web at near-native speed, without plugins.
Particularly useful when combined with binaryen to produce WebAssembly.
%package -n %{name}-devel
Summary: Development files for %{name}
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group: Development/Tools
Requires: %{name} = %{version}
%description -n %{name}-devel
Development files for lib%{name}.
%prep
%setup -q
%build
%cmake \
-DBUILD_TESTS=OFF \
%make_jobs
%install
%cmake_install
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%license LICENSE
%doc README.md Contributing.md
%{_bindir}/emcc
%files -n %{name}-devel
%{_includedir}/binaryen-c.h
%changelog