/[packages]/cauldron/xdg-user-dirs-gtk/current/SPECS/xdg-user-dirs-gtk.spec
ViewVC logotype

Contents of /cauldron/xdg-user-dirs-gtk/current/SPECS/xdg-user-dirs-gtk.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6400 - (show annotations) (download)
Tue Jan 11 22:14:29 2011 UTC (10 years, 8 months ago) by blino
File size: 1988 byte(s)
imported package xdg-user-dirs-gtk
1 Summary: XDG user dirs support for GNOME/GTK+
2 Name: xdg-user-dirs-gtk
3 Version: 0.8
4 Release: %mkrel 5
5 License: GPLv2+
6 Group: Graphical desktop/GNOME
7 Url: http://www.gnome.org/
8 Source0: http://ftp.gnome.org/pub/gnome/sources/xdg-user-dirs-gtk/%{version}/%{name}-%{version}.tar.bz2
9 # (fc) 0.5-2mdv add KDE info to desktop file
10 Patch0: xdg-user-dirs-gtk-0.7-kde.patch
11 # (fc) 0.5-2mdv detect mdk-folders entries in gtk bookmarks and replace them with standard entries
12 Patch1: xdg-user-dirs-gtk-0.5-mdkfolders.patch
13 BuildRequires: gtk2-devel
14 BuildRequires: xdg-user-dirs
15 BuildRequires: intltool
16 Requires: xdg-user-dirs
17 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
18
19 %description
20 xdg-user-dirs-gtk is a companion to xdg-user-dirs that integrates it into
21 the Gnome desktop and Gtk+ applications.
22
23 It gets run during login and does two things:
24 * Tracks changes of locale and prompts the user so the directories
25 can be changed.
26 * Creates a default gtk bookmarks file if there is none, based
27 on a set of xdg user dirs.
28
29 %prep
30 %setup -q
31 %patch0 -p1 -b .kde
32 %patch1 -p1 -b .mdkfolders
33
34 %build
35 %configure2_5x
36 %make
37
38 %install
39 rm -rf %{buildroot}
40 %makeinstall_std
41
42 %find_lang %{name}
43
44 mkdir -p %{buildroot}%{_datadir}/autostart
45 install -m644 user-dirs-update-gtk.desktop %{buildroot}%{_datadir}/autostart
46
47 mkdir -p %{buildroot}%{_sysconfdir}/X11/xinit.d
48 cat > %{buildroot}%{_sysconfdir}/X11/xinit.d/xdg-user-dirs-update-gtk <<EOF
49 #!/bin/sh
50 DESKTOP=\$1
51 case \$DESKTOP in
52 GNOME|KDE|xfce4) exit 0;;
53 *) exec /usr/bin/xdg-user-dirs-gtk-update ;;
54 esac
55 EOF
56
57 chmod +x %{buildroot}%{_sysconfdir}/X11/xinit.d/xdg-user-dirs-update-gtk
58
59 %clean
60 rm -rf %{buildroot}
61
62 %files -f %{name}.lang
63 %defattr(-,root,root)
64 %doc AUTHORS ChangeLog README NEWS
65 %config(noreplace) %{_sysconfdir}/xdg/autostart/user-dirs-update-gtk.desktop
66 %config(noreplace) %{_sysconfdir}/X11/xinit.d/xdg-user-dirs-update-gtk
67 %{_bindir}/xdg-user-dirs-gtk-update
68 %{_datadir}/autostart/user-dirs-update-gtk.desktop
69
70

  ViewVC Help
Powered by ViewVC 1.1.28