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



Name:           gnome-shell
Version:        3.0.1pre1
Release:        1
License:        GPLv2+
Summary:        GNOME Shell
Group:          System/GUI/GNOME
Url:            http://live.gnome.org/GnomeShell
Source:         %{name}-%{version}.tar.bz2
Patch2:         default-applications.patch
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
# needed for directory ownership
BuildRequires:  dbus-1
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-bluetooth-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(libmutter)
BuildRequires:  pkgconfig(libnm-glib) >= 0.8.995
BuildRequires:  pkgconfig(libpulse-mainloop-glib)
BuildRequires:  pkgconfig(libstartup-notification-1.0)
BuildRequires:  pkgconfig(mutter-plugins)
BuildRequires:  pkgconfig(polkit-agent-1)
BuildRequires:  pkgconfig(telepathy-glib)
BuildRequires:  pkgconfig(telepathy-logger-0.2)
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
%gconf_schemas_prereq
%glib2_gsettings_schema_requires

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

%lang_package
%prep
%setup -q
translation-update-upstream
%if 0%{?suse_version} >= 1140
%patch2 -p1
%endif

%build
%configure \
        --disable-static \
        --libexecdir=%{_libexecdir}/%{name} \
        --disable-schemas-install \
        --enable-compile-warnings=no
%__make %{?_smp_mflags} V=1

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
# This is the directory where extensions get installed
install -d %{buildroot}%{_datadir}/gnome-shell/extensions
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file %{name}
%find_gconf_schemas

%clean
rm -rf %{buildroot}

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%post
%glib2_gsettings_schema_post
%desktop_database_post

%postun
%glib2_gsettings_schema_postun
%desktop_database_postun

%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc COPYING
%{_bindir}/gnome-shell
%{_bindir}/gnome-shell-extension-tool
%{_libexecdir}/gnome-shell/
%if "%{_libdir}" != "%{_libexecdir}"
%{_libdir}/gnome-shell/
%endif
%{_datadir}/applications/gnome-shell.desktop
%{_datadir}/dbus-1/services/org.gnome.Shell.CalendarServer.service
%{_datadir}/glib-2.0/schemas/org.gnome.shell.gschema.xml
%{_datadir}/gnome-shell/
%dir %{_datadir}/gnome-shell/extensions
%doc %{_mandir}/man?/gnome-shell.*

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by