File xfwm4.spec of Package xfwm4

#
# spec file for package xfwm4
#
# 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:           xfwm4
Version:        4.8.1
Release:        3.<RELEASE4>
License:        GPLv2+
Summary:        Default Window Manager for the Xfce Desktop Environment
Url:            http://www.xfce.org/projects/xfwm4/
Group:          System/GUI/XFCE
Source0:        %{name}-%{version}.tar.bz2
Source1:        Sonar-xfwm4.tar.bz2
Source2:        COPYING.Sonar
Source3:        Gilouche-xfwm4.tar.bz2
Source4:        COPYING.Gilouche
Source5:        xfwm4.xml
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(libstartup-notification-1.0)
BuildRequires:  pkgconfig(libwnck-1.0)
BuildRequires:  pkgconfig(libxfce4ui-1)
BuildRequires:  pkgconfig(libxfce4util-1.0)
BuildRequires:  pkgconfig(libxfconf-0)
BuildRequires:  update-desktop-files
BuildRequires:  libxslt
BuildRequires:  xml2po
BuildRequires:  docbook_4
BuildRequires:  docbook-xsl-stylesheets
Suggests:       xfwm4-themes
Provides:       windowmanager
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
xfwm4 is the default Xfce window manager which manages the placement of
application windows on the screen, provides beautiful window decorations,
manages workspaces or virtual desktops and natively supports multiscreen mode.
It provides its own compositing manager for true transparency and shadows. The
Xfce window manager also includes a keyboard shorcuts editor for user specific
commands and basic windows manipulations and provides a preferences dialog for
advanced tweaks.

%package branding-upstream
License:        GPLv2+
Summary:        Upstream Branding of xfwm4
Supplements:    packageand(%{name}:branding-upstream)
Provides:       %{name}-branding = %{version}
Conflicts:      otherproviders(%{name}-branding)
#BRAND: xfce4.xml: Determines a number of window manager settings including the
#BRAND: default theme and title bar font.
BuildArch:      noarch

%description branding-upstream
This package provides the upstream look and feel for the xfwm4 window manager.

%prep
%setup -q -a1 -a3

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

%install
%make_install
find Gilouche Sonar -depth -print | cpio -pvd %{buildroot}%{_datadir}/themes
install -p -m 644 example.gtkrc-2.0 README COPYING* AUTHORS COMPOSITOR \
    ChangeLog INSTALL TODO %{buildroot}%{_defaultdocdir}/%{name}
install -D -p -m 644 %{SOURCE3} \
    %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
%suse_update_desktop_file xfce-wm-settings
%suse_update_desktop_file xfce-wmtweaks-settings
%suse_update_desktop_file xfce-workspaces-settings
rm -f %{buildroot}%{_defaultdocdir}/%{name}/html/*/images/Makefile.am
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)
%{_bindir}/xfwm4
%{_bindir}/xfwm4-settings
%{_bindir}/xfwm4-tweaks-settings
%{_bindir}/xfwm4-workspace-settings
%{_libdir}/xfce4/xfwm4/helper-dialog
%{_datadir}/applications/*.desktop
%{_datadir}/icons/*
%{_datadir}/themes/*
%{_datadir}/xfwm4
%doc %{_defaultdocdir}/%{name}
%dir %{_libdir}/xfce4
%dir %{_libdir}/xfce4/xfwm4

%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/xfwm4.xml

%changelog