2009-08-04 22:44:20 +00:00
#
2011-01-17 18:08:15 +00:00
# spec file for package gnome-shell
2009-08-04 22:44:20 +00:00
#
2011-01-14 16:17:07 +00:00
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
2009-08-04 22:44:20 +00: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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2011-01-17 18:08:15 +00:00
2009-08-04 22:44:20 +00:00
Name : gnome-shell
2011-02-13 22:43:51 +00:00
Version : 2.91.6
2011-02-17 12:11:02 +00:00
Release : 2
2011-01-17 14:12:43 +00:00
# FIXME: whenever we have GNOME3 as default desktop, remove BUILD_AGAINST_GNOME3 stuff, and gnome-shell-old-gsd.patch
2010-09-13 12:11:14 +00:00
License : GPLv2+
2010-09-13 12:11:13 +00:00
Summary : GNOME Shell
2010-09-13 12:11:14 +00:00
Group : System/GUI/GNOME
2011-01-17 14:12:43 +00:00
Url : http://live.gnome.org/GnomeShell
2010-09-09 21:18:36 +00:00
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
2011-02-13 22:43:51 +00:00
# PATCH-FIX-OPENSUSE gnome-shell-integrate_114.patch vuntz@opensuse.org -- Fix integration with underlying packages available in openSUSE 11.4.
Patch0 : gnome-shell-integrate_114.patch
2011-02-18 07:09:54 +00:00
# PATCH-FIX-UPSTREAM gnome-shell-handle-broken-glxinfo.patch bnc#672953 bgo#640680 vuntz@opensuse.org -- Fix crash on startup if glxinfo fails with a weird error
Patch1 : gnome-shell-handle-broken-glxinfo.patch
2010-09-13 12:11:14 +00:00
BuildRequires : intltool
2011-02-17 12:11:02 +00:00
BuildRequires : translation-update-upstream
2010-09-13 12:11:14 +00:00
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)
2010-11-17 13:17:32 +00:00
BuildRequires : pkgconfig(libcanberra)
2010-09-13 12:11:14 +00:00
BuildRequires : pkgconfig(libcroco-0.6)
2011-02-13 22:43:51 +00:00
BuildRequires : pkgconfig(libedataserver-1.2)
2010-09-13 12:11:14 +00:00
BuildRequires : pkgconfig(libgnome-menu)
2010-11-17 13:17:32 +00:00
BuildRequires : pkgconfig(libpulse-mainloop-glib)
2010-09-13 12:11:14 +00:00
BuildRequires : pkgconfig(libstartup-notification-1.0)
BuildRequires : pkgconfig(mutter-plugins)
BuildRequires : pkgconfig(xfixes)
2011-02-13 22:56:07 +00:00
Requires : dbus-1-python
Requires : gdk-pixbuf-loader-rsvg
Requires : gjs
Requires : gnome-icon-theme-symbolic
2009-10-08 01:03:21 +00:00
Requires : gnome-session
2011-02-15 11:05:19 +00:00
%if 0%{?BUILD_AGAINST_GNOME3}
2011-01-17 14:12:43 +00:00
# For a GSettings schema
Requires : gnome-settings-daemon
%endif
Requires : gsettings-desktop-schemas
2009-08-04 22:44:20 +00:00
# mutter-devel doesn't automatically bring mutter
Requires : mutter
2011-02-13 22:56:07 +00:00
Requires : python-gconf
Requires : python-gobject
2010-09-13 12:11:14 +00:00
Recommends: %{name} -lang
2009-08-04 22:44:20 +00:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%gconf_schemas_prereq
2010-09-13 12:11:14 +00:00
%glib2_gsettings_schema_requires
2009-08-04 22:44:20 +00:00
%description
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.
2009-09-03 22:55:13 +00:00
%lang_package
2009-08-04 22:44:20 +00:00
%prep
2009-08-17 13:33:39 +00:00
%setup -q
2011-02-17 12:11:02 +00:00
translation-update-upstream
2011-02-15 11:05:19 +00:00
%if ! 0%{?BUILD_AGAINST_GNOME3}
2010-12-15 18:07:17 +00:00
%patch0 -p1
2011-01-17 14:12:43 +00:00
%endif
2011-02-18 07:09:54 +00:00
%patch1 -p1
2009-08-04 22:44:20 +00:00
%build
%configure \
2010-09-13 12:11:13 +00:00
--disable-static \
2010-09-13 12:11:14 +00:00
--libexecdir=%{_libexecdir} /%{name} \
--disable-schemas-install \
2010-02-19 15:30:32 +00:00
--enable-compile-warnings=no
2010-09-13 12:11:14 +00:00
%__make %{?_smp_mflags}
2009-08-04 22:44:20 +00:00
%install
%makeinstall
2010-09-13 12:11:14 +00:00
find %{buildroot} -type f -name " * . l a " -delete -print
2011-02-13 22:56:07 +00:00
%find_lang %{name} %{?no_lang_C}
2009-08-17 13:33:39 +00:00
%suse_update_desktop_file %{name}
2009-08-04 22:44:20 +00:00
%find_gconf_schemas
2009-10-08 01:03:21 +00:00
# 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/
2009-08-04 22:44:20 +00:00
%clean
2010-09-13 12:11:14 +00:00
rm -rf %{buildroot}
2009-08-04 22:44:20 +00:00
%pre -f %{name}.schemas_pre
2010-09-09 22:16:08 +00:00
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
2010-09-13 12:11:14 +00:00
%post
%glib2_gsettings_schema_post
2011-02-13 22:56:07 +00:00
%desktop_database_post
2010-09-13 12:11:14 +00:00
%postun
%glib2_gsettings_schema_postun
2011-02-13 22:56:07 +00:00
%desktop_database_postun
2010-09-13 12:11:14 +00:00
2009-08-17 13:33:39 +00:00
%files -f %{name}.schemas_list
2009-08-04 22:44:20 +00:00
%defattr (-,root,root)
%doc COPYING
2011-01-17 14:12:43 +00:00
%{_bindir} /gnome-shell
%{_libexecdir} /gnome-shell/
2009-08-04 22:44:20 +00:00
%if "%{_libdir}" != "%{_libexecdir}"
2011-01-17 14:12:43 +00:00
%{_libdir} /gnome-shell/
2009-08-04 22:44:20 +00:00
%endif
2011-01-17 14:12:43 +00:00
%{_libdir} /mutter/plugins/libgnome-shell.so
%{_datadir} /applications/gnome-shell.desktop
2010-10-06 14:33:52 +00:00
%{_datadir} /glib-2.0/schemas/org.gnome.accessibility.magnifier.gschema.xml
2010-09-13 12:11:14 +00:00
%{_datadir} /glib-2.0/schemas/org.gnome.shell.gschema.xml
2009-10-08 01:03:21 +00:00
%{_datadir} /gnome-shell/
2011-01-17 14:12:43 +00:00
%{_datadir} /xsessions/gnome3.desktop
2010-09-13 12:11:14 +00:00
%{_sysconfdir} /xdg/menus/gs-applications.menu
2011-01-17 14:12:43 +00:00
%doc %{_mandir} /man?/gnome-shell.*
2009-08-04 22:44:20 +00:00
2009-09-03 22:55:13 +00:00
%files lang -f %{name}.lang
2009-08-04 22:44:20 +00:00
%changelog