Simplify spec file

- Entirely drop `%build` section, as there is nothing to do anyway.
- Use `%make_install` macro.
- Replace the complicated file list wrangling with a simple directory
  enumeration.

Thanks to Igor Gnatenko for the suggestions!

See https://bugzilla.redhat.com/show_bug.cgi?id=1603146
This commit is contained in:
Martin Pitt 2018-08-02 14:39:54 +02:00
parent 509547f502
commit 8709d840cd

View file

@ -16,14 +16,11 @@ 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
%make_install
%files -f files.list
%files
%{_datadir}/cockpit/*
%{_datadir}/metainfo/*
%changelog