Name: wsf-cockpit Version: 5.0.162 Release: 1%{?dist} Summary: Whitestar Files Cockpit Module License: GPL Source0: https://whitestar.io/repo/wsf/5.0.078/5.0.162/wsf.tar.xz Source1: https://whitestar.io/repo/wsf/5.0.078/5.0.162/wsf-node.tar.xz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch %if 0%{?fedora} BuildRequires: nodejs-devel %endif BuildRequires: nodejs BuildRequires: make BuildRequires: libappstream-glib BuildRequires: gettext %if 0%{?rhel} && 0%{?rhel} <= 8 BuildRequires: libappstream-glib-devel %endif # require wsf service to run Requires: wsf >= 5.0.162, cockpit-bridge %description Whitestar Files Cockpit Module %prep %autosetup -n wsf -a 1 %build ESLINT=0 NODE_ENV=production PACKAGE_NAME=wsf make %install make install-cockpit DESTDIR=%{buildroot} PREFIX=/usr PACKAGE_NAME=wsf # drop source maps, they are large and just for debugging find %{buildroot}%{_datadir}/cockpit/ -name '*.map' | xargs --no-run-if-empty rm --verbose %check appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/* # this can't be meaningfully tested during package build; tests happen through # FMF (see plans/all.fmf) during package gating %files %doc README.md %{_datadir}/cockpit/* %{_datadir}/metainfo/* %changelog