Use desktop-file-validate instead of desktop-file-install
This commit is contained in:
parent
36d22d8510
commit
6af57d6df1
@ -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/*.la
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-settings-daemon-3.0/*.a
|
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}
|
%find_lang %{name}
|
||||||
|
|
||||||
|
%check
|
||||||
|
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
|
||||||
|
|
||||||
%post
|
%post
|
||||||
for d in hicolor HighContrast ; do
|
for d in hicolor HighContrast ; do
|
||||||
touch --no-create %{_datadir}/icons/$d &>/dev/null || :
|
touch --no-create %{_datadir}/icons/$d &>/dev/null || :
|
||||||
|
Loading…
Reference in New Issue
Block a user