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