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
#
2024-01-10 10:12:53 +01:00
# Copyright (c) 2024 SUSE LLC
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.
2019-02-25 17:39:09 +01:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2009-08-01 13:11:59 +02:00
#
2012-02-08 20:55:25 +01:00
2023-09-12 10:21:35 +02:00
%bcond_with profiler
2019-10-04 17:54:05 +02:00
2024-03-19 14:34:02 +01:00
%define api_major 14
2018-09-14 05:28:15 +02:00
%define api_minor 0
%define libmutter libmutter-%{api_major}-%{api_minor}
2009-08-01 13:11:59 +02:00
Name : mutter
2024-05-02 17:47:37 +02:00
Version : 46.1
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
2023-09-18 08:37:43 +02:00
Source0 : %{name} -%{version} .tar.zst
2021-12-13 17:39:46 +01:00
2021-07-19 09:44:11 +02:00
# PATCH-FIX-UPSTREAM mutter-disable-cvt-s390x.patch bsc#1158128 fcrozat@suse.com -- Do not search for cvt on s390x, it doesn't exist there
2022-01-11 16:26:34 +01:00
Patch1 : mutter-disable-cvt-s390x.patch
# PATCH-FIX-OPENSUSE mutter-window-actor-Special-case-shaped-Java-windows.patch -- window-actor: Special-case shaped Java windows
2022-01-11 19:17:50 +01:00
Patch2 : mutter-window-actor-Special-case-shaped-Java-windows.patch
2023-12-18 10:18:55 +01:00
# PATCH-FIX-UPSTREAM mutter-fix-x11-restart.patch glgo#GNOME/gnome-shell#7050 glgo#GNOME/mutter!3329 alynx.zhou@suse.com -- Fix crash on restarting mutter under x11
Patch3 : mutter-fix-x11-restart.patch
2024-03-15 09:14:50 +01:00
# PATCH-FIX-OPENSUSE 0001-Revert-clutter-actor-Cache-stage-relative-instead-of.patch glgo#GNOME/mutter#3302 bsc#1219546 alynx.zhou@suse.com -- Fix partial update on VT switch
2024-03-19 14:34:02 +01:00
Patch4 : 0001-Revert-clutter-actor-Cache-stage-relative-instead-of.patch
2024-05-17 08:14:05 +02:00
#PATCH-FEATURE-OPENSUSE mutter-implement-text-input-v1.patch glgo#GNOME/mutter!3751 bsc#1219505 alynx.zhou@suse.com -- Allow input method to work in Wayland Chromium
Patch5 : mutter-implement-text-input-v1.patch
2020-04-18 00:56:17 +02:00
2018-09-14 05:28:15 +02: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
2019-07-26 14:52:04 +02:00
2018-03-09 11:11:23 +01:00
BuildRequires : Mesa-libGLESv3-devel
2009-08-01 13:11:59 +02:00
BuildRequires : fdupes
2021-11-02 13:01:41 +01:00
%ifnarch s390x
BuildRequires : (libxcvt if xorg-x11-server > 21)
%endif
2021-09-27 08:25:37 +02:00
BuildRequires : meson >= 0.53.0
2017-08-31 09:45:10 +02:00
BuildRequires : pkgconfig
2019-04-18 15:50:47 +02:00
BuildRequires : xorg-x11-server
2021-09-27 08:25:37 +02:00
BuildRequires : xvfb-run
2012-02-25 15:39:19 +01:00
BuildRequires : pkgconfig(cairo) >= 1.10.0
2022-09-13 09:36:19 +02:00
BuildRequires : pkgconfig(colord) >= 1.4.5
2017-02-22 21:41:59 +01:00
BuildRequires : pkgconfig(egl)
2020-10-26 09:14:18 +01:00
BuildRequires : pkgconfig(fribidi) >= 1.0.0
BuildRequires : pkgconfig(gbm) >= 17.3
2021-09-27 08:25:37 +02:00
BuildRequires : pkgconfig(gio-unix-2.0) >= 2.69.0
2017-02-22 21:41:59 +01:00
BuildRequires : pkgconfig(glesv2)
2021-09-27 08:25:37 +02:00
BuildRequires : pkgconfig(glib-2.0) >= 2.69.0
2023-03-20 13:48:30 +01:00
BuildRequires : pkgconfig(gnome-desktop-4)
2019-04-18 15:50:47 +02:00
BuildRequires : pkgconfig(gnome-settings-daemon)
2018-01-07 23:17:01 +01:00
BuildRequires : pkgconfig(gobject-introspection-1.0) >= 0.9.5
2020-04-18 00:56:17 +02:00
BuildRequires : pkgconfig(graphene-gobject-1.0)
2020-10-26 09:14:18 +01:00
BuildRequires : pkgconfig(gsettings-desktop-schemas) >= 3.37.2
2023-03-20 13:48:30 +01:00
BuildRequires : pkgconfig(gtk4)
2018-01-07 23:17:01 +01:00
BuildRequires : pkgconfig(gudev-1.0) >= 232
2022-09-13 09:36:19 +02:00
BuildRequires : pkgconfig(lcms2) >= 2.6
2020-10-26 09:14:18 +01:00
BuildRequires : pkgconfig(libcanberra-gtk3) >= 0.26
2023-09-18 08:37:43 +02:00
BuildRequires : pkgconfig(libdisplay-info)
2024-03-19 14:34:02 +01:00
BuildRequires : pkgconfig(libdrm) >= 2.4.118
2023-09-12 10:21:35 +02:00
BuildRequires : pkgconfig(libeis-1.0)
2021-07-28 10:21:08 +02:00
BuildRequires : pkgconfig(libinput) >= 1.15.0
2021-03-24 17:39:08 +01:00
BuildRequires : pkgconfig(libpipewire-0.3) >= 0.3.21
2020-10-26 09:14:18 +01:00
BuildRequires : pkgconfig(libstartup-notification-1.0) >= 0.7
2018-01-07 23:17:01 +01:00
BuildRequires : pkgconfig(libsystemd)
2017-07-20 13:38:27 +02:00
BuildRequires : pkgconfig(libudev) >= 136
2020-10-26 09:14:18 +01:00
BuildRequires : pkgconfig(libwacom) >= 0.13
2012-02-25 15:39:19 +01:00
BuildRequires : pkgconfig(pango) >= 1.2.0
2024-03-19 14:34:02 +01:00
BuildRequires : pkgconfig(pixman-1) >= 0.42
2018-01-07 23:17:01 +01:00
BuildRequires : pkgconfig(sm)
2019-10-04 17:54:05 +02:00
%if %{with profiler}
2023-09-12 10:21:35 +02:00
BuildRequires : pkgconfig(sysprof-6)
BuildRequires : pkgconfig(sysprof-capture-4) >= 3.37.2
2019-10-04 17:54:05 +02:00
%endif
2020-10-26 09:14:18 +01:00
BuildRequires : pkgconfig(udev)
2014-04-03 22:47:47 +02:00
BuildRequires : pkgconfig(upower-glib) >= 0.99.0
2021-07-19 09:44:11 +02:00
BuildRequires : pkgconfig(wayland-eglstream)
2024-03-19 14:34:02 +01:00
BuildRequires : pkgconfig(wayland-protocols) >= 1.33
BuildRequires : pkgconfig(wayland-server) >= 1.22
2018-01-07 23:17:01 +01:00
BuildRequires : pkgconfig(x11)
2014-09-11 23:16:05 +02:00
BuildRequires : pkgconfig(x11-xcb)
2019-05-27 09:47:52 +02:00
BuildRequires : pkgconfig(xau)
2014-08-23 13:52:05 +02:00
BuildRequires : pkgconfig(xcb-randr)
2020-10-26 09:14:18 +01:00
BuildRequires : pkgconfig(xcomposite) >= 0.4
2012-02-20 23:09:45 +01:00
BuildRequires : pkgconfig(xcursor)
BuildRequires : pkgconfig(xdamage)
2014-08-23 13:52:05 +02:00
BuildRequires : pkgconfig(xext)
2020-10-26 09:14:18 +01:00
BuildRequires : pkgconfig(xfixes) >= 3
BuildRequires : pkgconfig(xi) >= 1.7.4
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)
2021-09-27 08:25:37 +02:00
BuildRequires : pkgconfig(xwayland)
Requires : gnome-settings-daemon
2017-08-31 09:45:10 +02:00
Provides : windowmanager
# Obsolete the now private typelib.
Obsoletes : typelib-1_0-Meta-3_0
2021-05-03 18:14:15 +02:00
# libmutter-<n>-0 and mutter-data were folded into the main package after GNOME 40
# The library is not realy usable decoupled from the mutter version, and offering to
# parallel install it only gives a false sense of capability. A full GNOME Stack
# has a matching gnome-shell, mutter, libmutter version.
Obsoletes : libmutter-8-0 <= %{version}
# mutter-data was essentilly hard-required at the same version, as mutter requires
# libmutter-<n>-0 (which has a soname bump at every major version change), libmutter
2021-11-05 09:46:21 +01:00
# required mutter-data >= %%{version} and mutter-data required mutter=%%{version}.
2021-05-03 18:14:15 +02:00
Obsoletes : mutter-data <= %{version}
2009-08-01 13:11:59 +02:00
%description
Mutter is a window and compositing manager based on Clutter, forked
from Metacity.
%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}
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
2023-04-17 16:13:58 +02:00
%autosetup -N
2023-08-21 09:10:59 +02:00
%if !0%{?sle_version}
2023-04-17 16:13:58 +02:00
%autopatch -p1 -M 999
2023-08-21 09:10:59 +02:00
%else
2023-11-28 14:16:50 +01:00
%patch -P 1 -p1
%patch -P 2 -p1
2023-12-18 10:18:55 +01:00
%patch -P 3 -p1
2023-12-21 11:24:39 +01:00
%patch -P 4 -p1
2024-05-17 08:14:05 +02:00
%patch -P 5 -p1
2023-08-21 09:10:59 +02:00
%endif
2017-11-06 11:52:48 +01:00
# SLE-only patches and translations.
2020-05-02 00:17:28 +02:00
%if 0%{?sle_version}
2023-11-28 14:16:50 +01:00
%patch -P 1000 -p1
%patch -P 1001 -p1
2016-09-20 20:29:39 +02:00
%endif
2009-08-01 13:11:59 +02:00
%build
2019-04-18 15:50:47 +02:00
%meson \
-Degl_device=true \
2021-07-19 09:44:11 +02:00
-Dwayland_eglstream=true \
2019-04-18 15:50:47 +02:00
-Dcogl_tests=false \
-Dclutter_tests=false \
2022-09-13 09:36:19 +02:00
-Dtests=false \
2019-04-18 15:50:47 +02:00
-Dinstalled_tests=false \
2021-09-27 08:25:37 +02:00
-Dxwayland_initfd=auto \
2023-09-18 08:37:43 +02:00
-Dlibdisplay_info=true \
2019-10-04 17:54:05 +02:00
%if %{with profiler}
-Dprofiler=true \
%else
-Dprofiler=false \
%endif
2018-01-07 23:17:01 +01:00
%{nil}
2019-04-18 15:50:47 +02:00
%meson_build
2009-08-01 13:11:59 +02:00
%install
2019-04-18 15:50:47 +02:00
%meson_install
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
2021-05-03 18:14:15 +02:00
%ldconfig_scriptlets
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
2023-03-20 13:48:30 +01:00
%{_libexecdir} /mutter-x11-frames
2020-10-26 09:14:18 +01:00
%{_udevrulesdir} /61-mutter.rules
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
2019-04-18 15:50:47 +02:00
%{_libdir} /mutter-%{api_major} /libmutter-clutter-%{api_major} .so.*
%{_libdir} /mutter-%{api_major} /libmutter-cogl-pango-%{api_major} .so.*
%{_libdir} /mutter-%{api_major} /libmutter-cogl-%{api_major} .so.*
2023-09-12 10:21:35 +02:00
%{_libdir} /mutter-%{api_major} /libmutter-mtk-%{api_major} .so.*
2019-04-18 15:50:47 +02:00
%{_libdir} /mutter-%{api_major} /plugins/libdefault.so
2018-03-10 13:40:53 +01:00
# These typelibs are not split out since they are private to mutter
2019-04-18 15:50:47 +02:00
%{_libdir} /mutter-%{api_major} /Cally-%{api_major} .typelib
%{_libdir} /mutter-%{api_major} /Clutter-%{api_major} .typelib
%{_libdir} /mutter-%{api_major} /Cogl-%{api_major} .typelib
%{_libdir} /mutter-%{api_major} /CoglPango-%{api_major} .typelib
%{_libdir} /mutter-%{api_major} /Meta-%{api_major} .typelib
2023-09-12 10:21:35 +02:00
%{_libdir} /mutter-%{api_major} /Mtk-%{api_major} .typelib
2018-09-14 05:28:15 +02:00
%{_libdir} /libmutter-%{api_major} .so.*
2019-04-18 15:50:47 +02:00
%dir %{_libdir} /mutter-%{api_major} /
2012-09-11 18:01:08 +02:00
# users of libmutter need this directory
2019-04-18 15:50:47 +02:00
%dir %{_libdir} /mutter-%{api_major} /plugins/
2012-09-11 18:01:08 +02:00
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 devel
2019-04-18 15:50:47 +02:00
%{_includedir} /mutter-%{api_major} /
%{_libdir} /mutter-%{api_major} /Meta-%{api_major} .gir
%{_libdir} /mutter-%{api_major} /Cally-%{api_major} .gir
%{_libdir} /mutter-%{api_major} /Clutter-%{api_major} .gir
%{_libdir} /mutter-%{api_major} /Cogl-%{api_major} .gir
%{_libdir} /mutter-%{api_major} /CoglPango-%{api_major} .gir
2023-09-12 10:21:35 +02:00
%{_libdir} /mutter-%{api_major} /Mtk-%{api_major} .gir
2019-04-18 15:50:47 +02:00
%{_libdir} /mutter-%{api_major} /libmutter-clutter-%{api_major} .so
%{_libdir} /mutter-%{api_major} /libmutter-cogl-pango-%{api_major} .so
%{_libdir} /mutter-%{api_major} /libmutter-cogl-%{api_major} .so
2023-09-12 10:21:35 +02:00
%{_libdir} /mutter-%{api_major} /libmutter-mtk-%{api_major} .so
2018-09-14 05:28:15 +02:00
%{_libdir} /libmutter-%{api_major} .so
%{_libdir} /pkgconfig/libmutter-%{api_major} .pc
%{_libdir} /pkgconfig/mutter-clutter-%{api_major} .pc
%{_libdir} /pkgconfig/mutter-cogl-%{api_major} .pc
%{_libdir} /pkgconfig/mutter-cogl-pango-%{api_major} .pc
2023-09-12 10:21:35 +02:00
%{_libdir} /pkgconfig/mutter-mtk-%{api_major} .pc
2018-09-14 05:28:15 +02:00
%files lang -f %{name}.lang
2009-08-01 13:11:59 +02:00
%changelog