/[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 5293 - (show annotations) (download)
Mon Jan 10 10:31:07 2011 UTC (8 years, 11 months ago) by blino
Original Path: cauldron/desktop-file-utils/current/SPECS/desktop-file-utils.spec
File size: 2087 byte(s)
imported package desktop-file-utils
1 Summary: Utilities for working with desktop entries
2 Name: desktop-file-utils
3 Version: 0.17
4 Release: %mkrel 1
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.bz2
9 Buildrequires: popt-devel glibc-static-devel
10 BuildRequires: glib2-devel
11 BuildRequires: emacs-bin
12 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
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 desktop-file-validate takes a single argument, the file to validate.
21
22 %prep
23 %setup -q
24 %build
25 %configure2_5x
26
27 %make
28
29 %install
30 rm -rf %{buildroot}
31
32 %makeinstall_std
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 %clean
54 rm -rf %{buildroot}
55
56 %files
57 %defattr(-,root,root)
58 %doc AUTHORS NEWS README ChangeLog
59 %config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{name}.el
60 %{_bindir}/*
61 %_mandir/man1/*
62 %{_datadir}/emacs/site-lisp/desktop-entry-mode.el*
63 %{_var}/lib/rpm/filetriggers/update-desktop-database.*
64
65

  ViewVC Help
Powered by ViewVC 1.1.26