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