File xfdesktop.spec of Package xfdesktop.openSUSE_11.4_Update

# spec file for package xfdesktop
# 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

Name:           xfdesktop
Version:        4.8.1
Release:        3.<RELEASE3>
License:        GPLv2+
Summary:        Desktop manager for the Xfce Desktop Environment
Group:          System/GUI/XFCE
Source0:        %{name}-%{version}.tar.bz2
Source1:        xfce4-desktop.xml
# PATCH-FIX-UPSTREAM xfdesktop-fix-slow-popup-menu.patch bnc#669768 bxo#7172 -- Adds a check for GDK_GRAB_INVALID_TIME in xfdesktop_popup_grab_available to mitigate slow menu popups on a right mouse click (backported from upstream git)
Patch0:         xfdesktop-fix-slow-popup-menu.patch
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  pkgconfig(garcon-1)
BuildRequires:  pkgconfig(exo-1)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libstartup-notification-1.0)
BuildRequires:  pkgconfig(libwnck-1.0)
BuildRequires:  pkgconfig(libxfce4ui-1)
BuildRequires:  pkgconfig(libxfce4util-1.0)
BuildRequires:  pkgconfig(thunarx-2)
BuildRequires:  pkgconfig(libxfconf-0)
BuildRequires:  update-desktop-files
Requires:       %{name}-branding >= %{version}
Provides:       xfce4-desktop = %{version}
Obsoletes:      xfce4-desktop < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Xfdesktop is a desktop manager for the Xfce Desktop Environment which can set
the background image, provides a right-click menu to launch applications and
can optionally show files (including application launchers) or iconified
windows, includes gradient support for background color, saturation support for
background images, as well as real multiscreen and xinerama support.

%package branding-upstream
License:        GPLv2+
Summary:        Upstream branding of xfce4-settings
# BRAND: xfce4-desktop.xml: Control desktop appearance such as the default
# BRAND: backdrop image.
Conflicts:      otherproviders(%{name}-branding)
Provides:       %{name}-branding = %{version}
Provides:       xfce4-desktop-branding-upstream = %{version}
Obsoletes:      xfce4-desktop-branding-upstream < %{version}
Supplements:    packageand(%{name}:branding-upstream)
BuildArch:      noarch

%description branding-upstream
This package provides the upstream look and feel for the Xfce Desktop Manager.

%setup -q
%patch0 -p1

export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure --docdir=%{_defaultdocdir}/%{name}
make %{?_smp_mflags} V=1

install -D -p -m 644 %{SOURCE1} \
%suse_update_desktop_file xfce-backdrop-settings
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{name}
%fdupes %{buildroot}%{_datadir}

rm -rf %{buildroot}

%if 0%{?suse_version} >= 1140



%files -f %name.lang
%doc %{_defaultdocdir}/%{name}

%files branding-upstream
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml

openSUSE Build Service is sponsored by