From b7262d4a089370f409d6d2443d341686180819a7 Mon Sep 17 00:00:00 2001 From: Matěj Grabovský Date: Oct 10 2019 09:15:22 +0000 Subject: spec: Use macros where appropriate --- diff --git a/gnome-abrt.spec b/gnome-abrt.spec index e08258c..68be657 100644 --- a/gnome-abrt.spec +++ b/gnome-abrt.spec @@ -80,21 +80,21 @@ provides them with convenient way for managing these problems. %build autoconf -%configure %{?checkoption} -make +%configure %checkoption +%make_build %install -make install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} +%make_install %find_lang %{name} # remove all .la and .a files -find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f +find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -f desktop-file-install \ - --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ + --dir %{buildroot}%{_datadir}/applications \ --delete-original \ - ${RPM_BUILD_ROOT}%{_datadir}/applications/org.freedesktop.GnomeAbrt.desktop + %{buildroot}%{_datadir}/applications/org.freedesktop.GnomeAbrt.desktop %check