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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30