6bd12ec
Name:          mutter
4a3fefe
Version:       2.31.5
785f2b3
Release:       4%{?dist}
6bd12ec
Summary:       Window and compositing manager based on Clutter
6bd12ec
6bd12ec
Group:         User Interface/Desktops
6bd12ec
License:       GPLv2+
aca0591
#VCS:	       git:git://git.gnome.org/mutter
690718b
Source0:       ftp://ftp.gnome.org/pub/gnome/sources/%{name}/2.31/%{name}-%{version}.tar.bz2
6bd12ec
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6632f8a
6632f8a
BuildRequires: clutter-devel
6632f8a
BuildRequires: pango-devel
6632f8a
BuildRequires: startup-notification-devel
8b67a23
BuildRequires: gtk3-devel
6632f8a
BuildRequires: pkgconfig
6632f8a
BuildRequires: GConf2-devel
6632f8a
BuildRequires: gobject-introspection-devel
6632f8a
BuildRequires: libSM-devel
6632f8a
BuildRequires: libX11-devel
6632f8a
BuildRequires: libXdamage-devel
6632f8a
BuildRequires: libXext-devel
6632f8a
BuildRequires: libXrandr-devel
6632f8a
BuildRequires: libXrender-devel
6632f8a
BuildRequires: libXcursor-devel
6632f8a
BuildRequires: libXcomposite-devel
6632f8a
BuildRequires: zenity
6632f8a
BuildRequires: gnome-doc-utils
6632f8a
BuildRequires: desktop-file-utils
aca0591
# Bootstrap requirements
aca0591
BuildRequires: gtk-doc gnome-common intltool
6bd12ec
6632f8a
Requires: control-center-filesystem
6632f8a
Requires: startup-notification
6632f8a
Requires: GConf2
6632f8a
Requires: dbus-x11
6632f8a
Requires: zenity
6632f8a
6632f8a
%description
6632f8a
Mutter is a window and compositing manager that displays and manages
6632f8a
your desktop via OpenGL. Mutter combines a sophisticated display engine
6632f8a
using the Clutter toolkit with solid window-management logic inherited
6632f8a
from the Metacity window manager.
6632f8a
6632f8a
While Mutter can be used stand-alone, it is primarily intended to be
6632f8a
used as the display core of a larger system such as gnome-shell or
6632f8a
Moblin. For this reason, Mutter is very extensible via plugins, which
6632f8a
are used both to add fancy visual effects and to rework the window
6632f8a
management behaviors to meet the needs of the environment.
6632f8a
6632f8a
%package devel
6632f8a
Summary: Development package for %{name}
6632f8a
Group: Development/Libraries
6632f8a
Requires: %{name} = %{version}-%{release}
6632f8a
Requires: pkgconfig
6632f8a
Requires: gtk-doc
6632f8a
6632f8a
%description devel
6632f8a
Header files and libraries for developing Mutter plugins. Also includes
6632f8a
utilities for testing Metacity/Mutter themes.
6632f8a
6632f8a
%prep
6632f8a
%setup -q
6bd12ec
6632f8a
%build
aca0591
(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi;
8b67a23
 %configure --disable-static --with-gtk=3.0)
6632f8a
6632f8a
SHOULD_HAVE_DEFINED="HAVE_SM HAVE_XINERAMA HAVE_XFREE_XINERAMA HAVE_SHAPE HAVE_RANDR HAVE_STARTUP_NOTIFICATION HAVE_COMPOSITE_EXTENSION"
6632f8a
6632f8a
for I in $SHOULD_HAVE_DEFINED; do
6632f8a
  if ! grep -q "define $I" config.h; then
6632f8a
    echo "$I was not defined in config.h"
6632f8a
    grep "$I" config.h
6632f8a
    exit 1
6632f8a
  else
6632f8a
    echo "$I was defined as it should have been"
6632f8a
    grep "$I" config.h
6632f8a
  fi
6632f8a
done
6632f8a
6632f8a
make %{?_smp_mflags} V=1
6632f8a
6632f8a
%install
6632f8a
rm -rf %{buildroot}
6632f8a
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
6632f8a
make install DESTDIR=$RPM_BUILD_ROOT
6632f8a
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
6632f8a
6632f8a
#Remove libtool archives.
6632f8a
rm -rf %{buildroot}/%{_libdir}/*.la
6632f8a
6632f8a
%find_lang %{name}
6632f8a
6632f8a
# Mutter contains a .desktop file so we just need to validate it
6632f8a
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
6632f8a
6632f8a
%clean
6632f8a
rm -rf %{buildroot}
6632f8a
6632f8a
%pre 
6632f8a
if [ "$1" -gt 1 ]; then
6632f8a
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
6632f8a
  gconftool-2 --makefile-uninstall-rule \
6632f8a
    %{_sysconfdir}/gconf/schemas/mutter.schemas \
6632f8a
    > /dev/null || :
6632f8a
fi
6632f8a
6632f8a
%preun 
a2fe35c
if [ "$1" -eq 0 ]; then
6632f8a
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
6632f8a
  gconftool-2 --makefile-uninstall-rule \
6632f8a
    %{_sysconfdir}/gconf/schemas/mutter.schemas \
6632f8a
    > /dev/null || :
6632f8a
fi
6632f8a
6632f8a
%post 
6632f8a
/sbin/ldconfig
6632f8a
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
6632f8a
gconftool-2 --makefile-install-rule \
6632f8a
    %{_sysconfdir}/gconf/schemas/mutter.schemas \
6632f8a
  > /dev/null || :
6632f8a
6632f8a
%postun -p /sbin/ldconfig
6632f8a
6632f8a
%files -f %{name}.lang
6632f8a
%defattr(-,root,root,-)
6632f8a
%doc README AUTHORS COPYING NEWS HACKING doc/theme-format.txt
6632f8a
%doc %{_mandir}/man1/mutter.1.gz
6632f8a
%doc %{_mandir}/man1/mutter-message.1.gz
6632f8a
%{_bindir}/mutter
6632f8a
%{_bindir}/mutter-message
6632f8a
%{_datadir}/applications/*.desktop
6632f8a
%{_datadir}/gnome/wm-properties/mutter-wm.desktop
6632f8a
%{_sysconfdir}/gconf/schemas/mutter.schemas
6632f8a
%{_datadir}/mutter
6632f8a
%{_libdir}/lib*.so.*
6632f8a
%{_libdir}/mutter/
6632f8a
6632f8a
%files devel
6632f8a
%defattr(-,root,root,-)
6632f8a
%{_bindir}/mutter-theme-viewer
6632f8a
%{_bindir}/mutter-window-demo
6632f8a
%{_includedir}/*
6632f8a
%{_libdir}/lib*.so
6632f8a
%{_libdir}/pkgconfig/*
6632f8a
%doc %{_mandir}/man1/mutter-theme-viewer.1.gz
6632f8a
%doc %{_mandir}/man1/mutter-window-demo.1.gz
6632f8a
6632f8a
%changelog
785f2b3
* Wed Sep 22 2010 Matthias Clasen <mclasen@redhat.com> - 2.31.5-4
785f2b3
- Rebuild against newer gobject-introspection
785f2b3
3004fa6
* Wed Jul 14 2010 Colin Walters <walters@verbum.org> - 2.31.5-3
3004fa6
- Rebuild for new gobject-introspection
3004fa6
8b67a23
* Tue Jul 13 2010 Adel Gadllah <adel.gadllah@gmail.com> - 2.31.5-2
8b67a23
- Build against gtk3
8b67a23
4a3fefe
* Mon Jul 12 2010 Colin Walters <walters@pocket> - 2.31.5-1
4a3fefe
- New upstream version
4a3fefe
3017fe3
* Mon Jul 12 2010 Colin Walters <walters@verbum.org> - 2.31.2-5
3017fe3
- Rebuild against new gobject-introspection
3017fe3
aca0591
* Tue Jul  6 2010 Colin Walters <walters@verbum.org> - 2.31.2-4
aca0591
- Changes to support snapshot builds
aca0591
7371864
* Fri Jun 25 2010 Colin Walters <walters@megatron> - 2.31.2-3
7371864
- drop gir-repository-devel dep
7371864
b23c316
* Wed May 26 2010 Adam Miller <maxamillion@fedoraproject.org> - 2.31.2-2
b23c316
- removed "--with-clutter" as configure is claiming it to be an unknown option
b23c316
690718b
* Wed May 26 2010 Adam Miller <maxamillion@fedoraproject.org> - 2.31.2-1
690718b
- New upstream 2.31.2 release
690718b
2d24d51
* Thu Mar 25 2010 Peter Robinson <pbrobinson@gmail.com> 2.29.1-1
2d24d51
- New upstream 2.29.1 release
2d24d51
dac4a5f
* Wed Mar 17 2010 Peter Robinson <pbrobinson@gmail.com> 2.29.0-1
dac4a5f
- New upstream 2.29.0 release
dac4a5f
6dde2f1
* Tue Feb 16 2010 Adam Jackson <ajax@redhat.com> 2.28.1-0.2
6dde2f1
- mutter-2.28.1-add-needed.patch: Fix FTBFS from --no-add-needed
6dde2f1
6bd12ec
* Thu Feb  4 2010 Peter Robinson <pbrobinson@gmail.com> 2.28.1-0.1
6bd12ec
- Move to git snapshot
6bd12ec
627c02c
* Wed Oct  7 2009 Owen Taylor <otaylor@redhat.com> - 2.28.0-1
627c02c
- Update to 2.28.0
627c02c
1ae228f
* Tue Sep 15 2009 Owen Taylor <otaylor@redhat.com> - 2.27.5-1
1ae228f
- Update to 2.27.5
1ae228f
8c5f68d
* Fri Sep  4 2009 Owen Taylor <otaylor@redhat.com> - 2.27.4-1
8c5f68d
- Remove workaround for #520209
8c5f68d
- Update to 2.27.4
8c5f68d
a2fe35c
* Sat Aug 29 2009 Owen Taylor <otaylor@redhat.com> - 2.27.3-3
a2fe35c
- Fix %%preun GConf script to properly be for package removal
a2fe35c
c349b07
* Fri Aug 28 2009 Owen Taylor <otaylor@redhat.com> - 2.27.3-2
c349b07
- Add a workaround for Red Hat bug #520209
c349b07
deaa3dd
* Fri Aug 28 2009 Owen Taylor <otaylor@redhat.com> - 2.27.3-1
deaa3dd
- Update to 2.27.3, remove mutter-metawindow.patch
deaa3dd
83dddcd
* Fri Aug 21 2009 Peter Robinson <pbrobinson@gmail.com> 2.27.2-2
83dddcd
- Add upstream patch needed by latest mutter-moblin
83dddcd
711ebb6
* Tue Aug 11 2009 Peter Robinson <pbrobinson@gmail.com> 2.27.2-1
711ebb6
- New upstream 2.27.2 release. Drop upstreamed patches.
711ebb6
8d70229
* Wed Jul 29 2009 Peter Robinson <pbrobinson@gmail.com> 2.27.1-5
8d70229
- Add upstream patches for clutter 1.0
8d70229
895e688
* Wed Jul 29 2009 Peter Robinson <pbrobinson@gmail.com> 2.27.1-4
895e688
- Add patch to fix mutter --replace
895e688
faf6374
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27.1-3
faf6374
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
faf6374
6632f8a
* Sat Jul 18 2009 Peter Robinson <pbrobinson@gmail.com> 2.27.1-2
6632f8a
- Updates from review request
6632f8a
6632f8a
* Fri Jul 17 2009 Peter Robinson <pbrobinson@gmail.com> 2.27.1-1
6632f8a
- Update to official 2.27.1 and review updates
6632f8a
6632f8a
* Thu Jun 18 2009 Peter Robinson <pbrobinson@gmail.com> 2.27.0-0.2
6632f8a
- Updates from initial reviews
6632f8a
6632f8a
* Thu Jun 18 2009 Peter Robinson <pbrobinson@gmail.com> 2.27.0-0.1
6632f8a
- Initial packaging