+#
+# Conditional build:
+%bcond_with gnome2 # build with support for GNOME2 wm-properties
+#
Summary: Window and compositing manager based on Clutter
Name: mutter
Version: 3.0.2.1
-Release: 1
+Release: 2
License: GPL v2+
Group: X11/Window Managers
Source0: http://ftp.gnome.org/pub/GNOME/sources/mutter/3.0/%{name}-%{version}.tar.bz2
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%{!?with_gnome2:%{__rm} %{_datadir}/gnome/wm-properties/mutter-wm.desktop}
+
%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
%find_lang %{name}
# intentionally installed in package-private dir
%{_libdir}/mutter/Meta-*.typelib
%{_desktopdir}/mutter.desktop
-%{_datadir}/gnome/wm-properties/mutter-wm.desktop
+%{?with_gnome2:%{_datadir}/gnome/wm-properties/mutter-wm.desktop}
%{_sysconfdir}/gconf/schemas/mutter.schemas
%{_datadir}/mutter
%{_mandir}/man1/mutter.1*