starter-kit/cockpit-starter-kit.spec.in
Martin Pitt e9635620c5 spec: Don't try to rebuild webpack when building released tarballs
Release tarballs already have dist/. We can't rebuild the webpack in an
RPM as that requires npm and network access for `npm install`. But we
also don't want to ship the entire `node_modules/` as that is huge and
would require lots of careful license review.

So ship a stub node_modules/ that satisfies the Makefile dependency.
Make sure that this is not newer than package.json or anything in dist/,
so that none of the Makefile's rebuild rules trigger.

Closes #36
2018-07-19 09:11:07 +02:00

29 lines
562 B
RPMSpec

Name: cockpit-starter-kit
Version: @VERSION@
Release: 1%{?dist}
Summary: Cockpit Starter Kit Example Module
License: LGPLv2.1+
Source: cockpit-starter-kit-%{version}.tar.gz
BuildArch: noarch
BuildRequires: /usr/bin/python3
%define debug_package %{nil}
%description
Cockpit Starter Kit Example Module
%prep
%setup -n cockpit-starter-kit
%build
# There is nothing to do, release tarballs already have dist/.
%install
make install DESTDIR=%{buildroot}
find %{buildroot} -type f >> files.list
sed -i "s|%{buildroot}||" *.list
%files -f files.list
%changelog