c7a4179
Name:           gnome-shell
558b06f
Version:        2.29.1
47e1ef9
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
558b06f
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
871d2a2
Patch0: 0001-build-Link-against-lm.patch
871d2a2
444b886
%define clutter_version 1.2.2
558b06f
%define gobject_introspection_version 0.6.9
444b886
%define mutter_version 2.29.1
444b886
%define gjs_version 0.6
a305c93
c7a4179
BuildRequires:  clutter-devel >= %{clutter_version}
c7a4179
BuildRequires:  dbus-glib-devel
c7a4179
BuildRequires:  desktop-file-utils
c7a4179
BuildRequires:  gir-repository-devel
444b886
BuildRequires:  gjs-devel >= %{gjs_version}
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
9e2d8ee
# needed as it is now split from Clutter
9e2d8ee
Requires:       json-glib
c7a4179
Requires:       mutter >= %{mutter_version}
47e1ef9
Requires:       gjs >= %{gjs_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
871d2a2
BuildRequires: gnome-common
871d2a2
BuildRequires: autoconf
871d2a2
BuildRequires: automake
871d2a2
BuildRequires: libtool
871d2a2
BuildRequires: intltool
871d2a2
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
558b06f
%setup -q
871d2a2
%patch0 -p1
c7a4179
c7a4179
%build
871d2a2
./autogen.sh
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
8320d69
make V=1 %{?_smp_mflags}
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/
871d2a2
%{_mandir}/*
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
47e1ef9
* Sat Mar 27 2010 Colin Walters <walters@verbum.org> - 2.29.1-4
47e1ef9
- Add an explicit Requires: on gjs.  Should resolve bug #577460
47e1ef9
8320d69
* Fri Mar 26 2010 Colin Walters <walters@verbum.org> - 2.29.1-3
871d2a2
- Add manpage to files
8320d69
- Specify V=1 for build, readd smp_mflags since parallel is fixed upstream
8320d69
444b886
* Thu Mar 25 2010 Adam Miller <maxamillion@fedoraproject.org> - 2.29.1-2
444b886
- Bumped for new version of mutter and clutter
444b886
- Added version requirement to gjs-devel because of dependency of build
444b886
444b886
* Wed Mar 24 2010 Adam Miller <maxamillion@fedoraproject.org> - 2.29.1-1
558b06f
- Update to latest version 2.29.1
558b06f
9e2d8ee
* Sun Feb 21 2010 Bastien Nocera <bnocera@redhat.com> 2.28.1-0.2.20100128git
9e2d8ee
- Require json-glib
9e2d8ee
- Rebuild for new clutter with json split out
6cc60aa
- Fix deprecation in COGL
9e2d8ee
21bf4c0
* Thu Jan 28 2010 Adam Miller <maxamillion@fedoraproject.org> - 2.28.1-0.1.20100128git
21bf4c0
- New git snapshot
21bf4c0
- Fixed Version for alphatag use
e942bf3
32f3acf
* Fri Jan 15 2010 Adam Miller <maxamillion@fedoraproject.org> - 2.28.0.20101015git-1
32f3acf
- Added dependency on a git build of gobject-introspect to solve some breakage
32f3acf
- Also went ahead and made a new git tarball
32f3acf
3e2e794
* Tue Jan 12 2010 Adam Miller <maxamillion@fedoraproject.org> - 2.28.0.20100112git-1
3e2e794
- New git snapshot
3e2e794
dbf4b7e
* Tue Dec 07 2009 Adam Miller <maxamillion@fedoraproject.org> - 2.28.0.20091206git-5
dbf4b7e
- Added libtool, glib-gettext for the libtoolize dep of git snapshot
dbf4b7e
566d7f5
* Mon Dec 07 2009 Adam Miller <maxamillion@fedoraproject.org> - 2.28.0.20091206git-4
566d7f5
- Added gnome-common needed by autogen.sh in git snapshot build
566d7f5
a305c93
* Sun Dec 06 2009 Adam Miller <maxamillion@fedoraproject.org> - 2.28.0.20091206git-3
a305c93
- Added the autotools needed to build the git snapshot to the build requires
a305c93
8b3a9d3
* Sun Dec 06 2009 Adam Miller <maxamillion@fedoraproject.org> - 2.28.0.20091206git-2
8b3a9d3
- Fixed the setup naming issue with the git snapshot directory naming
8b3a9d3
2d9285c
* Sun Dec 06 2009 Adam Miller <maxamillion@fedoraproject.org> - 2.28.0.20091206git-1
2d9285c
- Update to git snapshot on 20091206
2d9285c
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