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.
This commit is contained in:
Kalev Lember 2013-04-14 15:25:17 +02:00
parent ac33e3192c
commit 3df31727b7

View File

@ -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 || :