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