From e6597871cb733bf1217403c4602dbf3ec95133ca Mon Sep 17 00:00:00 2001 From: Peter Oliver Date: Jun 05 2021 13:24:21 +0000 Subject: Validate .desktop files. --- diff --git a/emacs.spec b/emacs.spec index 5121a46..67fdc5d 100644 --- a/emacs.spec +++ b/emacs.spec @@ -393,6 +393,9 @@ cat el-*-files common-lisp-dir-files > el-filelist # Remove old icon rm %{buildroot}%{_datadir}/icons/hicolor/scalable/mimetypes/emacs-document23.svg +%check +desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop + %preun %{_sbindir}/alternatives --remove emacs %{_bindir}/emacs-%{version}