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

Contents of /obsolete/cauldron/desktop-file-utils/current/SPECS/desktop-file-utils.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 248338 - (show annotations) (download)
Mon May 28 13:36:42 2012 UTC (7 years, 6 months ago) by wally
Original Path: cauldron/desktop-file-utils/current/SPECS/desktop-file-utils.spec
File size: 2141 byte(s)
- add P0 from upstream to add XFCE to registered categories
- clean .spec a bit
1 Summary: Utilities for working with desktop entries
2 Name: desktop-file-utils
3 Version: 0.20
4 Release: %mkrel 2
5 License: GPLv2+
6 Group: Graphical desktop/Other
7 Url: http://freedesktop.org/Software/desktop-file-utils
8 Source: http://freedesktop.org/software/desktop-file-utils/releases/%{name}-%{version}.tar.xz
9 # From upstream:
10 # http://cgit.freedesktop.org/xdg/desktop-file-utils/commit/?id=ff6bf3
11 Patch0: desktop-file-utils-0.20-add-XFCE-to-registered-categories.patch
12 Buildrequires: popt-devel glibc-static-devel
13 BuildRequires: glib2-devel
14 BuildRequires: emacs-bin
15
16 %description
17 desktop-file-utils contains a couple of command line utilities for working
18 with desktop entries. It requires GLib and popt to compile, because the
19 implementation requires Unicode utilities and such.
20
21 Right now the only documentation is "desktop-file-install --help".
22 desktop-file-validate takes a single argument, the file to validate.
23
24 %prep
25 %setup -q
26 %apply_patches
27
28 %build
29 %configure2_5x
30 %make
31
32 %install
33 %makeinstall_std
34
35 mkdir -p %{buildroot}%{_sysconfdir}/emacs/site-start.d/
36 cat > %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{name}.el << EOF
37 (autoload 'desktop-entry-mode "desktop-entry-mode" "Desktop Entry mode" t)
38 (add-to-list 'auto-mode-alist
39 '("\\\\.desktop\\\\(\\\\.in\\\\)?$" . desktop-entry-mode))
40 (add-hook 'desktop-entry-mode-hook 'font-lock-mode)
41 EOF
42
43 # automatic cache update on rpm installs/removals
44 # (see http://wiki.mandriva.com/en/Rpm_filetriggers)
45 install -d %buildroot%{_var}/lib/rpm/filetriggers
46 cat > %buildroot%{_var}/lib/rpm/filetriggers/update-desktop-database.filter << EOF
47 ^./usr/share/applications/.*\.desktop$
48 EOF
49 cat > %buildroot%{_var}/lib/rpm/filetriggers/update-desktop-database.script << EOF
50 #!/bin/sh
51 /usr/bin/update-desktop-database /usr/share/applications > /dev/null 2> /dev/null
52 EOF
53 chmod 755 %buildroot%{_var}/lib/rpm/filetriggers/update-desktop-database.script
54
55 %files
56 %doc AUTHORS NEWS README ChangeLog
57 %config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{name}.el
58 %{_bindir}/*
59 %{_mandir}/man1/*
60 %{_datadir}/emacs/site-lisp/desktop-entry-mode.el*
61 %{_var}/lib/rpm/filetriggers/update-desktop-database.*
62
63

  ViewVC Help
Powered by ViewVC 1.1.26