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