File gnome-shell.spec of Package gnome-shell

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

Name:           gnome-shell
Version:        2.91.6
Release:        6.<RELEASE3>
# FIXME: whenever we have GNOME3 as default desktop, remove BUILD_AGAINST_GNOME3 stuff, and gnome-shell-old-gsd.patch
License:        GPLv2+
Summary:        GNOME Shell
Group:          System/GUI/GNOME
Source:         %{name}-%{version}.tar.bz2
# To integrate a preview mode in GDM.
# Note: this also explains the Requires on gnome-session below.
Source1:        gnome-shell-session
Source2:        gnome3.desktop
# PATCH-FIX-OPENSUSE gnome-shell-integrate_114.patch -- Fix integration with underlying packages available in openSUSE 11.4.
Patch0:         gnome-shell-integrate_114.patch
# PATCH-FIX-UPSTREAM gnome-shell-handle-broken-glxinfo.patch bnc#672953 bgo#640680 -- Fix crash on startup if glxinfo fails with a weird error
Patch1:         gnome-shell-handle-broken-glxinfo.patch
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(clutter-1.0)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(gjs-1.0)
BuildRequires:  pkgconfig(gnome-desktop-3.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gstreamer-0.10)
BuildRequires:  pkgconfig(gstreamer-base-0.10)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(libcanberra)
BuildRequires:  pkgconfig(libcroco-0.6)
BuildRequires:  pkgconfig(libedataserver-1.2)
BuildRequires:  pkgconfig(libgnome-menu)
BuildRequires:  pkgconfig(libpulse-mainloop-glib)
BuildRequires:  pkgconfig(libstartup-notification-1.0)
BuildRequires:  pkgconfig(mutter-plugins)
BuildRequires:  pkgconfig(xfixes)
Requires:       dbus-1-python
Requires:       gdk-pixbuf-loader-rsvg
Requires:       gjs
Requires:       gnome-icon-theme-symbolic
Requires:       gnome-session
# For a GSettings schema
Requires:       gnome-settings-daemon
Requires:       gsettings-desktop-schemas
# mutter-devel doesn't automatically bring mutter
Requires:       mutter
Requires:       python-gconf
Requires:       python-gobject
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

The GNOME Shell redefines user interactions with the GNOME desktop. In
particular, it offers new paradigms for launching applications, accessing
documents, and organizing open windows in GNOME.

%setup -q
%patch0 -p1
%patch1 -p1

%configure \
	--disable-static \
	--libexecdir=%{_libexecdir}/%{name} \
        --disable-schemas-install \
%__make %{?_smp_mflags}

find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file %{name}
# Preview mode for GNOME 3
install -m755  %{S:1} %{buildroot}%{_libexecdir}/%{name}/
install -d -m755 %{buildroot}%{_datadir}/xsessions
install -m644 %{S:2} %{buildroot}%{_datadir}/xsessions/
%suse_update_desktop_file %{buildroot}%{_datadir}/xsessions/gnome3.desktop
install -d -m755 %{buildroot}%{_datadir}/gnome-shell/xdg-override/autostart
cp %{buildroot}%{_datadir}/applications/gnome-shell.desktop %{buildroot}%{_datadir}/gnome-shell/xdg-override/autostart/

rm -rf %{buildroot}

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun



%files -f %{name}.schemas_list
%if "%{_libdir}" != "%{_libexecdir}"
%doc %{_mandir}/man?/gnome-shell.*

%files lang -f %{name}.lang