File xdg-user-dirs-gtk.spec of Package xdg-user-dirs-gtk

#
# spec file for package xdg-user-dirs-gtk
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           xdg-user-dirs-gtk
BuildRequires:  gtk2-devel intltool perl-XML-Parser translation-update-upstream update-desktop-files xdg-user-dirs
License:        GPLv2+
Group:          System/GUI/GNOME
Summary:        xdg-user-dir support for Gnome and Gtk+ applications
Version:        0.8
Release:        13
Url:            http://download.gnome.org/sources/xdg-user-dirs-gtk
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM xdg-user-dirs-gtk-LXDE-autostart.patch fdo#26553 bnc#561145 andrea@opensuse.org -- Make xdg-user-dirs-gtk autostart on lxde session too
Patch0:         %{name}-LXDE-autostart.patch
# PATCH-FIX-UPSTREAM xdg-user-dirs-gtk-XFCE-LXDE-autostart.patch fdo#33107 gber@opensuse.org -- Start xdg-user-dirs-gtk in Xfce sessions as well
Patch1:         %{name}-XFCE-autostart.patch
Requires:       xdg-user-dirs %{name}-lang = %{version}

%description
A companion to xdg-user-dirs that integrates it into the Gnome desktop
and Gtk+ applications.	Presents a dialog when a user changes locales
to help move they standard user directories to the correct names.



Authors:
--------
    Alexander Larsson - alexl@redhat.com

%lang_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1
translation-update-upstream

%build
%configure
%__make %{?jobs:-j %jobs}

%install
%makeinstall
%suse_update_desktop_file $RPM_BUILD_ROOT/%{_sysconfdir}/xdg/autostart/*.desktop
%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING README ChangeLog
%{_prefix}/bin/*
%{_sysconfdir}/xdg/autostart/*.desktop

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by