From a26ef5d27ca35ab0d05425305f910fbe9f61586a Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 2 Aug 2018 16:16:49 +0200 Subject: [PATCH] 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 Closes #38 --- cockpit-starter-kit.spec.in | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/cockpit-starter-kit.spec.in b/cockpit-starter-kit.spec.in index 574bf0d..0777b50 100644 --- a/cockpit-starter-kit.spec.in +++ b/cockpit-starter-kit.spec.in @@ -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