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
|
%prep
|
||||||
%setup -n cockpit-starter-kit
|
%setup -n cockpit-starter-kit
|
||||||
|
|
||||||
%build
|
|
||||||
# There is nothing to do, release tarballs already have dist/.
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot}
|
%make_install
|
||||||
find %{buildroot} -type f >> files.list
|
|
||||||
sed -i "s|%{buildroot}||" *.list
|
|
||||||
|
|
||||||
%files -f files.list
|
%files
|
||||||
|
%{_datadir}/cockpit/*
|
||||||
|
%{_datadir}/metainfo/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue