/[packages]/updates/infra_5/desktop-file-utils/current/SPECS/desktop-file-utils.spec
ViewVC logotype

Contents of /updates/infra_5/desktop-file-utils/current/SPECS/desktop-file-utils.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1060977 - (show annotations) (download)
Sat Oct 15 19:08:55 2016 UTC (7 years, 6 months ago) by akien
File size: 1798 byte(s)
- Version 0.23 (sync with current cauldron version)
1 Summary: Utilities for working with desktop entries
2 Name: desktop-file-utils
3 Version: 0.23
4 Release: %mkrel 1
5 License: GPLv2+
6 Group: Graphical desktop/Other
7 Url: http://freedesktop.org/Software/desktop-file-utils
8 Source0: http://freedesktop.org/software/desktop-file-utils/releases/%{name}-%{version}.tar.xz
9 # Adds OPENBOX to the registered categories list, fully adds LXQt
10 Patch0: desktop-file-utils-0.23-registered-categories.patch
11 # https://bugs.freedesktop.org/show_bug.cgi?id=97388
12 Patch1: 0001-Fix-missing-when-appending-to-a-list-not-ending-with.patch
13 BuildRequires: popt-devel
14 BuildRequires: glib2-devel
15 BuildRequires: emacs-bin
16
17 %description
18 desktop-file-utils contains a couple of command line utilities for working
19 with desktop entries. It requires GLib and popt to compile, because the
20 implementation requires Unicode utilities and such.
21
22 Right now the only documentation is "desktop-file-install --help".
23 desktop-file-validate takes a single argument, the file to validate.
24
25 %prep
26 %setup -q
27 %autopatch -p1
28
29 %build
30 %configure2_5x
31 %make
32
33 %install
34 %makeinstall_std
35
36 mkdir -p %{buildroot}%{_sysconfdir}/emacs/site-start.d/
37 cat > %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{name}.el << EOF
38 (autoload 'desktop-entry-mode "desktop-entry-mode" "Desktop Entry mode" t)
39 (add-to-list 'auto-mode-alist
40 '("\\\\.desktop\\\\(\\\\.in\\\\)?$" . desktop-entry-mode))
41 (add-hook 'desktop-entry-mode-hook 'font-lock-mode)
42 EOF
43
44 # automatic cache update on rpm installs/removals
45 %transfiletriggerin -- /usr/share/applications/
46 /usr/bin/update-desktop-database /usr/share/applications > /dev/null 2> /dev/null
47
48 %files
49 %doc AUTHORS NEWS README ChangeLog
50 %config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{name}.el
51 %{_bindir}/*
52 %{_mandir}/man1/*
53 %{_datadir}/emacs/site-lisp/desktop-entry-mode.el*

  ViewVC Help
Powered by ViewVC 1.1.30