File metacity.spec of Package metacity

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

# norootforbuild

Name:           metacity
BuildRequires:  fdupes
BuildRequires:  gconf2-devel
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libcanberra-devel
BuildRequires:  libgtop-devel
BuildRequires:  startup-notification-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  zenity
License:        GPLv2+
Group:          System/GUI/GNOME
Version:        2.30.3
Release:        3
Summary:        A Window Manager for the GNOME Desktop
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM metacity-uninitialized-variables.patch bgo619524 -- Fix uninitialized variables
Patch0:         metacity-uninitialized-variables.patch
# PATCH-FIX-UPSTREAM metacity-gdm-popup-error.patch bgo#588119 bnc#632726 -- Taken from Fedora, to fix an error in gdm
Patch1:         metacity-gdm-popup-error.patch
# PATCH-FEATURE-UPSTREAM metacity-support-above-tab.patch -- Add a "Above_Tab" pseudo-keysym, needed by gnome-shell. Taken from git.
Patch2:         metacity-support-above-tab.patch
# PATCH-FIX-OPENSUSE metacity-bnc385553-buggy-intel-xinerama.diff bnc385553 - Sanitize overlapping (cloned) monitors from Xinerama
Patch11:        metacity-bnc385553-buggy-intel-xinerama.diff
# PATCH-FIX-UPSTREAM metacity-key-list-binding.patch bnc576977 bgo609101 -- Fix key bindings using key lists.
Patch14:        metacity-key-list-binding.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       zenity
Recommends:     %{name}-lang
Provides:       windowmanager

Metacity is a window manager for the GNOME Desktop.

%package devel
License:        GPLv2+
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version}
Requires:       gtk2-devel

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.

%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch11 -p1
%patch14 -p1
# Needed for patch2
autoreconf -fi

make %{?jobs:-j%jobs}

%if 0%{?suse_version} <= 1110
%{__rm} %{buildroot}%{_datadir}/locale/ha/LC_MESSAGES/*
%{__rm} %{buildroot}%{_datadir}/locale/la/LC_MESSAGES/*
%{__rm} %{buildroot}%{_datadir}/locale/ig/LC_MESSAGES/*
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%{__rm} %{buildroot}/%{_libdir}/*.la
%suse_update_desktop_file metacity
%find_lang %{name} %{?no_lang_C}


%pre -f %{name}.schemas_pre


%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun


%files -f %{name}.schemas_list
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS rationales.txt README
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/creating-metacity-themes/
%doc %{_datadir}/gnome/help/creating-metacity-themes/C/
# Do not depend on libgnome just for a directory
%dir %{_datadir}/gnome
%dir %{_datadir}/gnome/wm-properties
%doc %{_mandir}/man*/*
# Avoid cyclic dependency on control-center
%dir %{_datadir}/gnome-control-center
%dir %{_datadir}/gnome-control-center/keybindings
%doc %{_datadir}/gnome/help/creating-metacity-themes

%files lang -f %{name}.lang

%files devel
%defattr (-, root, root)

openSUSE Build Service is sponsored by