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:
parent
509547f502
commit
8709d840cd
1 changed files with 4 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue