Don't always rebuild on "make" (in the phony "all" target), but introduce a real file target dist/index.js and its requisites. This gets rid of the "install-only" target, which is very non-standard and would not on an unbuilt tree anyway. Also add a "devel-install" target that does the usual symlinking of the built source tree into ~/.local/share/cockpit. Closes #17
26 lines
433 B
RPMSpec
26 lines
433 B
RPMSpec
Name: cockpit-starter-kit
|
|
Version: 1
|
|
Release: 0
|
|
Summary: Cockpit Starter Kit Example Module
|
|
License: LGPLv2.1+
|
|
|
|
Source: cockpit-starter-kit.tar.gz
|
|
BuildArch: noarch
|
|
|
|
%define debug_package %{nil}
|
|
|
|
%description
|
|
Cockpit Starter Kit Example Module
|
|
|
|
%prep
|
|
%setup -n cockpit-starter-kit
|
|
|
|
%build
|
|
make
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot}
|
|
find %{buildroot} -type f >> files.list
|
|
sed -i "s|%{buildroot}||" *.list
|
|
|
|
%files -f files.list
|