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
#
2018-01-07 23:17:01 +01:00
# Copyright (c) 2018 SUSE LINUX 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
2018-03-10 13:40:53 +01:00
%define mutter_major 2
%define mutter_minor 0
2009-08-01 13:11:59 +02:00
Name : mutter
2018-05-29 14:20:49 +02:00
Version : 3.28.2+20180526.abc7ad8e9
2012-01-18 18:02:17 +01:00
Release : 0
Summary : Window and compositing manager based on Clutter
2018-02-28 11:32:43 +01:00
License : GPL-2.0-or-later
2012-01-18 18:02:17 +01:00
Group : System/GUI/GNOME
2018-03-09 11:11:23 +01:00
URL : https://www.gnome.org
2018-04-19 17:10:51 +02:00
#Source0: http://download.gnome.org/sources/mutter/3.28/%%{name}-%%{version}.tar.xz
Source : %{name} -%{version} .tar.xz
2016-11-03 19:51:29 +01:00
# PATCH-FIX-UPSTREAM mutter-fix-startup.patch bgo#768531 zaitor@opensuse.org -- Fix slow startup notification on wayland
2017-08-31 09:45:10 +02:00
Patch0 : mutter-fix-startup.patch
2017-07-13 09:08:52 +02:00
# PATCH-FEATURE-UPSTREAM mutter-iconcache-Support-RGB16_565-format-for-16-bit-color-.patch FATE#323412 bgo#781704 bsc#1024748 vliaskovitis@suse.com -- iconcache: Support RGB16_565 format for 16-bit sessions
2017-08-31 09:45:10 +02:00
Patch1 : mutter-iconcache-Support-RGB16_565-format-for-16-bit-color-.patch
2018-03-24 22:00:31 +01:00
# PATCH-FIX-OPENSUSE mutter-xwayland-create-xauthority.patch bsc#1084737 hpj@suse.com -- Create and pass an Xauthority file to Xwayland and session
Patch2 : mutter-xwayland-create-xauthority.patch
2017-11-06 11:52:48 +01:00
# SLE-only patches start at 1000
2017-08-31 09:45:10 +02:00
# PATCH-FEATURE-SLE mutter-SLE-bell.patch FATE#316042 bnc#889218 idonmez@suse.com -- make audible bell work out of the box.
Patch1000 : mutter-SLE-bell.patch
# PATCH-FIX-SLE mutter-SLE-relax-some-constraints-on-CSD-windows.patch bnc#883491 cxiong@suse.com -- Relax some constraints on window positioning for CSD windows s.t. they can be placed at the very top of the monitor.
Patch1001 : mutter-SLE-relax-some-constraints-on-CSD-windows.patch
# PATCH-FIX-UPSTREAM mutter-SLE-bsc984738-grab-display.patch bsc#984738 bgo#769387 hpj@suse.com -- Revert a upstream commit to avoid X11 race condition that results in wrong dialog sizes.
Patch1002 : mutter-SLE-bsc984738-grab-display.patch
2018-03-09 11:11:23 +01:00
BuildRequires : Mesa-libGLESv3-devel
2009-08-01 13:11:59 +02:00
BuildRequires : fdupes
2018-01-07 23:17:01 +01:00
BuildRequires : intltool
2018-04-19 17:10:51 +02:00
BuildRequires : libtool
2017-08-31 09:45:10 +02:00
BuildRequires : pkgconfig
2018-03-22 10:38:57 +01:00
BuildRequires : translation-update-upstream
2009-08-01 13:11:59 +02:00
BuildRequires : zenity
2012-02-25 15:39:19 +01:00
BuildRequires : pkgconfig(cairo) >= 1.10.0
2017-02-22 21:41:59 +01:00
BuildRequires : pkgconfig(egl)
2018-03-09 11:11:23 +01:00
BuildRequires : pkgconfig(gbm) >= 17.1
2017-08-31 09:45:10 +02:00
BuildRequires : pkgconfig(gio-unix-2.0) >= 2.53.2
2017-02-22 21:41:59 +01:00
BuildRequires : pkgconfig(glesv2)
2013-08-22 11:46:56 +02:00
BuildRequires : pkgconfig(gnome-desktop-3.0)
2018-01-07 23:17:01 +01:00
BuildRequires : pkgconfig(gobject-introspection-1.0) >= 0.9.5
Accepting request 360459 from GNOME:Next
- Update to version 3.19.4:
+ Fix updating stacking order when setting transient_for
(bgo#755606).
+ Support screen rotation when supported by the driver
(bgo#745079).
+ Protect against broken WM_CLASS property implementations
(bgo#759658).
+ Handle wl_pointer v5 events on wayland (bgo#760637).
+ Implement DND actions on wayland (bgo#760805).
+ Misc. bug fixes: bgo#754711, bgo#756789, bgo#759297,
bgo#758613, bgo#760330, bgo#760476, bgo#759222, bgo#760670.
+ Updated translations.
- Update to version 3.19.3:
+ Correct refresh rate units on KMS/Wayland (bgo#758653).
+ Fix crash when initial cursor position is not on a monitor
(bgo#756698).
+ Fix crash when more CRTs are enabled than outputs connected
(bgo#751638).
+ Fix touch pointer emulation on wayland (bgo#756754).
+ Allow minimizing windows that don't advertise supporting it
(bgo#758186).
+ Force 2-finger scroll by default if available (bgo#759304).
+ Fix crash during XWayland initialization (bgo#751845).
+ Ensure to send a ConfigureNotify to just mapped windows
(bgo#759492).
+ Misc. bug fixes and cleanups: bgo#758239, bgo#758633,
bgo#755503, bgo#759374.
+ Updated translations.
- Add pkgconfig(wayland-protocols) BuildRequires: new dependency.
OBS-URL: https://build.opensuse.org/request/show/360459
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/mutter?expand=0&rev=189
2016-02-19 16:05:19 +01:00
BuildRequires : pkgconfig(gsettings-desktop-schemas) >= 3.19.3
BuildRequires : pkgconfig(gtk+-3.0) >= 3.19.7
2018-01-07 23:17:01 +01:00
BuildRequires : pkgconfig(gudev-1.0) >= 232
2016-09-08 23:24:20 +02:00
BuildRequires : pkgconfig(json-glib-1.0)
2011-04-22 11:28:00 +02:00
BuildRequires : pkgconfig(libcanberra-gtk3)
2018-03-09 11:11:23 +01:00
BuildRequires : pkgconfig(libdrm) >= 2.4.83
2017-08-31 09:45:10 +02:00
BuildRequires : pkgconfig(libinput)
2013-03-13 23:45:59 +01:00
BuildRequires : pkgconfig(libstartup-notification-1.0)
2018-01-07 23:17:01 +01:00
BuildRequires : pkgconfig(libsystemd)
2017-07-20 13:38:27 +02:00
BuildRequires : pkgconfig(libudev) >= 136
2017-05-18 21:28:14 +02:00
BuildRequires : pkgconfig(libwacom)
2012-02-25 15:39:19 +01:00
BuildRequires : pkgconfig(pango) >= 1.2.0
2018-01-07 23:17:01 +01:00
BuildRequires : pkgconfig(sm)
2014-04-03 22:47:47 +02:00
BuildRequires : pkgconfig(upower-glib) >= 0.99.0
2018-03-09 11:11:23 +01:00
BuildRequires : pkgconfig(wayland-protocols) >= 1.10
2018-01-07 23:17:01 +01:00
BuildRequires : pkgconfig(wayland-server) >= 1.13.0
BuildRequires : pkgconfig(x11)
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)
2018-01-07 23:17:01 +01:00
BuildRequires : pkgconfig(xinerama)
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)
2015-09-04 13:33:36 +02:00
BuildRequires : pkgconfig(xrandr) >= 1.5.0
2015-04-18 18:43:54 +02:00
BuildRequires : pkgconfig(xrender)
2017-02-22 21:41:59 +01:00
BuildRequires : pkgconfig(xtst)
2017-08-31 09:45:10 +02:00
Requires : zenity
Recommends: %{name} -lang
Provides : windowmanager
# Obsolete the now private typelib.
Obsoletes : typelib-1_0-Meta-3_0
2009-08-01 13:11:59 +02:00
%description
Mutter is a window and compositing manager based on Clutter, forked
from Metacity.
2018-03-10 13:40:53 +01:00
%package -n libmutter-%{mutter_major}-%{mutter_minor}
2016-11-10 12:00:36 +01:00
Summary : Window and compositing manager based on Clutter
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)
2017-07-20 13:38:27 +02:00
Group : System/Libraries
2012-09-11 18:01:08 +02:00
Requires : %{name} -data >= %{version}
2018-03-12 18:33:48 +01:00
# We need to obsolete the old mutter libs, as otherwise upgrading is impossible
# This makes me believe we should probably fold libmutter into the main package
# with the next update (3.30)
Obsoletes : libmutter-1-0
2018-04-19 17:10:51 +02:00
Obsoletes : libmutter0
2012-09-07 19:06:26 +02:00
2018-03-10 13:40:53 +01:00
%description -n libmutter-%{mutter_major}-%{mutter_minor}
2012-09-07 19:06:26 +02:00
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 data
2016-11-10 12:00:36 +01:00
Summary : Data files for mutter, a window and compositing manager based on Clutter
2012-09-11 18:01:08 +02:00
Group : System/GUI/GNOME
Requires : %{name} = %{version}
%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
2016-11-10 12:00:36 +01:00
Summary : Development files for mutter, a window and compositing manager
2009-08-01 13:11:59 +02:00
Group : Development/Libraries/GNOME
2016-09-08 23:24:20 +02:00
Requires : %{name} = %{version}
2018-03-10 13:40:53 +01:00
Requires : libmutter-%{mutter_major} -%{mutter_minor} = %{version}
2009-08-01 13:11:59 +02:00
%description devel
2016-11-10 12:00:36 +01:00
This subpackage contains libraries and header files for developing
applications that want to make use of the mutter library.
2014-04-16 10:51:40 +02:00
2009-08-01 13:11:59 +02:00
%lang_package
2017-08-31 09:45:10 +02:00
2009-08-01 13:11:59 +02:00
%prep
%setup -q
2017-08-31 09:45:10 +02:00
%patch0 -p1
2016-08-26 14:00:22 +02:00
%patch1 -p1
2018-03-14 11:46:21 +01:00
%patch2 -p1
2017-09-15 23:22:55 +02:00
2017-11-06 11:52:48 +01:00
# SLE-only patches and translations.
2017-08-31 09:45:10 +02:00
translation-update-upstream
2018-03-22 10:38:57 +01:00
%if !0%{?is_opensuse}
2017-08-31 09:45:10 +02:00
%patch1000 -p1
%patch1001 -p1
%patch1002 -p1
2016-09-20 20:29:39 +02:00
%endif
2009-08-01 13:11:59 +02:00
%build
2018-04-19 17:10:51 +02:00
NOCONFIGURE=1 ./autogen.sh
2009-08-01 13:11:59 +02:00
%configure \
2018-01-07 23:17:01 +01:00
--enable-wayland \
--enable-native-backend \
--disable-static \
--enable-egl-device \
2018-05-17 17:37:24 +02:00
--enable-gles2=yes \
2018-01-07 23:17:01 +01:00
--enable-compile-warnings=maximum \
%{nil}
%make_build
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
2011-02-13 23:30:22 +01:00
%find_lang %{name} %{?no_lang_C}
2017-11-06 11:52:48 +01:00
%fdupes %{buildroot} %{_prefix}
2009-08-01 13:11:59 +02:00
2018-03-10 13:40:53 +01:00
%post -n libmutter-%{mutter_major}-%{mutter_minor} -p /sbin/ldconfig
%postun -n libmutter-%{mutter_major}-%{mutter_minor} -p /sbin/ldconfig
2012-09-11 18:01:08 +02:00
2011-11-28 09:20:11 +01:00
%files
2018-01-07 23:17:01 +01:00
%license COPYING
%doc NEWS
2017-08-31 09:45:10 +02:00
%{_mandir} /man1/mutter.1%{?ext_man}
2012-02-08 20:55:25 +01:00
%{_bindir} /mutter
2014-08-23 13:52:05 +02:00
%{_libexecdir} /mutter-restart-helper
2009-08-01 13:11:59 +02:00
%{_datadir} /applications/mutter.desktop
2012-09-11 18:01:08 +02:00
2018-03-10 13:40:53 +01:00
# These so files are not split out since they are private to mutter
%{_libdir} /mutter/libmutter-clutter-%{mutter_major} .so
2018-05-17 17:37:24 +02:00
%{_libdir} /mutter/libmutter-cogl-gles2-%{mutter_major} .so
2018-03-10 13:40:53 +01:00
%{_libdir} /mutter/libmutter-cogl-pango-%{mutter_major} .so
%{_libdir} /mutter/libmutter-cogl-path-%{mutter_major} .so
%{_libdir} /mutter/libmutter-cogl-%{mutter_major} .so
%{_libdir} /mutter/plugins/default.so
# These typelibs are not split out since they are private to mutter
%{_libdir} /mutter/Cally-%{mutter_major} .typelib
%{_libdir} /mutter/Clutter-%{mutter_major} .typelib
%{_libdir} /mutter/ClutterX11-%{mutter_major} .typelib
%{_libdir} /mutter/Cogl-%{mutter_major} .typelib
%{_libdir} /mutter/CoglPango-%{mutter_major} .typelib
%{_libdir} /mutter/Meta-%{mutter_major} .typelib
%files -n libmutter-%{mutter_major}-%{mutter_minor}
%{_libdir} /libmutter-%{mutter_major} .so.*
2012-09-11 18:01:08 +02:00
%dir %{_libdir} /mutter/
# users of libmutter need this directory
%dir %{_libdir} /mutter/plugins/
%files data
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
2018-01-07 23:17:01 +01:00
%{_datadir} /gnome-control-center/keybindings/50-mutter-wayland.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
2011-01-07 23:52:33 +01:00
%{_includedir} /mutter/
2018-03-10 13:40:53 +01:00
%{_libdir} /libmutter-%{mutter_major} .so
%{_libdir} /mutter/Meta-%{mutter_major} .gir
%{_libdir} /mutter/Cally-%{mutter_major} .gir
%{_libdir} /mutter/Clutter-%{mutter_major} .gir
%{_libdir} /mutter/ClutterX11-%{mutter_major} .gir
%{_libdir} /mutter/Cogl-%{mutter_major} .gir
%{_libdir} /mutter/CoglPango-%{mutter_major} .gir
%{_libdir} /pkgconfig/libmutter-%{mutter_major} .pc
%{_libdir} /pkgconfig/mutter-clutter-%{mutter_major} .pc
%{_libdir} /pkgconfig/mutter-clutter-x11-%{mutter_major} .pc
%{_libdir} /pkgconfig/mutter-cogl-%{mutter_major} .pc
2018-05-17 17:37:24 +02:00
%{_libdir} /pkgconfig/mutter-cogl-gles2-%{mutter_major} .pc
2018-03-10 13:40:53 +01:00
%{_libdir} /pkgconfig/mutter-cogl-pango-%{mutter_major} .pc
%{_libdir} /pkgconfig/mutter-cogl-path-%{mutter_major} .pc
2009-08-01 13:11:59 +02:00
%changelog