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
#
2021-01-14 19:40:22 +01:00
# Copyright (c) 2021 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
2019-10-04 17:54:05 +02:00
# don't enable sysprof support by default
%bcond_with profiler
2021-03-24 17:39:08 +01:00
%define api_major 8
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
2021-08-23 10:35:12 +02:00
Version : 40.4
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
2021-03-24 17:39:08 +01:00
Source : https://download.gnome.org/sources/mutter/40/%{name} -%{version} .tar.xz
2019-07-26 14:52:04 +02:00
2019-02-21 12:33:36 +01:00
# PATCH-FIX-OPENSUSE mutter-Lower-HIDPI_LIMIT-to-144.patch fate#326682, bsc#1125467 qkzhu@suse.com -- Lower HIDPI_LIMIT to 144
Patch3 : mutter-Lower-HIDPI_LIMIT-to-144.patch
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
2019-12-04 20:58:47 +01:00
Patch4 : mutter-disable-cvt-s390x.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
2021-04-23 11:50:01 +02:00
# PATCH-FIX-SLE 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.
2017-08-31 09:45:10 +02:00
Patch1002 : mutter-SLE-bsc984738-grab-display.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
2019-04-18 15:50:47 +02:00
BuildRequires : meson
2017-08-31 09:45:10 +02:00
BuildRequires : pkgconfig
2019-04-18 15:50:47 +02:00
BuildRequires : xorg-x11-server
BuildRequires : xorg-x11-server-wayland
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)
2020-10-26 09:14:18 +01:00
BuildRequires : pkgconfig(fribidi) >= 1.0.0
BuildRequires : pkgconfig(gbm) >= 17.3
2020-01-15 17:53:57 +01:00
BuildRequires : pkgconfig(gio-unix-2.0) >= 2.61.1
2017-02-22 21:41:59 +01:00
BuildRequires : pkgconfig(glesv2)
2021-03-24 17:39:08 +01:00
BuildRequires : pkgconfig(glib-2.0) >= 2.67.3
2013-08-22 11:46:56 +02:00
BuildRequires : pkgconfig(gnome-desktop-3.0)
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
BuildRequires : pkgconfig(gtk+-3.0) >= 3.19.8
2018-01-07 23:17:01 +01:00
BuildRequires : pkgconfig(gudev-1.0) >= 232
2020-10-26 09:14:18 +01:00
BuildRequires : pkgconfig(json-glib-1.0) >= 0.12.0
BuildRequires : pkgconfig(libcanberra-gtk3) >= 0.26
2018-03-09 11:11:23 +01:00
BuildRequires : pkgconfig(libdrm) >= 2.4.83
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
2018-01-07 23:17:01 +01:00
BuildRequires : pkgconfig(sm)
2019-10-04 17:54:05 +02:00
%if %{with profiler}
2020-10-26 09:14:18 +01:00
BuildRequires : pkgconfig(sysprof-4)
BuildRequires : pkgconfig(sysprof-capture-4) >= 3.37.3
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-29 10:39:54 +02:00
%if !0%{?sle_version}
2021-07-19 09:44:11 +02:00
BuildRequires : pkgconfig(wayland-eglstream)
2021-07-29 10:39:54 +02:00
%endif
2019-10-24 13:06:38 +02:00
BuildRequires : pkgconfig(wayland-protocols) >= 1.18
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)
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)
2017-08-31 09:45:10 +02:00
Requires : zenity
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
# required mutter-data >= %{version} and mutter-data required mutter=%{version}.
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
%setup -q
2019-02-21 12:33:36 +01:00
%patch3 -p1
2021-07-19 09:44:11 +02:00
%patch4 -p1
2017-09-15 23:22:55 +02:00
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}
2017-08-31 09:45:10 +02:00
%patch1000 -p1
%patch1001 -p1
2021-04-23 11:50:01 +02:00
%patch1002 -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-29 10:39:54 +02:00
%if !0%{?sle_version}
2021-07-19 09:44:11 +02:00
-Dwayland_eglstream=true \
2021-07-29 10:39:54 +02:00
%endif
2019-04-18 15:50:47 +02:00
-Dcogl_tests=false \
-Dclutter_tests=false \
-Dtests=false \
-Dinstalled_tests=false \
2020-04-18 00:56:17 +02:00
-Dxwayland_initfd=disabled \
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
#%%check
#%%meson_test
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
2009-08-01 13:11:59 +02:00
%{_datadir} /applications/mutter.desktop
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.*
%{_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} /ClutterX11-%{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
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} /ClutterX11-%{api_major} .gir
%{_libdir} /mutter-%{api_major} /Cogl-%{api_major} .gir
%{_libdir} /mutter-%{api_major} /CoglPango-%{api_major} .gir
%{_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
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-clutter-x11-%{api_major} .pc
%{_libdir} /pkgconfig/mutter-cogl-%{api_major} .pc
%{_libdir} /pkgconfig/mutter-cogl-pango-%{api_major} .pc
%files lang -f %{name}.lang
2009-08-01 13:11:59 +02:00
%changelog