Use desktop-file-validate instead of desktop-file-install

This commit is contained in:
Kalev Lember 2014-03-23 11:13:54 +01:00
parent 36d22d8510
commit 6af57d6df1

View File

@ -74,13 +74,11 @@ make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-settings-daemon-3.0/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-settings-daemon-3.0/*.a
desktop-file-install --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
$RPM_BUILD_ROOT%{_datadir}/applications/gnome-disks.desktop \
$RPM_BUILD_ROOT%{_datadir}/applications/gnome-disk-image-mounter.desktop
%find_lang %{name}
%check
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
%post
for d in hicolor HighContrast ; do
touch --no-create %{_datadir}/icons/$d &>/dev/null || :