%define debug %nil %define debug_package %nil %define _optdir /opt/%{name} Name: edex-ui Version: 2.2.2 Release: 1 Summary: TRON UI URL: https://github.com/GitSquared/edex-ui/ Source0: https://github.com/GitSquared/edex-ui/archive/v%{version}/%{name}-%{version}.tar.gz Source1000: %{name}.rpmlintrc License: GPLv3 Group: Graphical desktop/Other BuildRequires: nodejs >= 8 BuildRequires: npm Prefix: %{_optdir} %description eDEX-UI is a fullscreen desktop application resembling a sci-fi computer interface, heavily inspired from DEX-UI and the TRON Legacy movie effects. It runs the shell of your choice in a real terminal, and displays live information about your system. It was made to be used on large touchscreens but will work nicely on a regular desktop computer or perhaps a tablet PC or one of those funky 360° laptops with touchscreens. %prep %setup -q %build npm install npm run build-linux %install install -d %{buildroot}%{prefix} %ifarch x86_64 pushd dist/linux-unpacked cp -ar . %{buildroot}%{prefix} popd %else pushd dist/linux-ia32-unpacked cp -ar . %{buildroot}%{prefix} popd %endif %post ln -sf /opt/%{name}/%{name} %{_bindir}/%{name} %postun rm -f %{_bindir}/%{name} %files %doc README.md LICENSE %{prefix}