Name: pbench-dashboard Version: 3.1.0.git.273.f3e6108b Release: 1 Summary: The pbench dashboard bits License: GPLv3+ URL: http://github.com/distributed-systems-analysis/pbench-dashboard Source0: pbench-dashboard-3.1.0.git.273.f3e6108b.tar.gz Buildarch: noarch BuildRequires: yarn nodejs %define installdir var/www/html/dashboard %description The pbench "dashboard" UI %prep %setup -q -n pbench-dashboard-3.1.0.git.273.f3e6108b %build yarn install yarn build %pre getent group pbench > /dev/null || groupadd pbench getent passwd pbench > /dev/null || useradd -g pbench -d /home/pbench -c "Pbench user" pbench %install rm -rf %{buildroot} mkdir -p %{buildroot}/%{installdir} cp -a ./dist/* %{buildroot}/%{installdir} %post %preun %postun %posttrans %files %defattr(644, pbench, pbench, 755) /%{installdir}