c7a4179
Name:           gnome-shell
b6bbc7f
Version:        2.28.0
6324d81
Release:        4
c7a4179
Summary:        Window management and application launching for GNOME
c7a4179
c7a4179
Group:          User Interface/Desktops
c7a4179
License:        GPLv2+
c7a4179
URL:            http://live.gnome.org/GnomeShell
c7a4179
Source0:        http://ftp.gnome.org/pub/GNOME/sources/gnome-shell/2.27/%{name}-%{version}.tar.bz2
c7a4179
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
c7a4179
c7a4179
%define clutter_version 1.0.0
c571d67
%define gobject_introspection_version 0.6.5
b6bbc7f
%define mutter_version 2.28.0
c7a4179
c7a4179
BuildRequires:  clutter-devel >= %{clutter_version}
c7a4179
BuildRequires:  dbus-glib-devel
c7a4179
BuildRequires:  desktop-file-utils
c7a4179
BuildRequires:  gir-repository-devel
c7a4179
BuildRequires:  gjs-devel
c7a4179
BuildRequires:  glib2-devel
4113d1a
BuildRequires:  gnome-desktop-devel
c7a4179
BuildRequires:  gnome-menus-devel
dba2bb6
BuildRequires:  gobject-introspection >= %{gobject_introspection_version}
c7a4179
# for screencast recorder functionality
c7a4179
BuildRequires:  gstreamer-devel
c7a4179
BuildRequires:  gtk2-devel
1f19584
BuildRequires:  intltool
c7a4179
# used in unused BigThemeImage
c7a4179
BuildRequires:  librsvg2-devel
c7a4179
BuildRequires:  mutter-devel >= %{mutter_version}
c7a4179
ffb2154
# User interface to switch to GNOME Shell
ffb2154
Requires:       desktop-effects
c7a4179
# For %pre/%post usage of gconftool-2
c7a4179
Requires:       GConf2
ffb2154
# wrapper script uses to restart old GNOME session if run --replace
ffb2154
# from the command line
dba2bb6
Requires:       gobject-introspection >= %{gobject_introspection_version}
ffb2154
Requires:       gnome-python2-gconf
ffb2154
Requires:       pygobject2
c7a4179
# wrapper script uses to figure out available GLX capabilities
c7a4179
Requires:       glx-utils
c7a4179
# needed for loading SVG's via gdk-pixbuf
c7a4179
Requires:       librsvg2
c7a4179
Requires:       mutter >= %{mutter_version}
c7a4179
# These are needed to run gnome-shell nested Xephyr mode, but that's a
c7a4179
# developer-only thing and unlikely to be interesting for a normal user
c7a4179
#Requires:       xorg-x11-server-Xephyr
c7a4179
#Requires:       xorg-x11-xauth
c7a4179
c7a4179
%description
c7a4179
GNOME Shell provides core user interface functions for the GNOME 3 desktop,
c7a4179
like switching to windows and launching applications. GNOME Shell takes
c7a4179
advantage of the capabilities of modern graphics hardware and introduces
c7a4179
innovative user interface concepts to provide a visually attractive and
c7a4179
easy to use experience.
c7a4179
c7a4179
%prep
c7a4179
%setup -q
c7a4179
c7a4179
%build
c7a4179
%configure
c7a4179
c7a4179
# Remove rpath as per https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
c7a4179
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
c7a4179
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
c7a4179
c7a4179
# http://bugzilla.gnome.org/show_bug.cgi?id=591474
c7a4179
# make %{?_smp_mflags}
c7a4179
make
c7a4179
c7a4179
%install
c7a4179
rm -rf %{buildroot}
c7a4179
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
c7a4179
make install DESTDIR=$RPM_BUILD_ROOT
c7a4179
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
c7a4179
c7a4179
rm -rf %{buildroot}/%{_libdir}/mutter/plugins/*.la
c7a4179
c7a4179
desktop-file-validate %{buildroot}%{_datadir}/applications/gnome-shell.desktop
c7a4179
1f19584
%find_lang %{name}
1f19584
c7a4179
%clean
c7a4179
rm -rf %{buildroot}
c7a4179
1f19584
%files -f %{name}.lang
c7a4179
%defattr(-,root,root,-)
c7a4179
%doc COPYING README
c7a4179
%{_bindir}/gnome-shell
c7a4179
%{_datadir}/applications/gnome-shell.desktop
c7a4179
%{_datadir}/gnome-shell/
c7a4179
%{_libdir}/gnome-shell/
c7a4179
%{_libdir}/mutter/plugins/libgnome-shell.so
c7a4179
%{_sysconfdir}/gconf/schemas/gnome-shell.schemas
c7a4179
c7a4179
%pre
c7a4179
if [ "$1" -gt 1 ]; then
c7a4179
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
c7a4179
  gconftool-2 --makefile-uninstall-rule \
c7a4179
    %{_sysconfdir}/gconf/schemas/gnome-shell.schemas \
c7a4179
    > /dev/null || :
c7a4179
fi
c7a4179
c7a4179
%preun
13b0e62
if [ "$1" -eq 0 ]; then
c7a4179
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
c7a4179
  gconftool-2 --makefile-uninstall-rule \
c7a4179
    %{_sysconfdir}/gconf/schemas/gnome-shell.schemas \
c7a4179
    > /dev/null || :
c7a4179
fi
c7a4179
c7a4179
%post
c7a4179
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
c7a4179
gconftool-2 --makefile-install-rule \
c7a4179
    %{_sysconfdir}/gconf/schemas/gnome-shell.schemas \
c7a4179
  > /dev/null || :
c7a4179
c7a4179
%changelog
b6bbc7f
* Wed Oct  7 2009 Owen Taylor <otaylor@redhat.com> - 2.28.0-2
b6bbc7f
- Update to 2.28.0
b6bbc7f
3d253f8
* Tue Sep 15 2009 Owen Taylor <otaylor@redhat.com> - 2.27.3-1
3d253f8
- Update to 2.27.3
3d253f8
dba2bb6
* Fri Sep  4 2009 Owen Taylor <otaylor@redhat.com> - 2.27.2-2
dba2bb6
- Test for gobject-introspection version should be >= not >
dba2bb6
c571d67
* Fri Sep  4 2009 Owen Taylor <otaylor@redhat.com> - 2.27.2-1
c571d67
- Update to 2.27.2
c571d67
- Add an explicit dep on gobject-introspection 0.6.5 which is required 
c571d67
  for the new version
c571d67
13b0e62
* Sat Aug 29 2009 Owen Taylor <otaylor@redhat.com> - 2.27.1-4
13b0e62
- Fix GConf %%preun script to properly be for package removal
13b0e62
4113d1a
* Fri Aug 28 2009 Owen Taylor <otaylor@redhat.com> - 2.27.1-3
4113d1a
- Replace libgnomeui with gnome-desktop in BuildRequires
4113d1a
1f19584
* Fri Aug 28 2009 Owen Taylor <otaylor@redhat.com> - 2.27.1-2
1f19584
- BuildRequire intltool
1f19584
- Add find_lang
1f19584
ffb2154
* Fri Aug 28 2009 Owen Taylor <otaylor@redhat.com> - 2.27.1-1
ffb2154
- Update to 2.27.1
ffb2154
- Update Requires, add desktop-effects
ffb2154
c7a4179
* Wed Aug 12 2009 Owen Taylor <otaylor@redhat.com> - 2.27.0-4
c7a4179
- Add an explicit dependency on GConf2 for pre/post
c7a4179
c7a4179
* Tue Aug 11 2009 Owen Taylor <otaylor@redhat.com> - 2.27.0-3
c7a4179
- Add missing BuildRequires on gir-repository-devel
c7a4179
c7a4179
* Tue Aug 11 2009 Owen Taylor <otaylor@redhat.com> - 2.27.0-2
c7a4179
- Temporarily use a non-parallel-build until gnome-shell is fixed
c7a4179
c7a4179
* Mon Aug 10 2009 Owen Taylor <otaylor@redhat.com> - 2.27.0-1
c7a4179
- Initial version