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

Annotation of /cauldron/desktop-file-utils/current/SPECS/desktop-file-utils.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 621521 - (hide annotations) (download)
Fri May 9 13:26:28 2014 UTC (5 years, 7 months ago) by wally
File size: 2076 byte(s)
- add LXQt to registered categories
1 blino 5293 Summary: Utilities for working with desktop entries
2     Name: desktop-file-utils
3 wally 473537 Version: 0.22
4 wally 621521 Release: %mkrel 4
5 blino 5293 License: GPLv2+
6     Group: Graphical desktop/Other
7     Url: http://freedesktop.org/Software/desktop-file-utils
8 wally 566163 Source0: http://freedesktop.org/software/desktop-file-utils/releases/%{name}-%{version}.tar.xz
9 wally 621521 # Adds OPENBOX and LXQt to the registered categories list
10     Patch0: desktop-file-utils-0.22-registered-categories.patch
11 wally 473537 BuildRequires: popt-devel
12 blino 5293 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 wally 566163 desktop-file-validate takes a single argument, the file to validate.
22 blino 5293
23     %prep
24     %setup -q
25 wally 248338 %apply_patches
26    
27 blino 5293 %build
28     %configure2_5x
29     %make
30    
31     %install
32 wally 248338 %makeinstall_std
33 blino 5293
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 wally 473537 %files
55 blino 5293 %doc AUTHORS NEWS README ChangeLog
56     %config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{name}.el
57     %{_bindir}/*
58 wally 248338 %{_mandir}/man1/*
59 blino 5293 %{_datadir}/emacs/site-lisp/desktop-entry-mode.el*
60     %{_var}/lib/rpm/filetriggers/update-desktop-database.*

  ViewVC Help
Powered by ViewVC 1.1.26