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

# 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 vuntz@opensuse.org -- Fix uninitialized variables
Patch0:         metacity-uninitialized-variables.patch
# PATCH-FIX-UPSTREAM metacity-gdm-popup-error.patch bgo#588119 bnc#632726 vuntz@opensuse.org -- Taken from Fedora, to fix an error in gdm
Patch1:         metacity-gdm-popup-error.patch
# PATCH-FEATURE-UPSTREAM metacity-support-above-tab.patch vuntz@opensuse.org -- 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 federico@novell.com - Sanitize overlapping (cloned) monitors from Xinerama
Patch11:        metacity-bnc385553-buggy-intel-xinerama.diff
# PATCH-FIX-UPSTREAM metacity-key-list-binding.patch bnc576977 bgo609101 sbrabec@suse.cz -- Fix key bindings using key lists.
Patch14:        metacity-key-list-binding.patch
Url:            http://www.gnome.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       zenity
Recommends:     %{name}-lang
Provides:       windowmanager
%gconf_schemas_prereq

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

%lang_package
%prep
%setup -q
translation-update-upstream
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch11 -p1
%patch14 -p1
# Needed for patch2
autoreconf -fi

%build
%configure\
	--libexecdir=%{_prefix}/lib/%{name}\
	--disable-static\
	--disable-schemas-install
make %{?jobs:-j%jobs}

%install
%makeinstall
%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/*
%endif
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%{__rm} %{buildroot}/%{_libdir}/*.la
%suse_update_desktop_file metacity
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%post
/sbin/ldconfig
%desktop_database_post

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%postun
/sbin/ldconfig
%desktop_database_postun

%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/
%{_bindir}/*
%{_libdir}/*.so.*
%{_datadir}/applications/metacity.desktop
# Do not depend on libgnome just for a directory
%dir %{_datadir}/gnome
%dir %{_datadir}/gnome/wm-properties
%{_datadir}/gnome/wm-properties/metacity-wm.desktop
%{_datadir}/metacity
%{_datadir}/themes/*
%doc %{_mandir}/man*/*
# Avoid cyclic dependency on control-center
%dir %{_datadir}/gnome-control-center
%dir %{_datadir}/gnome-control-center/keybindings
%{_datadir}/gnome-control-center/keybindings/50-metacity-*key.xml
%doc %{_datadir}/gnome/help/creating-metacity-themes

%files lang -f %{name}.lang

%files devel
%defattr (-, root, root)
%{_includedir}/metacity-1
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by