Name: nwjs Summary: NW.js is an app runtime based on Chromium and node.js. Version: 0.57.0 Release: 1%{?dist} Source0: https://dl.nwjs.io/v%{version}/nwjs-v%{version}-linux-x64.tar.gz Source1: Makefile Source2: LICENSE License: MIT URL: https://github.com/nwjs/nw.js Group: Development/Libraries Packager: Matthew Chambers ExclusiveArch: x86_64 %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. # Because I'm just repacking pre-built binaries # debugging doesn't make sense here, disabling it. %global debug_package %{nil} %prep %setup -q -n nwjs-v%{version}-linux-x64 cp -a %{SOURCE1} %{SOURCE2} . %build %install VERSION=${version} DESTDIR=${RPM_BUILD_ROOT} make install %post LIBNW=/usr/lib64/nwjs if [ -e "$LIBNW" ] then ln -sf /usr/lib64/nwjs/nw /usr/bin/nw else ln -sf /usr/lib/nwjs/nw /usr/bin/nw fi %clean DESTDIR=${RPM_BUILD_ROOT} make clean %files %{_libdir}/%{name}/ %license %{_docdir}/%{name}/ %ghost %{_bindir}/nw %changelog * Thu Sep 30 2021 Matthew Chambers - 0.57.0-1 - First RPM package of NWJS