]>
Commit | Line | Data |
---|---|---|
1 | # TODO: use xorg-xserver-Xwayland-devel >= 21.1 instead of no-xwayland patch after finishing xorg-xserver-Xwayland.spec | |
2 | # | |
3 | # Conditional build | |
4 | %bcond_with eglstream # Wayland EGLStream support | |
5 | %bcond_without pipewire # remote desktop via pipewire | |
6 | %bcond_with sysprof # build with tracing support | |
7 | %bcond_with tests # run tests (causes infinite loop on builders) | |
8 | ||
9 | Summary: Window and compositing manager based on Clutter | |
10 | Summary(pl.UTF-8): Zarządca okien i składania oparty na bibliotece Clutter | |
11 | Name: mutter | |
12 | Version: 40.0 | |
13 | Release: 1 | |
14 | License: GPL v2+ | |
15 | Group: X11/Window Managers | |
16 | Source0: https://download.gnome.org/sources/mutter/40/%{name}-%{version}.tar.xz | |
17 | # Source0-md5: 64ec45c43427fa9794fc3a6e287689bd | |
18 | Patch0: %{name}-no-xwayland.patch | |
19 | URL: https://gitlab.gnome.org/GNOME/mutter | |
20 | BuildRequires: EGL-devel | |
21 | BuildRequires: OpenGL-GLX-devel | |
22 | BuildRequires: Mesa-libgbm-devel >= 17.3 | |
23 | BuildRequires: atk-devel >= 1:2.6 | |
24 | BuildRequires: cairo-devel >= 1.10.0 | |
25 | BuildRequires: cairo-gobject-devel >= 1.14.0 | |
26 | BuildRequires: dbus-devel | |
27 | %{?with_eglstream:BuildRequires: egl-wayland-devel} | |
28 | BuildRequires: fribidi-devel >= 1.0.0 | |
29 | BuildRequires: gdk-pixbuf2-devel >= 2.0 | |
30 | BuildRequires: gettext-tools >= 0.19.6 | |
31 | BuildRequires: glib2-devel >= 1:2.67.3 | |
32 | BuildRequires: gnome-desktop-devel >= 3.0 | |
33 | BuildRequires: gnome-settings-daemon-devel | |
34 | BuildRequires: gobject-introspection-devel >= 1.40.0 | |
35 | BuildRequires: graphene-devel >= 1.10.2 | |
36 | BuildRequires: gsettings-desktop-schemas-devel >= 40 | |
37 | BuildRequires: gtk+3-devel >= 3.20.0 | |
38 | BuildRequires: json-glib-devel >= 0.12.0 | |
39 | BuildRequires: libcanberra-gtk3-devel >= 0.26 | |
40 | BuildRequires: libdrm-devel | |
41 | BuildRequires: libgudev-devel >= 232 | |
42 | BuildRequires: libinput-devel >= 1.15.0 | |
43 | BuildRequires: libwacom-devel >= 0.13 | |
44 | # xcb-randr, xcb-res | |
45 | BuildRequires: libxcb-devel | |
46 | BuildRequires: meson >= 0.51.0 | |
47 | BuildRequires: ninja >= 1.5 | |
48 | BuildRequires: pango-devel >= 1:1.46.0 | |
49 | %{?with_pipewire:BuildRequires: pipewire-devel >= 0.3.21} | |
50 | BuildRequires: pkgconfig >= 1:0.21 | |
51 | BuildRequires: rpmbuild(macros) >= 1.736 | |
52 | BuildRequires: startup-notification-devel >= 0.7 | |
53 | %{?with_sysprof:BuildRequires: sysprof-devel >= 3.37.2} | |
54 | # or elogind-devel | |
55 | BuildRequires: systemd-devel >= 1:209 | |
56 | BuildRequires: tar >= 1:1.22 | |
57 | BuildRequires: udev-devel >= 1:228 | |
58 | BuildRequires: upower-devel >= 0.99.0 | |
59 | BuildRequires: wayland-devel >= 1.18 | |
60 | BuildRequires: wayland-egl-devel | |
61 | BuildRequires: wayland-protocols >= 1.19 | |
62 | BuildRequires: xkeyboard-config | |
63 | BuildRequires: xorg-lib-libICE-devel | |
64 | BuildRequires: xorg-lib-libSM-devel | |
65 | BuildRequires: xorg-lib-libX11-devel | |
66 | BuildRequires: xorg-lib-libXau-devel | |
67 | BuildRequires: xorg-lib-libXcomposite-devel >= 0.4 | |
68 | BuildRequires: xorg-lib-libXcursor-devel | |
69 | BuildRequires: xorg-lib-libXdamage-devel | |
70 | BuildRequires: xorg-lib-libXext-devel | |
71 | BuildRequires: xorg-lib-libXfixes-devel >= 3 | |
72 | BuildRequires: xorg-lib-libXi-devel >= 1.7.4 | |
73 | BuildRequires: xorg-lib-libXinerama-devel | |
74 | BuildRequires: xorg-lib-libXrandr-devel >= 1.5.0 | |
75 | BuildRequires: xorg-lib-libXrender-devel | |
76 | BuildRequires: xorg-lib-libXtst-devel | |
77 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.4.3 | |
78 | BuildRequires: xorg-lib-libxkbcommon-x11-devel >= 0.4.3 | |
79 | BuildRequires: xorg-lib-libxkbfile-devel | |
80 | BuildRequires: xz | |
81 | Requires(post,postun): glib2 >= 1:2.67.3 | |
82 | Requires: %{name}-libs = %{version}-%{release} | |
83 | Requires: gsettings-desktop-schemas >= 40 | |
84 | Requires: zenity | |
85 | Provides: gnome-wm | |
86 | Obsoletes: mutter-apidocs < 3.18 | |
87 | Obsoletes: mutter-wayland < 3.14 | |
88 | Obsoletes: mutter-wayland-apidocs < 3.14 | |
89 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
90 | ||
91 | %define apiver 8 | |
92 | ||
93 | %description | |
94 | Mutter is a window and compositing manager that displays and manages | |
95 | your desktop via OpenGL. Mutter combines a sophisticated display | |
96 | engine using the Clutter toolkit with solid window-management logic | |
97 | inherited from the Metacity window manager. | |
98 | ||
99 | %description -l pl.UTF-8 | |
100 | Mutter to zarządca okien i składania wyświetlający pulpit i | |
101 | zarządzający nim poprzez OpenGL. Łączy wyszukany silnik wyświetlania | |
102 | wykorzystujący toolkit Clutter z solidną logiką zarządcy okien | |
103 | odziedziczoną z zarządcy okien Metacity. | |
104 | ||
105 | %package libs | |
106 | Summary: Mutter shared library | |
107 | Summary(pl.UTF-8): Biblioteka współdzielona zarządcy okien Mutter | |
108 | Group: Libraries | |
109 | Requires: Mesa-libgbm >= 17.3 | |
110 | Requires: atk >= 1:2.6 | |
111 | Requires: cairo >= 1.10.0 | |
112 | Requires: cairo-gobject >= 1.14.0 | |
113 | Requires: fribidi >= 1.0.0 | |
114 | Requires: glib2 >= 1:2.67.3 | |
115 | Requires: gnome-desktop >= 3.0 | |
116 | Requires: graphene >= 1.10.2 | |
117 | Requires: gtk+3 >= 3.20.0 | |
118 | Requires: json-glib >= 0.12.0 | |
119 | Requires: libcanberra-gtk3 >= 0.26 | |
120 | Requires: libinput >= 1.15.0 | |
121 | Requires: libwacom >= 0.13 | |
122 | Requires: pango >= 1:1.46.0 | |
123 | %{?with_pipewire:Requires: pipewire-libs >= 0.3.21} | |
124 | Requires: startup-notification >= 0.7 | |
125 | Requires: libgudev >= 232 | |
126 | Requires: udev-libs >= 1:228 | |
127 | Requires: upower-libs >= 0.99.0 | |
128 | Requires: wayland >= 1.18 | |
129 | Requires: xorg-lib-libXcomposite >= 0.4 | |
130 | Requires: xorg-lib-libXfixes >= 3 | |
131 | Requires: xorg-lib-libXi >= 1.7.4 | |
132 | Requires: xorg-lib-libXrandr >= 1.5.0 | |
133 | Obsoletes: mutter-wayland-libs < 3.14 | |
134 | Conflicts: mutter < 3.4.0-2 | |
135 | ||
136 | %description libs | |
137 | Mutter shared library. | |
138 | ||
139 | %description libs -l pl.UTF-8 | |
140 | Biblioteka współdzielona zarządcy okien i składania Mutter. | |
141 | ||
142 | %package devel | |
143 | Summary: Development package for Mutter | |
144 | Summary(pl.UTF-8): Pakiet programistyczny do wtyczek zarządcy okien Mutter | |
145 | Group: X11/Development/Libraries | |
146 | Requires: %{name}-libs = %{version}-%{release} | |
147 | Requires: EGL-devel | |
148 | Requires: Mesa-libgbm-devel >= 17.3 | |
149 | Requires: cairo-devel >= 1.10.0 | |
150 | Requires: cairo-gobject-devel >= 1.14.0 | |
151 | Requires: gdk-pixbuf2-devel >= 2.0 | |
152 | Requires: glib2-devel >= 1:2.67.3 | |
153 | Requires: graphene-devel >= 1.10.2 | |
154 | Requires: gtk+3-devel >= 3.20.0 | |
155 | Requires: libcanberra-gtk3-devel >= 0.26 | |
156 | Requires: libdrm-devel | |
157 | Requires: startup-notification-devel >= 0.7 | |
158 | Requires: wayland-devel >= 1.8 | |
159 | Requires: wayland-egl-devel | |
160 | Requires: xorg-lib-libX11-devel | |
161 | Requires: xorg-lib-libXau-devel | |
162 | Requires: xorg-lib-libXcomposite-devel >= 0.4 | |
163 | Requires: xorg-lib-libXcursor-devel | |
164 | Requires: xorg-lib-libXdamage-devel | |
165 | Requires: xorg-lib-libXext-devel | |
166 | Requires: xorg-lib-libXfixes-devel >= 3 | |
167 | Requires: xorg-lib-libXi-devel >= 1.7.4 | |
168 | Requires: xorg-lib-libXrandr-devel >= 1.5.0 | |
169 | Requires: xorg-lib-libXrender-devel | |
170 | Requires: xorg-lib-libXtst-devel | |
171 | Requires: xorg-lib-libxkbcommon-devel >= 0.4.3 | |
172 | Obsoletes: mutter-wayland-devel < 3.14 | |
173 | ||
174 | %description devel | |
175 | Header files for developing Mutter plugins. | |
176 | ||
177 | %description devel -l pl.UTF-8 | |
178 | Pliki nagłówkowe do tworzenia wtyczek zarządcy okien i składania | |
179 | Mutter. | |
180 | ||
181 | %prep | |
182 | %setup -q | |
183 | %patch0 -p1 | |
184 | ||
185 | %build | |
186 | %meson build \ | |
187 | %{?with_eglstream:-Dwayland_eglstream=true} \ | |
188 | -Dgles2_libname=libGLESv2.so.2 \ | |
189 | -Dinstalled_tests=false \ | |
190 | -Dprofiler=%{__true_false sysprof} \ | |
191 | %{!?with_pipewire:-Dremote_desktop=false} \ | |
192 | -Dtests=%{__true_false tests} \ | |
193 | -Dxwayland_initfd=disabled \ | |
194 | -Dxwayland_path=/usr/bin/Xwayland | |
195 | ||
196 | %ninja_build -C build | |
197 | ||
198 | %install | |
199 | rm -rf $RPM_BUILD_ROOT | |
200 | ||
201 | %ninja_install -C build | |
202 | ||
203 | %find_lang %{name} | |
204 | ||
205 | %clean | |
206 | rm -rf $RPM_BUILD_ROOT | |
207 | ||
208 | %post | |
209 | %glib_compile_schemas | |
210 | ||
211 | %postun | |
212 | %glib_compile_schemas | |
213 | ||
214 | %post libs -p /sbin/ldconfig | |
215 | %postun libs -p /sbin/ldconfig | |
216 | ||
217 | %files -f %{name}.lang | |
218 | %defattr(644,root,root,755) | |
219 | %doc NEWS doc/*.txt | |
220 | %attr(755,root,root) %{_bindir}/mutter | |
221 | %dir %{_libdir}/mutter-%{apiver}/plugins | |
222 | %attr(755,root,root) %{_libdir}/mutter-%{apiver}/plugins/libdefault.so | |
223 | %attr(755,root,root) %{_libexecdir}/mutter-restart-helper | |
224 | /lib/udev/rules.d/61-mutter.rules | |
225 | %{_desktopdir}/mutter.desktop | |
226 | %{_datadir}/GConf/gsettings/mutter-schemas.convert | |
227 | %{_datadir}/glib-2.0/schemas/org.gnome.mutter.gschema.xml | |
228 | %{_datadir}/glib-2.0/schemas/org.gnome.mutter.wayland.gschema.xml | |
229 | %{_datadir}/gnome-control-center/keybindings/50-mutter-wayland.xml | |
230 | %{_datadir}/gnome-control-center/keybindings/50-mutter-windows.xml | |
231 | %{_datadir}/gnome-control-center/keybindings/50-mutter-navigation.xml | |
232 | %{_datadir}/gnome-control-center/keybindings/50-mutter-system.xml | |
233 | %{_mandir}/man1/mutter.1* | |
234 | ||
235 | %files libs | |
236 | %defattr(644,root,root,755) | |
237 | %attr(755,root,root) %{_libdir}/libmutter-%{apiver}.so.*.*.* | |
238 | %attr(755,root,root) %ghost %{_libdir}/libmutter-%{apiver}.so.0 | |
239 | %dir %{_libdir}/mutter-%{apiver} | |
240 | %attr(755,root,root) %{_libdir}/mutter-%{apiver}/libmutter-clutter-%{apiver}.so.*.*.* | |
241 | %attr(755,root,root) %{_libdir}/mutter-%{apiver}/libmutter-clutter-%{apiver}.so.0 | |
242 | %attr(755,root,root) %{_libdir}/mutter-%{apiver}/libmutter-cogl-pango-%{apiver}.so.*.*.* | |
243 | %attr(755,root,root) %{_libdir}/mutter-%{apiver}/libmutter-cogl-pango-%{apiver}.so.0 | |
244 | %attr(755,root,root) %{_libdir}/mutter-%{apiver}/libmutter-cogl-%{apiver}.so.*.*.* | |
245 | %attr(755,root,root) %{_libdir}/mutter-%{apiver}/libmutter-cogl-%{apiver}.so.0 | |
246 | # intentionally installed in package-private dir | |
247 | %{_libdir}/mutter-%{apiver}/Cally-%{apiver}.typelib | |
248 | %{_libdir}/mutter-%{apiver}/Clutter-%{apiver}.typelib | |
249 | %{_libdir}/mutter-%{apiver}/ClutterX11-%{apiver}.typelib | |
250 | %{_libdir}/mutter-%{apiver}/Cogl-%{apiver}.typelib | |
251 | %{_libdir}/mutter-%{apiver}/CoglPango-%{apiver}.typelib | |
252 | %{_libdir}/mutter-%{apiver}/Meta-%{apiver}.typelib | |
253 | ||
254 | %files devel | |
255 | %defattr(644,root,root,755) | |
256 | %attr(755,root,root) %{_libdir}/libmutter-%{apiver}.so | |
257 | %attr(755,root,root) %{_libdir}/mutter-%{apiver}/libmutter-clutter-%{apiver}.so | |
258 | %attr(755,root,root) %{_libdir}/mutter-%{apiver}/libmutter-cogl-pango-%{apiver}.so | |
259 | %attr(755,root,root) %{_libdir}/mutter-%{apiver}/libmutter-cogl-%{apiver}.so | |
260 | %{_includedir}/mutter-%{apiver} | |
261 | # intentionally installed in package-private dir | |
262 | %{_libdir}/mutter-%{apiver}/Cally-%{apiver}.gir | |
263 | %{_libdir}/mutter-%{apiver}/Clutter-%{apiver}.gir | |
264 | %{_libdir}/mutter-%{apiver}/ClutterX11-%{apiver}.gir | |
265 | %{_libdir}/mutter-%{apiver}/Cogl-%{apiver}.gir | |
266 | %{_libdir}/mutter-%{apiver}/CoglPango-%{apiver}.gir | |
267 | %{_libdir}/mutter-%{apiver}/Meta-%{apiver}.gir | |
268 | %{_pkgconfigdir}/libmutter-%{apiver}.pc | |
269 | %{_pkgconfigdir}/mutter-clutter-%{apiver}.pc | |
270 | %{_pkgconfigdir}/mutter-clutter-x11-%{apiver}.pc | |
271 | %{_pkgconfigdir}/mutter-cogl-%{apiver}.pc | |
272 | %{_pkgconfigdir}/mutter-cogl-pango-%{apiver}.pc |