/[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 68319 - (hide annotations) (download)
Fri Mar 11 18:01:16 2011 UTC (8 years, 8 months ago) by mikala
Original Path: cauldron/desktop-file-utils/current/SPECS/desktop-file-utils.spec
File size: 2035 byte(s)
Update tarball to 0.18
- Remove buildroot

1 blino 5293 Summary: Utilities for working with desktop entries
2     Name: desktop-file-utils
3 mikala 68319 Version: 0.18
4 blino 5293 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    
13     %description
14     desktop-file-utils contains a couple of command line utilities for working
15     with desktop entries. It requires GLib and popt to compile, because the
16     implementation requires Unicode utilities and such.
17    
18     Right now the only documentation is "desktop-file-install --help".
19     desktop-file-validate takes a single argument, the file to validate.
20    
21     %prep
22     %setup -q
23     %build
24     %configure2_5x
25    
26     %make
27    
28     %install
29     rm -rf %{buildroot}
30    
31     %makeinstall_std
32     mkdir -p %{buildroot}%{_sysconfdir}/emacs/site-start.d/
33     cat > %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{name}.el << EOF
34     (autoload 'desktop-entry-mode "desktop-entry-mode" "Desktop Entry mode" t)
35     (add-to-list 'auto-mode-alist
36     '("\\\\.desktop\\\\(\\\\.in\\\\)?$" . desktop-entry-mode))
37     (add-hook 'desktop-entry-mode-hook 'font-lock-mode)
38     EOF
39    
40     # automatic cache update on rpm installs/removals
41     # (see http://wiki.mandriva.com/en/Rpm_filetriggers)
42     install -d %buildroot%{_var}/lib/rpm/filetriggers
43     cat > %buildroot%{_var}/lib/rpm/filetriggers/update-desktop-database.filter << EOF
44     ^./usr/share/applications/.*\.desktop$
45     EOF
46     cat > %buildroot%{_var}/lib/rpm/filetriggers/update-desktop-database.script << EOF
47     #!/bin/sh
48     /usr/bin/update-desktop-database /usr/share/applications > /dev/null 2> /dev/null
49     EOF
50     chmod 755 %buildroot%{_var}/lib/rpm/filetriggers/update-desktop-database.script
51    
52     %clean
53     rm -rf %{buildroot}
54    
55     %files
56     %defattr(-,root,root)
57     %doc AUTHORS NEWS README ChangeLog
58     %config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{name}.el
59     %{_bindir}/*
60     %_mandir/man1/*
61     %{_datadir}/emacs/site-lisp/desktop-entry-mode.el*
62     %{_var}/lib/rpm/filetriggers/update-desktop-database.*
63    
64    

  ViewVC Help
Powered by ViewVC 1.1.26