]>
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 JB |
12 | %bcond_without clients # non-simple clients |
13 | %bcond_with glclients # full GL clients [require cairo-gl/cairo-egl] | |
131b29b1 JR |
14 | |
15 | %ifarch x32 | |
16 | %undefine with_libunwind | |
17 | %endif | |
18 | ||
3adcb0b8 JB |
19 | Summary: Weston - Wayland demos |
20 | Summary(pl.UTF-8): Weston - programy demonstracyjne dla protokołu Wayland | |
21 | Name: weston | |
b38ed305 | 22 | Version: 1.12.0 |
e9aed4c2 | 23 | Release: 3 |
3adcb0b8 JB |
24 | License: MIT |
25 | Group: Applications | |
bc222cc7 | 26 | Source0: https://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz |
b38ed305 JB |
27 | # Source0-md5: 310af6d7f8ba03c3418cec8ad72ea748 |
28 | Patch0: %{name}-freerdp2.patch | |
bc222cc7 | 29 | URL: https://wayland.freedesktop.org/ |
3adcb0b8 | 30 | BuildRequires: Mesa-libEGL-devel >= 7.10 |
5f05a417 | 31 | # GLESv2 |
3adcb0b8 | 32 | BuildRequires: Mesa-libGLES-devel |
0cb34c60 | 33 | # for wayland and sclients, but also desktop-shell, which is always enabled |
9c19f94f | 34 | BuildRequires: Mesa-libwayland-egl-devel >= 9.0-2 |
1650f2b5 JB |
35 | BuildRequires: autoconf >= 2.64 |
36 | BuildRequires: automake >= 1:1.11 | |
0cb34c60 | 37 | BuildRequires: cairo-devel >= 1.10.0 |
09c3888d | 38 | BuildRequires: colord-devel >= 0.1.27 |
701d5d1a | 39 | BuildRequires: dbus-devel >= 1.6 |
ff471f7a | 40 | BuildRequires: doxygen |
6b9f49b3 JB |
41 | # or freerdp >= 1.1.0 |
42 | %{?with_rdp:BuildRequires: freerdp2-devel >= 2.0} | |
09c3888d | 43 | BuildRequires: lcms2-devel >= 2 |
b1b43d2b | 44 | BuildRequires: libinput-devel >= 0.8.0 |
0cb34c60 | 45 | BuildRequires: libjpeg-devel |
3adcb0b8 | 46 | BuildRequires: libpng-devel |
1650f2b5 | 47 | BuildRequires: libtool >= 2:2.2 |
131b29b1 | 48 | %{?with_libunwind:BuildRequires: libunwind-devel} |
0cb34c60 | 49 | BuildRequires: libwebp-devel |
3b2a67c3 | 50 | BuildRequires: pixman-devel >= 0.26 |
3adcb0b8 JB |
51 | BuildRequires: pkgconfig |
52 | BuildRequires: tar >= 1:1.22 | |
0cb34c60 | 53 | # wayland-server always; wayland-client if with_wayland || with_sclients || with_clients; wayland-cursor if with_clients |
b38ed305 JB |
54 | BuildRequires: wayland-devel >= 1.12.0 |
55 | BuildRequires: wayland-protocols >= 1.7 | |
9c73a052 | 56 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.3.0 |
3adcb0b8 | 57 | BuildRequires: xz |
0cb34c60 | 58 | %if %{with drm} |
5acd8af0 | 59 | BuildRequires: Mesa-libgbm-devel >= 10.2 |
9c19f94f | 60 | BuildRequires: libdrm-devel >= 2.4.30 |
0cb34c60 | 61 | BuildRequires: mtdev-devel >= 1.1.0 |
6c4f66d1 | 62 | BuildRequires: udev-devel >= 1:136 |
0cb34c60 | 63 | %endif |
3b2a67c3 JB |
64 | %if %{with vaapi} |
65 | BuildRequires: libva-devel >= 1.2.0 | |
66 | BuildRequires: libva-drm-devel >= 1.2.0 | |
67 | # API versions | |
68 | BuildRequires: pkgconfig(libva) >= 0.34.0 | |
69 | BuildRequires: pkgconfig(libva-drm) >= 0.34.0 | |
70 | %endif | |
0cb34c60 JB |
71 | %if %{with x11} |
72 | BuildRequires: libxcb-devel | |
73 | BuildRequires: xorg-lib-libX11-devel | |
74 | %endif | |
75 | %if %{with wlaunch} | |
76 | BuildRequires: libdrm-devel | |
77 | BuildRequires: pam-devel | |
5acd8af0 | 78 | BuildRequires: systemd-devel >= 1:209 |
0cb34c60 JB |
79 | %endif |
80 | %if %{with xwayland} | |
6f48f53b | 81 | # xcb xcb-composite xcb-xfixes |
0cb34c60 | 82 | BuildRequires: libxcb-devel |
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 | |
134 | Requires: xorg-lib-libxkbcommon >= 0.3.0 | |
135 | # the rest is for modules: | |
136 | Requires: Mesa-libEGL >= 7.10 | |
137 | %{?with_drm:Requires: Mesa-libgbm >= 10.2} | |
138 | Requires: Mesa-libwayland-egl >= 9.0-2 | |
139 | Requires: cairo >= 1.10.0 | |
140 | Requires: dbus-libs >= 1.6 | |
141 | %{?with_drm:Requires: libdrm >= 2.4.30} | |
142 | Requires: libinput >= 0.8.0 | |
143 | %if %{with vaapi} | |
144 | Requires: libva >= 1.2.0 | |
145 | Requires: libva-drm >= 1.2.0 | |
146 | %endif | |
147 | %{?with_drm:Requires: mtdev >= 1.1.0} | |
148 | %{?with_wlaunch:Requires: systemd-libs >= 1:209} | |
149 | %{?with_drm:Requires: udev-libs >= 1:136} | |
150 | ||
151 | %description libs | |
152 | Weston compositor libraries. | |
153 | ||
154 | %description libs -l pl.UTF-8 | |
155 | Biblioteki serwera składania Weston. | |
156 | ||
157 | %package libs-devel | |
158 | Summary: Header files for libweston compositors development | |
159 | Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania modułów składających biblioteki libweston | |
160 | Group: Development/Libraries | |
161 | Requires: %{name}-libs = %{version}-%{release} | |
162 | Requires: pixman-devel >= 0.26 | |
163 | # wayland-server | |
164 | Requires: wayland-devel >= 1.12.0 | |
165 | Requires: xorg-lib-libxkbcommon-devel >= 0.3.0 | |
166 | ||
167 | %description libs-devel | |
168 | Header files for libweston compositors development. | |
169 | ||
170 | %description libs-devel -l pl.UTF-8 | |
171 | Pliki nagłówkowe do rozwijania modułów składających biblioteki | |
172 | libweston. | |
173 | ||
174 | %package compositor-rdp | |
175 | Summary: RDP compositor plugin for Weston | |
176 | Summary(pl.UTF-8): Wtyczka składająca RDP dla Westona | |
177 | Group: Libraries | |
178 | Requires: %{name} = %{version}-%{release} | |
179 | Requires: freerdp2 >= 2.0 | |
180 | ||
181 | %description compositor-rdp | |
182 | RDP compositor plugin for Weston. | |
183 | ||
184 | %description compositor-rdp -l pl.UTF-8 | |
185 | Wtyczka składająca RDP dla Westona. | |
186 | ||
3adcb0b8 JB |
187 | %prep |
188 | %setup -q | |
b38ed305 | 189 | %patch0 -p1 |
3adcb0b8 JB |
190 | |
191 | %build | |
1650f2b5 JB |
192 | %{__libtoolize} |
193 | %{__aclocal} -I m4 | |
cde5be0a | 194 | %{__autoconf} |
1650f2b5 JB |
195 | %{__autoheader} |
196 | %{__automake} | |
3adcb0b8 JB |
197 | %configure \ |
198 | %{!?with_clients:--disable-clients} \ | |
0cb34c60 | 199 | %{!?with_drm:--disable-drm-compositor} \ |
131b29b1 | 200 | %{!?with_libunwind:--disable-libunwind} \ |
9c73a052 | 201 | %{?with_rdp:--enable-rdp-compositor} \ |
0cb34c60 | 202 | %{!?with_sclients:--disable-simple-clients} \ |
3adcb0b8 JB |
203 | --disable-setuid-install \ |
204 | --disable-silent-rules \ | |
9c73a052 | 205 | %{!?with_vaapi:--disable-vaapi-recorder} \ |
0cb34c60 JB |
206 | %{!?with_wlaunch:--disable-weston-launch} \ |
207 | %{!?with_x11:--disable-x11-compositor} \ | |
09c3888d | 208 | %{!?with_xwayland:--disable-xwayland} \ |
b1b43d2b | 209 | %{?with_glclients:--with-cairo=gl} |
3adcb0b8 JB |
210 | %{__make} |
211 | ||
212 | %install | |
213 | rm -rf $RPM_BUILD_ROOT | |
214 | ||
215 | %{__make} install \ | |
216 | DESTDIR=$RPM_BUILD_ROOT | |
217 | ||
b38ed305 JB |
218 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libweston-*.la |
219 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libweston-1/*.la \ | |
220 | $RPM_BUILD_ROOT%{_libdir}/weston/*.la | |
3adcb0b8 JB |
221 | |
222 | %clean | |
223 | rm -rf $RPM_BUILD_ROOT | |
224 | ||
b38ed305 JB |
225 | %post libs -p /sbin/ldconfig |
226 | %postun libs -p /sbin/ldconfig | |
227 | ||
3adcb0b8 JB |
228 | %files |
229 | %defattr(644,root,root,755) | |
230 | %doc README | |
6c4f66d1 | 231 | %attr(755,root,root) %{_bindir}/wcap-decode |
3adcb0b8 JB |
232 | # composer |
233 | %attr(755,root,root) %{_bindir}/weston | |
6c4f66d1 JB |
234 | %if %{with wlaunch} |
235 | %attr(755,root,root) %{_bindir}/weston-launch | |
236 | %endif | |
3adcb0b8 | 237 | %if %{with clients} |
b1b43d2b | 238 | %attr(755,root,root) %{_bindir}/weston-info |
3adcb0b8 JB |
239 | %attr(755,root,root) %{_bindir}/weston-terminal |
240 | %attr(755,root,root) %{_libexecdir}/weston-desktop-shell | |
09c3888d | 241 | %attr(755,root,root) %{_libexecdir}/weston-keyboard |
6c4f66d1 | 242 | %attr(755,root,root) %{_libexecdir}/weston-screenshooter |
09c3888d | 243 | %attr(755,root,root) %{_libexecdir}/weston-simple-im |
b1b43d2b | 244 | %endif |
3adcb0b8 | 245 | %dir %{_libdir}/weston |
09c3888d JB |
246 | %attr(755,root,root) %{_libdir}/weston/cms-colord.so |
247 | %attr(755,root,root) %{_libdir}/weston/cms-static.so | |
3adcb0b8 | 248 | %attr(755,root,root) %{_libdir}/weston/desktop-shell.so |
d9a79ece | 249 | %attr(755,root,root) %{_libdir}/weston/fullscreen-shell.so |
326e7c83 | 250 | # ivi shell |
b1b43d2b | 251 | %if %{with clients} |
326e7c83 | 252 | %attr(755,root,root) %{_libexecdir}/weston-ivi-shell-user-interface |
b1b43d2b | 253 | %endif |
326e7c83 JB |
254 | %attr(755,root,root) %{_libdir}/weston/hmi-controller.so |
255 | %attr(755,root,root) %{_libdir}/weston/ivi-shell.so | |
3adcb0b8 | 256 | %{_datadir}/weston |
326e7c83 JB |
257 | %dir %{_datadir}/wayland-sessions |
258 | %{_datadir}/wayland-sessions/weston.desktop | |
9c19f94f | 259 | %{_mandir}/man1/weston.1* |
8228963f | 260 | %{_mandir}/man5/weston.ini.5* |
e9c620bf | 261 | %{_mandir}/man7/weston-drm.7* |
3adcb0b8 | 262 | |
09c3888d | 263 | # noinst by default - --enable-demo-clients and package in %{name}-demos? |
3adcb0b8 | 264 | # "simple clients" |
d9a79ece | 265 | #%attr(755,root,root) %{_bindir}/weston-multi-resource |
09c3888d JB |
266 | #%attr(755,root,root) %{_bindir}/weston-simple-egl |
267 | #%attr(755,root,root) %{_bindir}/weston-simple-shm | |
268 | #%attr(755,root,root) %{_bindir}/weston-simple-touch | |
3adcb0b8 | 269 | %if %{with clients} |
09c3888d JB |
270 | #%attr(755,root,root) %{_bindir}/weston-calibrator |
271 | #%attr(755,root,root) %{_bindir}/weston-clickdot | |
09c3888d JB |
272 | #%attr(755,root,root) %{_bindir}/weston-cliptest |
273 | #%attr(755,root,root) %{_bindir}/weston-dnd | |
d9a79ece JB |
274 | #%attr(755,root,root) %{_bindir}/weston-editor |
275 | #%attr(755,root,root) %{_bindir}/weston-eventdemo | |
09c3888d | 276 | #%attr(755,root,root) %{_bindir}/weston-flower |
d9a79ece | 277 | #%attr(755,root,root) %{_bindir}/weston-fullscreen |
09c3888d JB |
278 | #%attr(755,root,root) %{_bindir}/weston-image |
279 | #%attr(755,root,root) %{_bindir}/weston-resizor | |
d9a79ece | 280 | #%attr(755,root,root) %{_bindir}/weston-scaler |
09c3888d | 281 | #%attr(755,root,root) %{_bindir}/weston-smoke |
d9a79ece | 282 | #%attr(755,root,root) %{_bindir}/weston-stacking |
09c3888d | 283 | #%attr(755,root,root) %{_bindir}/weston-transformed |
b1b43d2b | 284 | %if %{with glclients} |
3adcb0b8 | 285 | # "full GL" clients |
09c3888d | 286 | #%attr(755,root,root) %{_bindir}/weston-gears |
3adcb0b8 | 287 | %endif |
b1b43d2b | 288 | %endif |
5f05a417 JB |
289 | |
290 | %files devel | |
291 | %defattr(644,root,root,755) | |
292 | %{_includedir}/weston | |
293 | %{_pkgconfigdir}/weston.pc | |
b38ed305 JB |
294 | |
295 | %files libs | |
296 | %defattr(644,root,root,755) | |
297 | %attr(755,root,root) %{_libdir}/libweston-1.so.*.*.* | |
298 | %attr(755,root,root) %ghost %{_libdir}/libweston-1.so.0 | |
299 | %attr(755,root,root) %{_libdir}/libweston-desktop-1.so.*.*.* | |
300 | %attr(755,root,root) %ghost %{_libdir}/libweston-desktop-1.so.0 | |
301 | %dir %{_libdir}/libweston-1 | |
302 | %if %{with drm} | |
303 | %attr(755,root,root) %{_libdir}/libweston-1/drm-backend.so | |
304 | %endif | |
305 | %attr(755,root,root) %{_libdir}/libweston-1/fbdev-backend.so | |
306 | %attr(755,root,root) %{_libdir}/libweston-1/gl-renderer.so | |
307 | %attr(755,root,root) %{_libdir}/libweston-1/headless-backend.so | |
308 | %if %{with wayland} | |
309 | %attr(755,root,root) %{_libdir}/libweston-1/wayland-backend.so | |
310 | %endif | |
311 | %if %{with x11} | |
312 | %attr(755,root,root) %{_libdir}/libweston-1/x11-backend.so | |
313 | %endif | |
314 | %if %{with xwayland} | |
315 | %attr(755,root,root) %{_libdir}/libweston-1/xwayland.so | |
316 | %endif | |
317 | ||
318 | %files libs-devel | |
319 | %defattr(644,root,root,755) | |
320 | %attr(755,root,root) %{_libdir}/libweston-1.so | |
321 | %attr(755,root,root) %{_libdir}/libweston-desktop-1.so | |
322 | %{_includedir}/libweston-1 | |
323 | %{_pkgconfigdir}/libweston-1.pc | |
324 | %{_pkgconfigdir}/libweston-desktop-1.pc | |
325 | ||
326 | %if %{with rdp} | |
327 | %files compositor-rdp | |
328 | %defattr(644,root,root,755) | |
329 | %attr(755,root,root) %{_libdir}/libweston-1/rdp-backend.so | |
330 | %endif |