Bring back terser-webpack-plugin from commitc52136c051and re-enable it. It builds the autogenerated dist/index.js.LICENSE.txt which is quite important for shipping distribution packages -- c-{podman,machines} both do this. Backport95021c336eto make sure that the webpack for the release tarball is *actually* built in production mode.
35 lines
757 B
RPMSpec
35 lines
757 B
RPMSpec
Name: cockpit-starter-kit
|
|
Version: %{VERSION}
|
|
Release: 1%{?dist}
|
|
Summary: Cockpit Starter Kit Example Module
|
|
License: LGPLv2+
|
|
|
|
Source: cockpit-starter-kit-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
BuildRequires: make
|
|
BuildRequires: libappstream-glib
|
|
|
|
Requires: cockpit-system
|
|
|
|
%define debug_package %{nil}
|
|
|
|
%description
|
|
Cockpit Starter Kit Example Module
|
|
|
|
%prep
|
|
%setup -n cockpit-starter-kit
|
|
|
|
%install
|
|
%make_install
|
|
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*
|
|
|
|
# drop source maps, they are large and just for debugging
|
|
find %{buildroot}%{_datadir}/cockpit/ -name '*.map' | xargs --no-run-if-empty rm --verbose
|
|
|
|
%files
|
|
%doc README.md
|
|
%license LICENSE dist/index.js.LICENSE.txt
|
|
%{_datadir}/cockpit/*
|
|
%{_datadir}/metainfo/*
|
|
|
|
%changelog
|