File nwjs.spec of Package nwjs
#
# spec file for package nwjs
#
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# 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: nwjs
Version: 0.49.2
Release: 0
Summary: An app runtime based on Chromium and node.js
License: MIT
Group: Productivity/Networking/Web/Browsers
URL: https://nwjs.io
#Git-Clone: https://github.com/nwjs/nw.js.git
Source: https://dl.nwjs.io/v%{version}/%{name}-v%{version}-linux-x64.tar.gz
BuildRequires: fdupes
ExclusiveArch: x86_64
%define debug_package %{nil}
%description
NW.js is an app runtime based on Chromium and node.js. You can
write native apps in HTML and JavaScript with NW.js. It also lets
you call Node.js modules directly from the DOM and enables a new
way of writing native applications with all Web technologies.
%prep
%setup -q -n %{name}-v%{version}-linux-x64
%build
%install
install -d -m 0755 %{buildroot}%{_bindir}
install -d -m 0755 %{buildroot}%{_libdir}/nwjs
cp -r \
nw \
lib/ \
locales/ \
icudtl.dat \
nw_100_percent.pak \
nw_200_percent.pak \
resources.pak \
swiftshader \
v8_context_snapshot.bin \
%{buildroot}%{_libdir}/nwjs/
%fdupes %{buildroot}%{_libdir}/nwjs/locales/
ln -s %{_libdir}/nwjs/nw %{buildroot}/%{_bindir}/nw
%files
%{_bindir}/nw
%{_libdir}/nwjs/
%changelog