Summary: Utilities for working with desktop entries Name: desktop-file-utils Version: 0.23 Release: %mkrel 1 License: GPLv2+ Group: Graphical desktop/Other Url: http://freedesktop.org/Software/desktop-file-utils Source0: http://freedesktop.org/software/desktop-file-utils/releases/%{name}-%{version}.tar.xz # Adds OPENBOX to the registered categories list, fully adds LXQt Patch0: desktop-file-utils-0.23-registered-categories.patch # https://bugs.freedesktop.org/show_bug.cgi?id=97388 Patch1: 0001-Fix-missing-when-appending-to-a-list-not-ending-with.patch BuildRequires: popt-devel BuildRequires: glib2-devel BuildRequires: emacs-bin %description desktop-file-utils contains a couple of command line utilities for working with desktop entries. It requires GLib and popt to compile, because the implementation requires Unicode utilities and such. Right now the only documentation is "desktop-file-install --help". desktop-file-validate takes a single argument, the file to validate. %prep %setup -q %autopatch -p1 %build %configure2_5x %make %install %makeinstall_std mkdir -p %{buildroot}%{_sysconfdir}/emacs/site-start.d/ cat > %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{name}.el << EOF (autoload 'desktop-entry-mode "desktop-entry-mode" "Desktop Entry mode" t) (add-to-list 'auto-mode-alist '("\\\\.desktop\\\\(\\\\.in\\\\)?$" . desktop-entry-mode)) (add-hook 'desktop-entry-mode-hook 'font-lock-mode) EOF # automatic cache update on rpm installs/removals %transfiletriggerin -- /usr/share/applications/ /usr/bin/update-desktop-database /usr/share/applications > /dev/null 2> /dev/null %files %doc AUTHORS NEWS README ChangeLog %config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{name}.el %{_bindir}/* %{_mandir}/man1/* %{_datadir}/emacs/site-lisp/desktop-entry-mode.el*