/[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 738758 - (show annotations) (download)
Tue Oct 14 21:24:55 2014 UTC (5 years, 1 month ago) by doktor5000
Original Path: cauldron/desktop-file-utils/current/SPECS/desktop-file-utils.spec
File size: 2086 byte(s)
- added LXQt to registered categories fully
1 Summary: Utilities for working with desktop entries
2 Name: desktop-file-utils
3 Version: 0.22
4 Release: %mkrel 7
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, Cinnamon and LXQt to the registered categories list
10 Patch0: desktop-file-utils-0.22-registered-categories.patch
11 BuildRequires: popt-devel
12 BuildRequires: glib2-devel
13 BuildRequires: emacs-bin
14
15 %description
16 desktop-file-utils contains a couple of command line utilities for working
17 with desktop entries. It requires GLib and popt to compile, because the
18 implementation requires Unicode utilities and such.
19
20 Right now the only documentation is "desktop-file-install --help".
21 desktop-file-validate takes a single argument, the file to validate.
22
23 %prep
24 %setup -q
25 %apply_patches
26
27 %build
28 %configure2_5x
29 %make
30
31 %install
32 %makeinstall_std
33
34 mkdir -p %{buildroot}%{_sysconfdir}/emacs/site-start.d/
35 cat > %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{name}.el << EOF
36 (autoload 'desktop-entry-mode "desktop-entry-mode" "Desktop Entry mode" t)
37 (add-to-list 'auto-mode-alist
38 '("\\\\.desktop\\\\(\\\\.in\\\\)?$" . desktop-entry-mode))
39 (add-hook 'desktop-entry-mode-hook 'font-lock-mode)
40 EOF
41
42 # automatic cache update on rpm installs/removals
43 # (see http://wiki.mandriva.com/en/Rpm_filetriggers)
44 install -d %buildroot%{_var}/lib/rpm/filetriggers
45 cat > %buildroot%{_var}/lib/rpm/filetriggers/update-desktop-database.filter << EOF
46 ^./usr/share/applications/.*\.desktop$
47 EOF
48 cat > %buildroot%{_var}/lib/rpm/filetriggers/update-desktop-database.script << EOF
49 #!/bin/sh
50 /usr/bin/update-desktop-database /usr/share/applications > /dev/null 2> /dev/null
51 EOF
52 chmod 755 %buildroot%{_var}/lib/rpm/filetriggers/update-desktop-database.script
53
54 %files
55 %doc AUTHORS NEWS README ChangeLog
56 %config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{name}.el
57 %{_bindir}/*
58 %{_mandir}/man1/*
59 %{_datadir}/emacs/site-lisp/desktop-entry-mode.el*
60 %{_var}/lib/rpm/filetriggers/update-desktop-database.*

  ViewVC Help
Powered by ViewVC 1.1.26