From 3df31727b7aefd653b100489e0ab369073dce060 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sun, 14 Apr 2013 15:25:17 +0200 Subject: [PATCH] Use desktop-file-validate instead of desktop-file-install desktop-file-install handles both desktop file installing and validating. Since gedit already installs the desktop file into the correct location, we only need desktop-file-validate. --- gedit.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gedit.spec b/gedit.spec index b5a109b..d052444 100644 --- a/gedit.spec +++ b/gedit.spec @@ -121,9 +121,6 @@ make %{_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT -desktop-file-install --delete-original \ - --dir $RPM_BUILD_ROOT%{_datadir}/applications \ - $RPM_BUILD_ROOT%{_datadir}/applications/* ## clean up all the static libs for plugins (workaround for no -module) /bin/rm -f `find $RPM_BUILD_ROOT%{_libdir} -name "*.a"` @@ -131,6 +128,9 @@ desktop-file-install --delete-original \ %find_lang %{name} --with-gnome +%check +desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/gedit.desktop + %post update-desktop-database >&/dev/null || : touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :