2009-08-01 13:11:59 +02:00
#
2011-01-15 03:01:20 +01:00
# spec file for package mutter
2009-08-01 13:11:59 +02:00
#
2014-01-18 15:22:29 +01:00
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
2009-08-01 13:11:59 +02:00
#
# 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/
#
2012-02-08 20:55:25 +01:00
2009-08-01 13:11:59 +02:00
Name : mutter
2014-11-14 00:31:28 +01:00
Version : 3.14.2
2012-01-18 18:02:17 +01:00
Release : 0
Summary : Window and compositing manager based on Clutter
License : GPL-2.0+
Group : System/GUI/GNOME
Url : http://www.gnome.org
2014-09-25 09:44:51 +02:00
Source : http://download.gnome.org/sources/mutter/3.14/%{name} -%{version} .tar.xz
2014-12-07 21:15:55 +01:00
# PATCH-FIX-UPSTREAM mutter-black-screen-during-login.patch bgo#740377 badshah400@gmail.com --Disable ugly black screen during login; patch taken from upstream git
Patch0 : mutter-black-screen-during-login.patch
# PATCH-FIX-UPSTREAM mutter-window-actor-unredirection-when-destroyed.patch bgo#740133 badshah400@gmail.com -- window-actor: Do not request unredirection when destroyed; patch taken from upstream
Patch1 : mutter-window-actor-unredirection-when-destroyed.patch
# PATCH-FIX-UPSTREAM mutter-empty-input-shapes-windows.patch badshah400@gmail.com -- window-x11: Fix windows that set empty input shapes; patch taken from upstream git
Patch2 : mutter-empty-input-shapes-windows.patch
# PATCH-FIX-UPSTREAM mutter-left-over-queued-frames.patch bgo#738686 badshah400@gmail.com -- Fix problems resulting in left-over queued frames; patch taken from upstream git
Patch3 : mutter-left-over-queued-frames.patch
# PATCH-FIX-UPSTREAM mutter-dont-overwrite-send_frame_messages_timer.patch bgo#738686 badshah400@gmail.com -- MetaWindowActor: don't overwrite send_frame_messages_timer; patch taken from upstream git
Patch4 : mutter-dont-overwrite-send_frame_messages_timer.patch
2009-08-01 13:11:59 +02:00
BuildRequires : fdupes
2012-02-25 15:39:19 +01:00
BuildRequires : gobject-introspection-devel >= 0.9.5
2009-08-01 13:11:59 +02:00
BuildRequires : intltool
2012-02-20 23:09:45 +01:00
BuildRequires : libSM-devel
BuildRequires : libX11-devel
BuildRequires : libXinerama-devel
2011-02-16 08:53:03 +01:00
BuildRequires : translation-update-upstream
2009-08-01 13:11:59 +02:00
BuildRequires : update-desktop-files
BuildRequires : zenity
2012-02-25 15:39:19 +01:00
BuildRequires : pkgconfig(cairo) >= 1.10.0
2014-08-23 13:52:05 +02:00
BuildRequires : pkgconfig(clutter-1.0) >= 1.19.7
BuildRequires : pkgconfig(clutter-egl-1.0)
BuildRequires : pkgconfig(clutter-wayland-1.0)
BuildRequires : pkgconfig(clutter-wayland-compositor-1.0)
2014-04-03 22:47:47 +02:00
BuildRequires : pkgconfig(cogl-1.0) >= 1.17.1
2014-10-15 09:25:22 +02:00
BuildRequires : pkgconfig(gbm) >= 10.3
2014-08-23 13:52:05 +02:00
BuildRequires : pkgconfig(gio-unix-2.0) >= 2.25.10
2013-08-22 11:46:56 +02:00
BuildRequires : pkgconfig(gnome-desktop-3.0)
2013-03-13 23:45:59 +01:00
BuildRequires : pkgconfig(gsettings-desktop-schemas) >= 3.7.3
2013-08-22 11:46:56 +02:00
BuildRequires : pkgconfig(gtk+-3.0) >= 3.9.11
2011-04-22 11:28:00 +02:00
BuildRequires : pkgconfig(libcanberra-gtk3)
2014-08-23 13:52:05 +02:00
BuildRequires : pkgconfig(libdrm)
BuildRequires : pkgconfig(libinput)
2013-03-13 23:45:59 +01:00
BuildRequires : pkgconfig(libstartup-notification-1.0)
2014-08-23 13:52:05 +02:00
BuildRequires : pkgconfig(libsystemd)
2012-02-25 15:39:19 +01:00
BuildRequires : pkgconfig(pango) >= 1.2.0
2014-04-03 22:47:47 +02:00
BuildRequires : pkgconfig(upower-glib) >= 0.99.0
2014-08-23 13:52:05 +02:00
BuildRequires : pkgconfig(wayland-server) >= 1.4.93
2014-09-11 23:16:05 +02:00
BuildRequires : pkgconfig(x11-xcb)
2014-08-23 13:52:05 +02:00
BuildRequires : pkgconfig(xcb-randr)
2012-02-20 23:09:45 +01:00
BuildRequires : pkgconfig(xcomposite) >= 0.2
BuildRequires : pkgconfig(xcursor)
BuildRequires : pkgconfig(xdamage)
2014-08-23 13:52:05 +02:00
BuildRequires : pkgconfig(xext)
2012-02-20 23:09:45 +01:00
BuildRequires : pkgconfig(xfixes)
2013-03-13 23:45:59 +01:00
BuildRequires : pkgconfig(xi)
2014-08-23 13:52:05 +02:00
BuildRequires : pkgconfig(xkbcommon) >= 0.4.3
BuildRequires : pkgconfig(xkbcommon-x11)
BuildRequires : pkgconfig(xkbfile)
BuildRequires : pkgconfig(xkeyboard-config)
2009-08-01 13:11:59 +02:00
Requires : zenity
2011-02-13 23:30:22 +01:00
Recommends: %{name} -lang
2009-08-01 13:11:59 +02:00
Provides : windowmanager
2013-08-22 11:46:56 +02:00
# mutter 3.9.90 dropped old, unused tools. Likely, nobody has them installed anyway
Obsoletes : %{name} -tools < %{version}
2012-01-18 18:02:17 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2009-08-01 13:11:59 +02:00
%description
Mutter is a window and compositing manager based on Clutter, forked
from Metacity.
2012-09-07 19:06:26 +02:00
%package -n libmutter0
Summary : Window and compositing manager based on Clutter -- Library
Group : System/Libraries
2012-09-11 18:01:08 +02:00
# we need the gsettings schema; hopefully, they'll stay backwards compatible
# (since we can't require = version, to not break SLPP)
Requires : %{name} -data >= %{version}
2012-09-07 19:06:26 +02:00
%description -n libmutter0
Mutter is a window and compositing manager based on Clutter, forked
from Metacity.
This package contains a library for shared features.
2012-09-11 18:01:08 +02:00
%package -n typelib-1_0-Meta-3_0
Summary : Window and compositing manager based on Clutter -- Introspection bindings
Group : System/Libraries
%description -n typelib-1_0-Meta-3_0
Mutter is a window and compositing manager based on Clutter, forked
from Metacity.
This package provides the GObject Introspection bindings for libmutter.
%package data
Summary : Window and compositing manager based on Clutter -- Data Files
Group : System/GUI/GNOME
Requires : %{name} = %{version}
%glib2_gsettings_schema_requires
%description data
Mutter is a window and compositing manager based on Clutter, forked
from Metacity.
This package contains data files needed by mutter and its library.
2009-08-01 13:11:59 +02:00
%package devel
Summary : Include Files and Libraries mandatory for Development
Group : Development/Libraries/GNOME
2012-09-07 19:06:26 +02:00
Requires : libmutter0 = %{version}
2012-09-11 18:01:08 +02:00
Requires : typelib-1_0-Meta-3_0 = %{version}
2009-08-01 13:11:59 +02:00
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
2014-04-16 10:51:40 +02:00
%package devel-doc
Summary : API Documentation of mutter
Group : Development/Libraries/GNOME
%description devel-doc
This package contains all necessary include files and libraries needed
to develop applications that require these.
2009-08-01 13:11:59 +02:00
%lang_package
%prep
%setup -q
2014-12-07 21:15:55 +01:00
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
2011-02-16 08:53:03 +01:00
translation-update-upstream
2009-08-01 13:11:59 +02:00
%build
%configure \
2013-03-13 23:45:59 +01:00
--disable-static \
2011-12-12 12:48:43 +01:00
--enable-compile-warnings=maximum
2013-03-13 23:45:59 +01:00
make %{?_smp_mflags} V=1
2009-08-01 13:11:59 +02:00
%install
2013-03-13 23:45:59 +01:00
%make_install
find %{buildroot} %{_libdir} -type f -name '*.la' -delete -print
2009-08-01 13:11:59 +02:00
%suse_update_desktop_file %{name}
2011-02-13 23:30:22 +01:00
%find_lang %{name} %{?no_lang_C}
2009-08-01 13:11:59 +02:00
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
2011-02-13 23:30:22 +01:00
%post
%desktop_database_post
2009-08-01 13:11:59 +02:00
2011-02-13 23:30:22 +01:00
%postun
%desktop_database_postun
2009-08-01 13:11:59 +02:00
2013-03-13 23:45:59 +01:00
%post -n libmutter0 -p /sbin/ldconfig
2012-09-07 19:06:26 +02:00
%postun -n libmutter0 -p /sbin/ldconfig
2013-03-13 23:45:59 +01:00
%post data
%glib2_gsettings_schema_post
2012-09-11 18:01:08 +02:00
%postun data
%glib2_gsettings_schema_postun
2011-11-28 09:20:11 +01:00
%files
2009-08-01 13:11:59 +02:00
%defattr (-, root, root)
2014-08-23 13:52:05 +02:00
%doc COPYING NEWS
2012-02-08 20:55:25 +01:00
%{_bindir} /mutter
2012-09-11 18:01:08 +02:00
%{_libdir} /mutter/plugins/default.so
2014-08-23 13:52:05 +02:00
%{_libexecdir} /mutter-restart-helper
2009-08-01 13:11:59 +02:00
%{_datadir} /applications/mutter.desktop
2014-08-23 13:52:05 +02:00
%{_datadir} /applications/mutter-wayland.desktop
2012-09-11 18:01:08 +02:00
%doc %{_mandir} /man1/mutter.1%{?ext_man}
%files -n libmutter0
%defattr (-,root,root)
%{_libdir} /libmutter.so.*
%dir %{_libdir} /mutter/
# users of libmutter need this directory
%dir %{_libdir} /mutter/plugins/
%files -n typelib-1_0-Meta-3_0
%defattr (-,root,root)
%{_libdir} /mutter/Meta-3.0.typelib
%files data
%defattr (-,root,root)
2012-01-05 10:32:28 +01:00
# Do not depend on g-c-c just for a directory
%dir %{_datadir} /gnome-control-center
%dir %{_datadir} /gnome-control-center/keybindings
%{_datadir} /gnome-control-center/keybindings/50-mutter-windows.xml
2013-03-13 23:45:59 +01:00
%{_datadir} /gnome-control-center/keybindings/50-mutter-navigation.xml
%{_datadir} /gnome-control-center/keybindings/50-mutter-system.xml
2011-11-28 09:20:11 +01:00
%{_datadir} /GConf/gsettings/mutter-schemas.convert
%{_datadir} /glib-2.0/schemas/org.gnome.mutter.gschema.xml
2014-08-23 13:52:05 +02:00
%{_datadir} /glib-2.0/schemas/org.gnome.mutter.wayland.gschema.xml
2009-08-01 13:11:59 +02:00
%files lang -f %{name}.lang
%files devel
2014-08-23 13:52:05 +02:00
%defattr (-,root,root)
2011-01-07 23:52:33 +01:00
%{_includedir} /mutter/
2012-09-11 18:01:08 +02:00
%{_libdir} /libmutter.so
2011-07-02 12:31:04 +02:00
%{_libdir} /mutter/Meta-3.0.gir
2012-09-11 18:01:08 +02:00
%{_libdir} /pkgconfig/libmutter.pc
2009-08-01 13:11:59 +02:00
2014-04-16 10:51:40 +02:00
%files devel-doc
%defattr (-, root, root)
%doc %{_datadir} /gtk-doc/html/meta/
2009-08-01 13:11:59 +02:00
%changelog