]>
Commit | Line | Data |
---|---|---|
3adcb0b8 JB |
1 | # |
2 | # Conditional build: | |
0cb34c60 | 3 | %bcond_without drm # DRM compositor |
6b9f49b3 | 4 | %bcond_without rdp # RDP compositor (needs freerdp2 or freerdp >= 1.1.0) |
0cb34c60 JB |
5 | %bcond_without wayland # wayland (nested) compositor |
6 | %bcond_without x11 # X11 compositor | |
131b29b1 | 7 | %bcond_without libunwind # libunwind usage for backtraces |
9c73a052 | 8 | %bcond_without vaapi # vaapi recorder |
0cb34c60 JB |
9 | %bcond_without wlaunch # weston launch |
10 | %bcond_without xwayland # X server launcher | |
11 | %bcond_without sclients # simple clients | |
b1b43d2b | 12 | %bcond_without clients # non-simple clients |
eab4380b | 13 | %bcond_with glclients # full GL clients [require cairo-gl/cairo-egl, not recommended] |
b38afc9e | 14 | %bcond_without remoting # remoting-plugin (requires DRM compositor + GStreamer) |
131b29b1 | 15 | |
b38afc9e JB |
16 | %if %{without drm} |
17 | %undefine with_remoting | |
18 | %endif | |
3adcb0b8 JB |
19 | Summary: Weston - Wayland demos |
20 | Summary(pl.UTF-8): Weston - programy demonstracyjne dla protokołu Wayland | |
21 | Name: weston | |
b38afc9e JB |
22 | Version: 6.0.0 |
23 | Release: 1 | |
3adcb0b8 JB |
24 | License: MIT |
25 | Group: Applications | |
eab4380b | 26 | #Source0Download: https://wayland.freedesktop.org/releases.html |
bc222cc7 | 27 | Source0: https://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz |
b38afc9e | 28 | # Source0-md5: 7c634e262f8a464a076c97fd50ad36b3 |
d130821f | 29 | Patch0: %{name}-freerdp2.patch |
bc222cc7 | 30 | URL: https://wayland.freedesktop.org/ |
3adcb0b8 | 31 | BuildRequires: Mesa-libEGL-devel >= 7.10 |
5f05a417 | 32 | # GLESv2 |
3adcb0b8 | 33 | BuildRequires: Mesa-libGLES-devel |
1650f2b5 JB |
34 | BuildRequires: autoconf >= 2.64 |
35 | BuildRequires: automake >= 1:1.11 | |
0cb34c60 | 36 | BuildRequires: cairo-devel >= 1.10.0 |
09c3888d | 37 | BuildRequires: colord-devel >= 0.1.27 |
701d5d1a | 38 | BuildRequires: dbus-devel >= 1.6 |
ff471f7a | 39 | BuildRequires: doxygen |
d130821f JB |
40 | # or freerdp >= 1.1.0 (without freerdp2 patch) |
41 | %{?with_rdp:BuildRequires: freerdp2-devel >= 2.0.0-0.20180809.1} | |
b38afc9e JB |
42 | %if %{with remoting} |
43 | BuildRequires: gstreamer-devel >= 1.0 | |
44 | BuildRequires: gstreamer-plugins-base-devel >= 1.0 | |
45 | %endif | |
09c3888d | 46 | BuildRequires: lcms2-devel >= 2 |
a95a80fe | 47 | BuildRequires: libdrm-devel >= 2.4.68 |
b38afc9e | 48 | BuildRequires: libevdev-devel |
b1b43d2b | 49 | BuildRequires: libinput-devel >= 0.8.0 |
0cb34c60 | 50 | BuildRequires: libjpeg-devel |
3adcb0b8 | 51 | BuildRequires: libpng-devel |
1650f2b5 | 52 | BuildRequires: libtool >= 2:2.2 |
131b29b1 | 53 | %{?with_libunwind:BuildRequires: libunwind-devel} |
0cb34c60 | 54 | BuildRequires: libwebp-devel |
3b2a67c3 | 55 | BuildRequires: pixman-devel >= 0.26 |
3adcb0b8 JB |
56 | BuildRequires: pkgconfig |
57 | BuildRequires: tar >= 1:1.22 | |
0cb34c60 | 58 | # wayland-server always; wayland-client if with_wayland || with_sclients || with_clients; wayland-cursor if with_clients |
b38ed305 | 59 | BuildRequires: wayland-devel >= 1.12.0 |
a95a80fe JB |
60 | # for wayland and sclients, but also desktop-shell, which is always enabled |
61 | BuildRequires: wayland-egl-devel | |
b38afc9e | 62 | BuildRequires: wayland-protocols >= 1.17 |
1cb405cb | 63 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.5.0 |
3adcb0b8 | 64 | BuildRequires: xz |
0cb34c60 | 65 | %if %{with drm} |
a95a80fe JB |
66 | BuildRequires: Mesa-libgbm-devel >= 17.2 |
67 | BuildRequires: libdrm-devel >= 2.4.83 | |
0cb34c60 | 68 | BuildRequires: mtdev-devel >= 1.1.0 |
6c4f66d1 | 69 | BuildRequires: udev-devel >= 1:136 |
0cb34c60 | 70 | %endif |
3b2a67c3 JB |
71 | %if %{with vaapi} |
72 | BuildRequires: libva-devel >= 1.2.0 | |
73 | BuildRequires: libva-drm-devel >= 1.2.0 | |
74 | # API versions | |
75 | BuildRequires: pkgconfig(libva) >= 0.34.0 | |
76 | BuildRequires: pkgconfig(libva-drm) >= 0.34.0 | |
77 | %endif | |
0cb34c60 | 78 | %if %{with x11} |
eab4380b JB |
79 | # xcb >= 1.8 xcb-xkb >= 1.9 xcb-shm |
80 | BuildRequires: libxcb-devel >= 1.9 | |
0cb34c60 JB |
81 | BuildRequires: xorg-lib-libX11-devel |
82 | %endif | |
83 | %if %{with wlaunch} | |
0cb34c60 | 84 | BuildRequires: pam-devel |
5acd8af0 | 85 | BuildRequires: systemd-devel >= 1:209 |
0cb34c60 JB |
86 | %endif |
87 | %if %{with xwayland} | |
1cb405cb | 88 | BuildRequires: glib2-devel >= 1:2.36 |
6f48f53b | 89 | # xcb xcb-composite xcb-xfixes |
0cb34c60 | 90 | BuildRequires: libxcb-devel |
1cb405cb | 91 | BuildRequires: pango-devel >= 1:1.10 |
6c4f66d1 JB |
92 | BuildRequires: pkgconfig(cairo-xcb) |
93 | BuildRequires: xorg-lib-libXcursor-devel | |
0cb34c60 | 94 | %endif |
3adcb0b8 | 95 | %if %{with clients} |
5f05a417 | 96 | BuildRequires: OpenGL-GLU-devel |
6c4f66d1 | 97 | BuildRequires: cairo-devel >= 1.11.3 |
b1b43d2b | 98 | %if %{with glclients} |
6c4f66d1 | 99 | BuildRequires: pkgconfig(cairo-egl) >= 1.11.3 |
09c3888d | 100 | BuildRequires: pkgconfig(cairo-gl) |
3adcb0b8 | 101 | %endif |
b1b43d2b | 102 | %endif |
b38ed305 JB |
103 | Requires: %{name}-libs = %{version}-%{release} |
104 | %if %{with clients} | |
105 | Requires: cairo >= 1.11.3 | |
d9a79ece | 106 | %endif |
b38ed305 | 107 | Requires: colord-libs >= 0.1.27 |
3adcb0b8 JB |
108 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
109 | ||
110 | %description | |
111 | Weston contains a few demo application for the Wayland project. | |
112 | There's a sample compositor that can run on KMS, under X11 or under | |
113 | another Wayland compositor and there's a handful of simple clients | |
114 | that demonstrate various aspects of Wayland. | |
115 | ||
116 | %description -l pl.UTF-8 | |
117 | Weston zawiera kilka aplikacji demonstracyjnych dla projektu Wayland. | |
118 | Jest przykładowy serwer składający, który można uruchomić pod KMS, pod | |
119 | X11 lub pod innym serwerem składającym Wayland; są także proste | |
120 | programy klienckie demonstrujące różne aspekty protokołu Wayland. | |
121 | ||
5f05a417 JB |
122 | %package devel |
123 | Summary: Header files for Weston plugin development | |
124 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia wtyczek dla Westona | |
125 | Group: Development/Libraries | |
b38ed305 | 126 | Requires: %{name}-libs-devel = %{version}-%{release} |
5f05a417 JB |
127 | Requires: Mesa-libEGL-devel >= 7.10 |
128 | # GLESv2 | |
129 | Requires: Mesa-libGLES-devel | |
5f05a417 JB |
130 | |
131 | %description devel | |
132 | Header files for Weston plugin development. | |
133 | ||
134 | %description devel -l pl.UTF-8 | |
135 | Pliki nagłówkowe do tworzenia wtyczek dla Westona. | |
136 | ||
b38ed305 JB |
137 | %package libs |
138 | Summary: Weston compositor libraries | |
139 | Summary(pl.UTF-8): Biblioteki serwera składania Weston | |
140 | Group: Libraries | |
141 | Requires: wayland >= 1.12.0 | |
142 | Requires: pixman >= 0.26 | |
1cb405cb | 143 | Requires: xorg-lib-libxkbcommon >= 0.5.0 |
b38ed305 JB |
144 | # the rest is for modules: |
145 | Requires: Mesa-libEGL >= 7.10 | |
a95a80fe | 146 | %{?with_drm:Requires: Mesa-libgbm >= 17.2} |
b38ed305 JB |
147 | Requires: cairo >= 1.10.0 |
148 | Requires: dbus-libs >= 1.6 | |
a95a80fe JB |
149 | %if %{with drm} |
150 | Requires: libdrm >= 2.4.83 | |
151 | %else | |
152 | Requires: libdrm >= 2.4.68 | |
153 | %endif | |
b38ed305 JB |
154 | Requires: libinput >= 0.8.0 |
155 | %if %{with vaapi} | |
156 | Requires: libva >= 1.2.0 | |
157 | Requires: libva-drm >= 1.2.0 | |
158 | %endif | |
eab4380b | 159 | %{?with_x11:Requires: libxcb >= 1.9} |
b38ed305 JB |
160 | %{?with_drm:Requires: mtdev >= 1.1.0} |
161 | %{?with_wlaunch:Requires: systemd-libs >= 1:209} | |
162 | %{?with_drm:Requires: udev-libs >= 1:136} | |
124210ef | 163 | Requires: wayland-egl |
b38ed305 JB |
164 | |
165 | %description libs | |
166 | Weston compositor libraries. | |
167 | ||
168 | %description libs -l pl.UTF-8 | |
169 | Biblioteki serwera składania Weston. | |
170 | ||
171 | %package libs-devel | |
172 | Summary: Header files for libweston compositors development | |
173 | Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania modułów składających biblioteki libweston | |
174 | Group: Development/Libraries | |
175 | Requires: %{name}-libs = %{version}-%{release} | |
176 | Requires: pixman-devel >= 0.26 | |
177 | # wayland-server | |
178 | Requires: wayland-devel >= 1.12.0 | |
1cb405cb | 179 | Requires: xorg-lib-libxkbcommon-devel >= 0.5.0 |
b38ed305 JB |
180 | |
181 | %description libs-devel | |
182 | Header files for libweston compositors development. | |
183 | ||
184 | %description libs-devel -l pl.UTF-8 | |
185 | Pliki nagłówkowe do rozwijania modułów składających biblioteki | |
186 | libweston. | |
187 | ||
188 | %package compositor-rdp | |
189 | Summary: RDP compositor plugin for Weston | |
190 | Summary(pl.UTF-8): Wtyczka składająca RDP dla Westona | |
191 | Group: Libraries | |
192 | Requires: %{name} = %{version}-%{release} | |
d130821f | 193 | Requires: freerdp2 >= 2.0.0-0.20180809.1 |
b38ed305 JB |
194 | |
195 | %description compositor-rdp | |
196 | RDP compositor plugin for Weston. | |
197 | ||
198 | %description compositor-rdp -l pl.UTF-8 | |
199 | Wtyczka składająca RDP dla Westona. | |
200 | ||
3adcb0b8 JB |
201 | %prep |
202 | %setup -q | |
d130821f | 203 | %patch0 -p1 |
3adcb0b8 JB |
204 | |
205 | %build | |
1650f2b5 JB |
206 | %{__libtoolize} |
207 | %{__aclocal} -I m4 | |
cde5be0a | 208 | %{__autoconf} |
1650f2b5 JB |
209 | %{__autoheader} |
210 | %{__automake} | |
3adcb0b8 | 211 | %configure \ |
b38afc9e | 212 | --enable-autotools \ |
3adcb0b8 | 213 | %{!?with_clients:--disable-clients} \ |
0cb34c60 | 214 | %{!?with_drm:--disable-drm-compositor} \ |
131b29b1 | 215 | %{!?with_libunwind:--disable-libunwind} \ |
9c73a052 | 216 | %{?with_rdp:--enable-rdp-compositor} \ |
b38afc9e | 217 | %{?with_remoting:--enable-remoting} \ |
0cb34c60 | 218 | %{!?with_sclients:--disable-simple-clients} \ |
3adcb0b8 JB |
219 | --disable-setuid-install \ |
220 | --disable-silent-rules \ | |
9c73a052 | 221 | %{!?with_vaapi:--disable-vaapi-recorder} \ |
0cb34c60 JB |
222 | %{!?with_wlaunch:--disable-weston-launch} \ |
223 | %{!?with_x11:--disable-x11-compositor} \ | |
09c3888d | 224 | %{!?with_xwayland:--disable-xwayland} \ |
b1b43d2b | 225 | %{?with_glclients:--with-cairo=gl} |
3adcb0b8 JB |
226 | %{__make} |
227 | ||
228 | %install | |
229 | rm -rf $RPM_BUILD_ROOT | |
230 | ||
231 | %{__make} install \ | |
232 | DESTDIR=$RPM_BUILD_ROOT | |
233 | ||
b38ed305 | 234 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libweston-*.la |
b38afc9e | 235 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libweston-6/*.la \ |
b38ed305 | 236 | $RPM_BUILD_ROOT%{_libdir}/weston/*.la |
3adcb0b8 JB |
237 | |
238 | %clean | |
239 | rm -rf $RPM_BUILD_ROOT | |
240 | ||
b38ed305 JB |
241 | %post libs -p /sbin/ldconfig |
242 | %postun libs -p /sbin/ldconfig | |
243 | ||
3adcb0b8 JB |
244 | %files |
245 | %defattr(644,root,root,755) | |
a95a80fe | 246 | %doc COPYING README.md |
6c4f66d1 | 247 | %attr(755,root,root) %{_bindir}/wcap-decode |
3adcb0b8 JB |
248 | # composer |
249 | %attr(755,root,root) %{_bindir}/weston | |
6c4f66d1 JB |
250 | %if %{with wlaunch} |
251 | %attr(755,root,root) %{_bindir}/weston-launch | |
252 | %endif | |
3adcb0b8 | 253 | %if %{with clients} |
b38afc9e | 254 | %attr(755,root,root) %{_bindir}/weston-debug |
b1b43d2b | 255 | %attr(755,root,root) %{_bindir}/weston-info |
b38afc9e | 256 | %attr(755,root,root) %{_bindir}/weston-screenshooter |
3adcb0b8 JB |
257 | %attr(755,root,root) %{_bindir}/weston-terminal |
258 | %attr(755,root,root) %{_libexecdir}/weston-desktop-shell | |
09c3888d | 259 | %attr(755,root,root) %{_libexecdir}/weston-keyboard |
09c3888d | 260 | %attr(755,root,root) %{_libexecdir}/weston-simple-im |
b1b43d2b | 261 | %endif |
3adcb0b8 | 262 | %dir %{_libdir}/weston |
09c3888d JB |
263 | %attr(755,root,root) %{_libdir}/weston/cms-colord.so |
264 | %attr(755,root,root) %{_libdir}/weston/cms-static.so | |
3adcb0b8 | 265 | %attr(755,root,root) %{_libdir}/weston/desktop-shell.so |
d9a79ece | 266 | %attr(755,root,root) %{_libdir}/weston/fullscreen-shell.so |
326e7c83 | 267 | # ivi shell |
b1b43d2b | 268 | %if %{with clients} |
326e7c83 | 269 | %attr(755,root,root) %{_libexecdir}/weston-ivi-shell-user-interface |
b1b43d2b | 270 | %endif |
326e7c83 JB |
271 | %attr(755,root,root) %{_libdir}/weston/hmi-controller.so |
272 | %attr(755,root,root) %{_libdir}/weston/ivi-shell.so | |
3adcb0b8 | 273 | %{_datadir}/weston |
326e7c83 JB |
274 | %dir %{_datadir}/wayland-sessions |
275 | %{_datadir}/wayland-sessions/weston.desktop | |
9c19f94f | 276 | %{_mandir}/man1/weston.1* |
b38afc9e | 277 | %{_mandir}/man1/weston-debug.1* |
8228963f | 278 | %{_mandir}/man5/weston.ini.5* |
e9c620bf | 279 | %{_mandir}/man7/weston-drm.7* |
3adcb0b8 | 280 | |
09c3888d | 281 | # noinst by default - --enable-demo-clients and package in %{name}-demos? |
3adcb0b8 | 282 | # "simple clients" |
d9a79ece | 283 | #%attr(755,root,root) %{_bindir}/weston-multi-resource |
09c3888d JB |
284 | #%attr(755,root,root) %{_bindir}/weston-simple-egl |
285 | #%attr(755,root,root) %{_bindir}/weston-simple-shm | |
286 | #%attr(755,root,root) %{_bindir}/weston-simple-touch | |
3adcb0b8 | 287 | %if %{with clients} |
09c3888d JB |
288 | #%attr(755,root,root) %{_bindir}/weston-calibrator |
289 | #%attr(755,root,root) %{_bindir}/weston-clickdot | |
09c3888d JB |
290 | #%attr(755,root,root) %{_bindir}/weston-cliptest |
291 | #%attr(755,root,root) %{_bindir}/weston-dnd | |
d9a79ece JB |
292 | #%attr(755,root,root) %{_bindir}/weston-editor |
293 | #%attr(755,root,root) %{_bindir}/weston-eventdemo | |
09c3888d | 294 | #%attr(755,root,root) %{_bindir}/weston-flower |
d9a79ece | 295 | #%attr(755,root,root) %{_bindir}/weston-fullscreen |
09c3888d JB |
296 | #%attr(755,root,root) %{_bindir}/weston-image |
297 | #%attr(755,root,root) %{_bindir}/weston-resizor | |
d9a79ece | 298 | #%attr(755,root,root) %{_bindir}/weston-scaler |
09c3888d | 299 | #%attr(755,root,root) %{_bindir}/weston-smoke |
d9a79ece | 300 | #%attr(755,root,root) %{_bindir}/weston-stacking |
09c3888d | 301 | #%attr(755,root,root) %{_bindir}/weston-transformed |
b1b43d2b | 302 | %if %{with glclients} |
3adcb0b8 | 303 | # "full GL" clients |
09c3888d | 304 | #%attr(755,root,root) %{_bindir}/weston-gears |
3adcb0b8 | 305 | %endif |
b1b43d2b | 306 | %endif |
5f05a417 JB |
307 | |
308 | %files devel | |
309 | %defattr(644,root,root,755) | |
310 | %{_includedir}/weston | |
311 | %{_pkgconfigdir}/weston.pc | |
b38ed305 JB |
312 | |
313 | %files libs | |
314 | %defattr(644,root,root,755) | |
b38afc9e JB |
315 | %attr(755,root,root) %{_libdir}/libweston-6.so.*.*.* |
316 | %attr(755,root,root) %ghost %{_libdir}/libweston-6.so.0 | |
317 | %attr(755,root,root) %{_libdir}/libweston-desktop-6.so.*.*.* | |
318 | %attr(755,root,root) %ghost %{_libdir}/libweston-desktop-6.so.0 | |
319 | %dir %{_libdir}/libweston-6 | |
b38ed305 | 320 | %if %{with drm} |
b38afc9e JB |
321 | %attr(755,root,root) %{_libdir}/libweston-6/drm-backend.so |
322 | %endif | |
323 | %attr(755,root,root) %{_libdir}/libweston-6/fbdev-backend.so | |
324 | %attr(755,root,root) %{_libdir}/libweston-6/gl-renderer.so | |
325 | %attr(755,root,root) %{_libdir}/libweston-6/headless-backend.so | |
326 | %if %{with remoting} | |
327 | %attr(755,root,root) %{_libdir}/libweston-6/remoting-plugin.so | |
b38ed305 | 328 | %endif |
b38ed305 | 329 | %if %{with wayland} |
b38afc9e | 330 | %attr(755,root,root) %{_libdir}/libweston-6/wayland-backend.so |
b38ed305 JB |
331 | %endif |
332 | %if %{with x11} | |
b38afc9e | 333 | %attr(755,root,root) %{_libdir}/libweston-6/x11-backend.so |
b38ed305 JB |
334 | %endif |
335 | %if %{with xwayland} | |
b38afc9e | 336 | %attr(755,root,root) %{_libdir}/libweston-6/xwayland.so |
b38ed305 JB |
337 | %endif |
338 | ||
339 | %files libs-devel | |
340 | %defattr(644,root,root,755) | |
b38afc9e JB |
341 | %attr(755,root,root) %{_libdir}/libweston-6.so |
342 | %attr(755,root,root) %{_libdir}/libweston-desktop-6.so | |
343 | %{_includedir}/libweston-6 | |
344 | %{_pkgconfigdir}/libweston-6.pc | |
345 | %{_pkgconfigdir}/libweston-desktop-6.pc | |
346 | %{_npkgconfigdir}/libweston-6-protocols.pc | |
b38ed305 JB |
347 | |
348 | %if %{with rdp} | |
349 | %files compositor-rdp | |
350 | %defattr(644,root,root,755) | |
b38afc9e | 351 | %attr(755,root,root) %{_libdir}/libweston-6/rdp-backend.so |
eab4380b | 352 | %{_mandir}/man7/weston-rdp.7* |
b38ed305 | 353 | %endif |