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 http://bugs.opensuse.org/
#



Name:           xfdesktop
Version:        4.8.1
Release:        3.<RELEASE3>
License:        GPLv2+
Summary:        Desktop manager for the Xfce Desktop Environment
Url:            http://www.xfce.org/projects/xfdesktop/
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 gber@opensuse.org -- 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

%description
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.

%prep
%setup -q
%patch0 -p1

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

%install
%make_install
install -D -p -m 644 %{SOURCE1} \
    %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml
install -p -m 644 README COPYING AUTHORS ChangeLog INSTALL TODO \
    %{buildroot}/%{_defaultdocdir}/%{name}
%suse_update_desktop_file xfce-backdrop-settings
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{name}
%fdupes %{buildroot}%{_datadir}

%clean
rm -rf %{buildroot}

%if 0%{?suse_version} >= 1140

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif

%files -f %name.lang
%defattr(-,root,root)
%doc %{_defaultdocdir}/%{name}
%{_bindir}/xfdesktop
%{_bindir}/xfdesktop-settings
%{_datadir}/applications/xfce-backdrop-settings.desktop
%{_datadir}/pixmaps/*.png
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/icons/hicolor/*/*/*.svg
%{_mandir}/man1/xfdesktop.1.gz
%{_datadir}/pixmaps/xfdesktop
%{_datadir}/xfce4/backdrops

%files branding-upstream
%defattr(-,root,root)
%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

%changelog
openSUSE Build Service is sponsored by