+#
+# Conditional build:
+%bcond_without systemd # by default use systemd for session tracking instead of ConsoleKit (fallback to ConsoleKit on runtime)
+#
Summary: Window manager and application launcher for GNOME
Name: gnome-shell
-Version: 3.2.0
-Release: 3
+Version: 3.6.0
+Release: 2
License: GPL v2+
Group: X11/Window Managers
-Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-shell/3.2/%{name}-%{version}.tar.xz
-# Source0-md5: 684d7620f1dfd144b2d97ab970daa1ad
+Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-shell/3.6/%{name}-%{version}.tar.xz
+# Source0-md5: cf6b87fd37329573c322b384c1593e17
URL: http://live.gnome.org/GnomeShell
-BuildRequires: GConf2-devel
BuildRequires: NetworkManager-devel >= 0.8.999
BuildRequires: autoconf >= 2.63
BuildRequires: automake >= 1:1.11
-BuildRequires: clutter-devel >= 1.7.5
+BuildRequires: clutter-devel >= 1.11.11
BuildRequires: dbus-glib-devel
-BuildRequires: evolution-data-server-devel >= 3.1.90
-BuildRequires: folks-devel >= 0.6.1
+BuildRequires: evolution-data-server-devel >= 3.5.3
+BuildRequires: gcr-devel >= 3.3.90
BuildRequires: gettext-devel >= 0.17
-BuildRequires: gjs-devel >= 1.29.18
-BuildRequires: glib2-devel >= 1:2.29.10
+BuildRequires: gjs-devel >= 1.33.2
+BuildRequires: glib2-devel >= 1:2.31.6
BuildRequires: gnome-bluetooth-devel >= 3.1.0
-BuildRequires: gnome-desktop-devel >= 3.1.90
-BuildRequires: gnome-menus-devel >= 3.1.90
+BuildRequires: gnome-desktop-devel >= 3.5.1
+BuildRequires: gnome-menus-devel >= 3.5.3
BuildRequires: gobject-introspection-devel >= 0.10.1
-BuildRequires: gsettings-desktop-schemas-devel >= 3.1.90
-BuildRequires: gstreamer-devel >= 0.10.21
-BuildRequires: gstreamer-plugins-base-devel >= 0.10.21
-BuildRequires: gtk+3-devel >= 3.0.0
+BuildRequires: gsettings-desktop-schemas-devel >= 3.5.4
+BuildRequires: gstreamer-devel >= 1.0.0
+BuildRequires: gstreamer-plugins-base-devel >= 1.0.0
+BuildRequires: gtk+3-devel >= 3.3.9
+BuildRequires: gtk-doc >= 1.15
BuildRequires: intltool >= 0.40
BuildRequires: json-glib-devel >= 0.13.90
BuildRequires: libcanberra-devel
BuildRequires: libsoup-devel
BuildRequires: libtool >= 2:2.2.6
BuildRequires: libxml2-devel
-BuildRequires: mutter-devel >= 3.2.0
+BuildRequires: mutter-devel >= 3.6.0
BuildRequires: pkgconfig >= 1:0.22
BuildRequires: polkit-devel >= 0.100
BuildRequires: pulseaudio-devel
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.601
BuildRequires: startup-notification-devel >= 0.11
+%{?with_systemd:BuildRequires: systemd-devel}
BuildRequires: tar >= 1:1.22
-BuildRequires: telepathy-glib-devel >= 0.15.5
+BuildRequires: telepathy-glib-devel >= 0.17.5
BuildRequires: telepathy-logger-devel >= 0.2.4
BuildRequires: xorg-lib-libXfixes-devel
-# for libmozjs.so
-BuildRequires: xulrunner-libs
BuildRequires: xz
Requires(post,postun): glib2 >= 1:2.26.0
-Requires(post,preun): GConf2
+Requires: at-spi2-atk >= 2.4.0
Requires: caribou >= 0.3.5
-Requires: evolution-data-server >= 3.1.90
+Requires: evolution-data-server >= 3.5.3
+Requires: gjs >= 1.33.2
+Requires: glib2 >= 1:2.31.6
Requires: gnome-bluetooth-libs >= 3.1.0
-Requires: gnome-menus >= 3.1.90
+Requires: gnome-menus >= 3.5.3
Requires: gnome-settings-daemon >= 3.1.90
-Requires: gsettings-desktop-schemas >= 3.1.90
-Requires: mutter >= 3.1.91.1
+Requires: gsettings-desktop-schemas >= 3.5.4
+Requires: gtk+3 >= 3.3.9
+Requires: mutter >= 3.6.0
+Requires: nautilus >= 3.2.0
Requires: telepathy-logger >= 0.2.4
-%requires_eq xulrunner-libs
+Requires: telepathy-mission-control
+Suggests: gnome-contacts >= 3.2.0
Suggests: gnome-icon-theme-symbolic >= 3.0.0
+Provides: gdm-wm = 3.6.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
user interface concepts to provide a delightful and easy to use
experience.
+%package apidocs
+Summary: GNOME Shell API documentation
+Summary(pl.UTF-8): Dokumentacja API GNOME Shell
+Group: Documentation
+Requires: gtk-doc-common
+
+%description apidocs
+This package provides GNOME Shell API documentation.
+
+%description apidocs -l pl.UTF-8
+Ten pakiet dostarcza dokumentację API GNOME Shell.
+
%package -n browser-plugin-%{name}
Summary: gnome-shell plugin for WWW browsers
Summary(pl.UTF-8): Wtyczka gnome-shell do przeglądarek WWW
%{__autoconf}
%{__autoheader}
%{__automake}
-export LD_LIBRARY_PATH=%{_libdir}/xulrunner
%configure \
--with-ca-certificates=/etc/certs/ca-certificates.crt \
- --disable-schemas-install \
+ --enable-gtk-doc \
--disable-silent-rules \
- --disable-static
+ --disable-static \
+ %{__enable_disable systemd systemd} \
+ --with-html-dir=%{_gtkdocdir}
%{__make} -j1
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions
+install -d $RPM_BUILD_ROOT%{_datadir}/gnome-shell/{extensions,search-providers}
%{__make} install \
+ INSTALL="install -p" \
+ install_sh="install -p" \
DESTDIR=$RPM_BUILD_ROOT \
mozillalibdir=%{_browserpluginsdir}
-# TODO use rpath at link time instead of this hack
-mv $RPM_BUILD_ROOT%{_bindir}/gnome-shell{,.bin}
-cat > $RPM_BUILD_ROOT%{_bindir}/gnome-shell <<'EOF'
-#!/bin/sh
-LD_LIBRARY_PATH=%{_libdir}/xulrunner
-export LD_LIBRARY_PATH
-exec %{_bindir}/gnome-shell.bin "$@"
-EOF
-chmod a+rx $RPM_BUILD_ROOT%{_bindir}/gnome-shell
-
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/gnome-shell/libgnome-shell.la \
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/gnome-shell/*.la \
$RPM_BUILD_ROOT%{_browserpluginsdir}/*.la
+# evolution already ships this file
+%{__rm} $RPM_BUILD_ROOT%{_desktopdir}/evolution-calendar.desktop
%find_lang %{name}
rm -rf $RPM_BUILD_ROOT
%post
-%gconf_schema_install gnome-shell.schemas
%glib_compile_schemas
-%preun
-%gconf_schema_uninstall gnome-shell.schemas
-
%postun
if [ "$1" = "0" ]; then
%glib_compile_schemas
%files -f %{name}.lang
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/gnome-shell
-%attr(755,root,root) %{_bindir}/gnome-shell.bin
+%attr(755,root,root) %{_bindir}/gnome-shell-extension-prefs
%attr(755,root,root) %{_bindir}/gnome-shell-extension-tool
+%attr(755,root,root) %{_bindir}/gnome-shell-perf-tool
%attr(755,root,root) %{_libexecdir}/gnome-shell-calendar-server
%attr(755,root,root) %{_libexecdir}/gnome-shell-hotplug-sniffer
%attr(755,root,root) %{_libexecdir}/gnome-shell-perf-helper
-%{_sysconfdir}/gconf/schemas/gnome-shell.schemas
%dir %{_libdir}/gnome-shell
%attr(755,root,root) %{_libdir}/gnome-shell/libgnome-shell.so
+%attr(755,root,root) %{_libdir}/gnome-shell/libgnome-shell-js.so
%{_libdir}/gnome-shell/Gvc-1.0.typelib
%{_libdir}/gnome-shell/Shell-0.1.typelib
+%{_libdir}/gnome-shell/ShellJS-0.1.typelib
%{_libdir}/gnome-shell/St-1.0.typelib
+%{_datadir}/GConf/gsettings/gnome-shell-overrides.convert
+%{_datadir}/dbus-1/interfaces/org.gnome.ShellSearchProvider.xml
%{_datadir}/dbus-1/services/org.gnome.Shell.CalendarServer.service
%{_datadir}/dbus-1/services/org.gnome.Shell.HotplugSniffer.service
%{_datadir}/glib-2.0/schemas/org.gnome.shell.gschema.xml
%{_datadir}/gnome-shell
%{_desktopdir}/gnome-shell.desktop
+%{_desktopdir}/gnome-shell-extension-prefs.desktop
%{_mandir}/man1/gnome-shell.1*
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/shell
+%{_gtkdocdir}/st
+
%files -n browser-plugin-%{name}
%defattr(644,root,root,755)
%attr(755,root,root) %{_browserpluginsdir}/libgnome-shell-browser-plugin.so