2007-01-16 00:42:31 +01:00
#
2011-01-18 01:18:09 +01:00
# spec file for package xfwm4
2010-12-05 22:56:34 +01:00
#
2011-01-10 13:09:23 +01:00
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
2010-12-05 22:56:34 +01:00
#
# 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.
2007-01-24 02:13:20 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
2007-01-16 00:42:31 +01:00
#
2011-01-10 13:09:23 +01:00
2007-01-24 02:13:20 +01:00
Name : xfwm4
2011-09-23 09:48:10 +02:00
Version : 4.8.2
2011-02-18 15:24:21 +01:00
Release : 6
2010-07-19 21:28:51 +02:00
License : GPLv2+
2011-01-17 13:49:02 +01:00
Summary : Default Window Manager for the Xfce Desktop Environment
2010-12-28 14:25:33 +01:00
Url : http://www.xfce.org/projects/xfwm4/
2007-08-14 03:10:00 +02:00
Group : System/GUI/XFCE
2010-12-03 02:57:57 +01:00
Source0 : %{name} -%{version} .tar.bz2
2011-02-02 22:57:20 +01:00
Source1 : Sonar-xfwm4.tar.bz2
Source2 : COPYING.Sonar
Source3 : Gilouche-xfwm4.tar.bz2
Source4 : COPYING.Gilouche
Source5 : xfwm4.xml
2011-10-11 14:09:46 +02:00
# PATCH-FIX-UPSTREAM xfwm4-4.8.2-fix-resizing.patch bxo#7445 gber@opensuse.org -- Ignore size increment if a resize request comes from an application itself (backported from upstream git)
Patch0 : xfwm4-4.8.2-fix-resizing.patch
# PATCH-FIX-UPSTREAM xfwm4-4.8.2-careful-layer-manipulation.patch gber@opensuse.org -- Be more careful when allowing applications to manipulate the window layer by themselves
Patch1 : xfwm4-4.8.2-careful-layer-manipulation.patch
2010-12-03 02:57:57 +01:00
BuildRequires : fdupes
BuildRequires : intltool
BuildRequires : pkgconfig(gtk+-2.0)
2010-12-28 14:25:33 +01:00
BuildRequires : pkgconfig(dbus-glib-1)
2010-12-03 02:57:57 +01:00
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
2011-02-02 22:57:20 +01:00
BuildRequires : libxslt
BuildRequires : xml2po
BuildRequires : docbook_4
BuildRequires : docbook-xsl-stylesheets
2011-10-14 18:43:52 +02:00
Recommends: %{name} -doc = %{version}
2009-07-29 00:56:42 +02:00
Suggests : xfwm4-themes
2010-12-03 02:57:57 +01:00
Provides : windowmanager
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2007-01-16 00:42:31 +01:00
%description
2010-12-28 14:25:33 +01:00
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.
2007-01-16 00:42:31 +01:00
2011-02-02 22:57:20 +01:00
%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.
2011-10-14 18:43:52 +02:00
%package doc
License : GPLv2+
Summary : Documentation for %{name}
Group : Documentation/HTML
Requires : xfwm4 = %{version}
%description doc
This package contains the HTML documentation for xfwm4.
2007-01-16 00:42:31 +01:00
%prep
2011-02-02 22:57:20 +01:00
%setup -q -a1 -a3
2011-10-11 14:09:46 +02:00
%patch0 -p1
%patch1 -p1
2007-01-16 00:42:31 +01:00
%build
2010-12-03 02:57:57 +01:00
export CFLAGS=" %{optflags} - f n o - s t r i c t - a l i a s i n g "
2007-05-31 21:17:21 +02:00
%configure \
2011-02-02 22:57:20 +01:00
--enable-gen-doc \
2011-10-14 18:43:52 +02:00
--docdir=%{_defaultdocdir} /%{name} -doc \
2007-05-31 21:17:21 +02:00
--enable-compositor
2010-12-28 14:25:33 +01:00
make %{?_smp_mflags} V=1
2007-01-16 00:42:31 +01:00
%install
2010-12-03 02:57:57 +01:00
%make_install
2011-02-02 22:57:20 +01:00
find Gilouche Sonar -depth -print | cpio -pvd %{buildroot} %{_datadir} /themes
2011-10-07 15:10:10 +02:00
install -D -p -m 644 %{SOURCE5} \
2011-02-02 22:57:20 +01:00
%{buildroot} %{_sysconfdir} /xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
2011-10-14 18:43:52 +02:00
mv %{buildroot} %{_defaultdocdir} /%{name} -doc/html .
2010-12-03 02:57:57 +01:00
%suse_update_desktop_file xfce-wm-settings
%suse_update_desktop_file xfce-wmtweaks-settings
%suse_update_desktop_file xfce-workspaces-settings
2011-02-02 22:57:20 +01:00
rm -f %{buildroot} %{_defaultdocdir} /%{name} /html/*/images/Makefile.am
2010-12-28 14:25:33 +01:00
rm -rf %{buildroot} %{_datadir} /locale/{ast,kk,tl_PH,ur_PK}
2008-11-03 14:33:10 +01:00
%find_lang %{name}
2010-12-03 02:57:57 +01:00
%fdupes %{buildroot} %{_datadir}
2007-01-16 00:42:31 +01:00
%clean
2010-12-03 02:57:57 +01:00
rm -rf %{buildroot}
2007-01-16 00:42:31 +01:00
2011-02-18 01:32:21 +01:00
%if 0%{?suse_version} >= 1140
2011-02-18 13:03:44 +01:00
2011-02-18 01:32:21 +01:00
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
2010-12-03 02:57:57 +01:00
%files -f %{name}.lang
2007-01-16 00:42:31 +01:00
%defattr (-,root,root)
2010-12-03 02:57:57 +01:00
%{_bindir} /xfwm4
%{_bindir} /xfwm4-settings
%{_bindir} /xfwm4-tweaks-settings
%{_bindir} /xfwm4-workspace-settings
%{_libdir} /xfce4/xfwm4/helper-dialog
2010-12-28 14:25:33 +01:00
%{_datadir} /applications/*.desktop
2007-01-16 00:42:31 +01:00
%{_datadir} /icons/*
%{_datadir} /themes/*
2010-12-28 14:25:33 +01:00
%{_datadir} /xfwm4
2010-12-03 02:57:57 +01:00
%dir %{_libdir} /xfce4
%dir %{_libdir} /xfce4/xfwm4
2007-01-16 00:42:31 +01:00
2011-02-02 22:57:20 +01:00
%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
2011-10-14 18:43:52 +02:00
%files doc
%defattr (-,root,root)
%doc example.gtkrc-2.0 README COPYING* AUTHORS COMPOSITOR ChangeLog TODO html/
2007-04-13 16:56:03 +02:00
%changelog