]>
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 | |
d9a79ece | 7 | %bcond_without libinput # libinput backend |
131b29b1 | 8 | %bcond_without libunwind # libunwind usage for backtraces |
9c73a052 | 9 | %bcond_without vaapi # vaapi recorder |
0cb34c60 JB |
10 | %bcond_without wlaunch # weston launch |
11 | %bcond_without xwayland # X server launcher | |
12 | %bcond_without sclients # simple clients | |
d3ea7117 | 13 | %bcond_with clients # non-simple + 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 | |
ff471f7a | 22 | Version: 1.11.0 |
d3ea7117 | 23 | Release: 2 |
3adcb0b8 JB |
24 | License: MIT |
25 | Group: Applications | |
bc222cc7 | 26 | Source0: https://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz |
ff471f7a | 27 | # Source0-md5: bc6f90a2039163804aecfa663b69c4c2 |
bc222cc7 | 28 | URL: https://wayland.freedesktop.org/ |
3adcb0b8 | 29 | BuildRequires: Mesa-libEGL-devel >= 7.10 |
5f05a417 | 30 | # GLESv2 |
3adcb0b8 | 31 | BuildRequires: Mesa-libGLES-devel |
0cb34c60 | 32 | # for wayland and sclients, but also desktop-shell, which is always enabled |
9c19f94f | 33 | BuildRequires: Mesa-libwayland-egl-devel >= 9.0-2 |
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 |
6b9f49b3 JB |
40 | # or freerdp >= 1.1.0 |
41 | %{?with_rdp:BuildRequires: freerdp2-devel >= 2.0} | |
09c3888d | 42 | BuildRequires: lcms2-devel >= 2 |
326e7c83 | 43 | %{?with_libinput:BuildRequires: libinput-devel >= 0.8.0} |
0cb34c60 | 44 | BuildRequires: libjpeg-devel |
3adcb0b8 | 45 | BuildRequires: libpng-devel |
1650f2b5 | 46 | BuildRequires: libtool >= 2:2.2 |
131b29b1 | 47 | %{?with_libunwind:BuildRequires: libunwind-devel} |
0cb34c60 | 48 | BuildRequires: libwebp-devel |
3b2a67c3 | 49 | BuildRequires: pixman-devel >= 0.26 |
3adcb0b8 JB |
50 | BuildRequires: pkgconfig |
51 | BuildRequires: tar >= 1:1.22 | |
0cb34c60 | 52 | # wayland-server always; wayland-client if with_wayland || with_sclients || with_clients; wayland-cursor if with_clients |
bc222cc7 | 53 | BuildRequires: wayland-devel >= 1.10.0 |
ff471f7a | 54 | BuildRequires: wayland-protocols >= 1.2 |
9c73a052 | 55 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.3.0 |
3adcb0b8 | 56 | BuildRequires: xz |
0cb34c60 | 57 | %if %{with drm} |
5acd8af0 | 58 | BuildRequires: Mesa-libgbm-devel >= 10.2 |
9c19f94f | 59 | BuildRequires: libdrm-devel >= 2.4.30 |
0cb34c60 | 60 | BuildRequires: mtdev-devel >= 1.1.0 |
6c4f66d1 | 61 | BuildRequires: udev-devel >= 1:136 |
0cb34c60 | 62 | %endif |
3b2a67c3 JB |
63 | %if %{with vaapi} |
64 | BuildRequires: libva-devel >= 1.2.0 | |
65 | BuildRequires: libva-drm-devel >= 1.2.0 | |
66 | # API versions | |
67 | BuildRequires: pkgconfig(libva) >= 0.34.0 | |
68 | BuildRequires: pkgconfig(libva-drm) >= 0.34.0 | |
69 | %endif | |
0cb34c60 JB |
70 | %if %{with x11} |
71 | BuildRequires: libxcb-devel | |
72 | BuildRequires: xorg-lib-libX11-devel | |
73 | %endif | |
74 | %if %{with wlaunch} | |
75 | BuildRequires: libdrm-devel | |
76 | BuildRequires: pam-devel | |
5acd8af0 | 77 | BuildRequires: systemd-devel >= 1:209 |
0cb34c60 JB |
78 | %endif |
79 | %if %{with xwayland} | |
6f48f53b | 80 | # xcb xcb-composite xcb-xfixes |
0cb34c60 | 81 | BuildRequires: libxcb-devel |
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 |
6c4f66d1 | 88 | BuildRequires: pkgconfig(cairo-egl) >= 1.11.3 |
09c3888d | 89 | BuildRequires: pkgconfig(cairo-gl) |
3adcb0b8 | 90 | %endif |
d9a79ece | 91 | Requires: Mesa-libEGL >= 7.10 |
9c19f94f | 92 | Requires: Mesa-libwayland-egl >= 9.0-2 |
d9a79ece JB |
93 | Requires: cairo >= %{?with_clients:1.11.3}%{!?with_clients:1.10.0} |
94 | Requires: colord-libs >= 0.1.27 | |
95 | Requires: dbus-libs >= 1.6 | |
5acd8af0 | 96 | %{?with_drm:Requires: Mesa-libgbm >= 10.2} |
6b9f49b3 | 97 | %{?with_rdp:Requires: freerdp2 >= 2.0} |
d9a79ece | 98 | %{?with_drm:Requires: libdrm >= 2.4.30} |
326e7c83 | 99 | %{?with_libinput:Requires: libinput >= 0.8.0} |
d9a79ece | 100 | %if %{with vaapi} |
3b2a67c3 JB |
101 | Requires: libva >= 1.2.0 |
102 | Requires: libva-drm >= 1.2.0 | |
d9a79ece | 103 | %endif |
3b2a67c3 JB |
104 | %{?with_drm:Requires: mtdev >= 1.1.0} |
105 | Requires: pixman >= 0.26 | |
5acd8af0 | 106 | %{?with_wlaunch:Requires: systemd-libs >= 1:209} |
d9a79ece | 107 | %{?with_drm:Requires: udev-libs >= 1:136} |
bc222cc7 | 108 | Requires: wayland >= 1.10.0 |
9c73a052 | 109 | Requires: xorg-lib-libxkbcommon >= 0.3.0 |
3adcb0b8 JB |
110 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
111 | ||
112 | %description | |
113 | Weston contains a few demo application for the Wayland project. | |
114 | There's a sample compositor that can run on KMS, under X11 or under | |
115 | another Wayland compositor and there's a handful of simple clients | |
116 | that demonstrate various aspects of Wayland. | |
117 | ||
118 | %description -l pl.UTF-8 | |
119 | Weston zawiera kilka aplikacji demonstracyjnych dla projektu Wayland. | |
120 | Jest przykładowy serwer składający, który można uruchomić pod KMS, pod | |
121 | X11 lub pod innym serwerem składającym Wayland; są także proste | |
122 | programy klienckie demonstrujące różne aspekty protokołu Wayland. | |
123 | ||
5f05a417 JB |
124 | %package devel |
125 | Summary: Header files for Weston plugin development | |
126 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia wtyczek dla Westona | |
127 | Group: Development/Libraries | |
128 | Requires: Mesa-libEGL-devel >= 7.10 | |
129 | # GLESv2 | |
130 | Requires: Mesa-libGLES-devel | |
3b2a67c3 | 131 | Requires: pixman-devel >= 0.26 |
bc222cc7 | 132 | Requires: wayland-devel >= 1.10.0 |
9c73a052 | 133 | Requires: xorg-lib-libxkbcommon-devel >= 0.3.0 |
5f05a417 JB |
134 | |
135 | %description devel | |
136 | Header files for Weston plugin development. | |
137 | ||
138 | %description devel -l pl.UTF-8 | |
139 | Pliki nagłówkowe do tworzenia wtyczek dla Westona. | |
140 | ||
3adcb0b8 JB |
141 | %prep |
142 | %setup -q | |
143 | ||
144 | %build | |
1650f2b5 JB |
145 | %{__libtoolize} |
146 | %{__aclocal} -I m4 | |
cde5be0a | 147 | %{__autoconf} |
1650f2b5 JB |
148 | %{__autoheader} |
149 | %{__automake} | |
3adcb0b8 JB |
150 | %configure \ |
151 | %{!?with_clients:--disable-clients} \ | |
0cb34c60 | 152 | %{!?with_drm:--disable-drm-compositor} \ |
d9a79ece | 153 | %{?with_libinput:--enable-libinput-backend} \ |
131b29b1 | 154 | %{!?with_libunwind:--disable-libunwind} \ |
9c73a052 | 155 | %{?with_rdp:--enable-rdp-compositor} \ |
0cb34c60 | 156 | %{!?with_sclients:--disable-simple-clients} \ |
3adcb0b8 JB |
157 | --disable-setuid-install \ |
158 | --disable-silent-rules \ | |
9c73a052 | 159 | %{!?with_vaapi:--disable-vaapi-recorder} \ |
0cb34c60 JB |
160 | %{!?with_wlaunch:--disable-weston-launch} \ |
161 | %{!?with_x11:--disable-x11-compositor} \ | |
09c3888d JB |
162 | %{!?with_xwayland:--disable-xwayland} \ |
163 | %{?with_clients:--with-cairo=gl} | |
3adcb0b8 JB |
164 | %{__make} |
165 | ||
166 | %install | |
167 | rm -rf $RPM_BUILD_ROOT | |
168 | ||
169 | %{__make} install \ | |
170 | DESTDIR=$RPM_BUILD_ROOT | |
171 | ||
172 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/weston/*.la | |
173 | ||
174 | %clean | |
175 | rm -rf $RPM_BUILD_ROOT | |
176 | ||
177 | %files | |
178 | %defattr(644,root,root,755) | |
179 | %doc README | |
6c4f66d1 | 180 | %attr(755,root,root) %{_bindir}/wcap-decode |
9c19f94f | 181 | %attr(755,root,root) %{_bindir}/weston-info |
3adcb0b8 JB |
182 | # composer |
183 | %attr(755,root,root) %{_bindir}/weston | |
6c4f66d1 JB |
184 | %if %{with wlaunch} |
185 | %attr(755,root,root) %{_bindir}/weston-launch | |
186 | %endif | |
3adcb0b8 JB |
187 | %if %{with clients} |
188 | %attr(755,root,root) %{_bindir}/weston-terminal | |
189 | %attr(755,root,root) %{_libexecdir}/weston-desktop-shell | |
09c3888d | 190 | %attr(755,root,root) %{_libexecdir}/weston-keyboard |
6c4f66d1 | 191 | %attr(755,root,root) %{_libexecdir}/weston-screenshooter |
3adcb0b8 | 192 | %endif |
09c3888d | 193 | %attr(755,root,root) %{_libexecdir}/weston-simple-im |
3adcb0b8 | 194 | %dir %{_libdir}/weston |
09c3888d JB |
195 | %attr(755,root,root) %{_libdir}/weston/cms-colord.so |
196 | %attr(755,root,root) %{_libdir}/weston/cms-static.so | |
0cb34c60 | 197 | %if %{with drm} |
3adcb0b8 | 198 | %attr(755,root,root) %{_libdir}/weston/drm-backend.so |
0cb34c60 | 199 | %endif |
09c3888d | 200 | %attr(755,root,root) %{_libdir}/weston/fbdev-backend.so |
701d5d1a | 201 | %attr(755,root,root) %{_libdir}/weston/gl-renderer.so |
09c3888d | 202 | %attr(755,root,root) %{_libdir}/weston/headless-backend.so |
9c73a052 JB |
203 | %if %{with rdp} |
204 | %attr(755,root,root) %{_libdir}/weston/rdp-backend.so | |
205 | %endif | |
0cb34c60 | 206 | %if %{with wayland} |
3adcb0b8 | 207 | %attr(755,root,root) %{_libdir}/weston/wayland-backend.so |
0cb34c60 JB |
208 | %endif |
209 | %if %{with x11} | |
3adcb0b8 | 210 | %attr(755,root,root) %{_libdir}/weston/x11-backend.so |
0cb34c60 | 211 | %endif |
6c4f66d1 JB |
212 | %if %{with xwayland} |
213 | %attr(755,root,root) %{_libdir}/weston/xwayland.so | |
214 | %endif | |
3adcb0b8 | 215 | %attr(755,root,root) %{_libdir}/weston/desktop-shell.so |
d9a79ece | 216 | %attr(755,root,root) %{_libdir}/weston/fullscreen-shell.so |
326e7c83 JB |
217 | # ivi shell |
218 | %attr(755,root,root) %{_libexecdir}/weston-ivi-shell-user-interface | |
219 | %attr(755,root,root) %{_libdir}/weston/hmi-controller.so | |
220 | %attr(755,root,root) %{_libdir}/weston/ivi-shell.so | |
3adcb0b8 | 221 | %{_datadir}/weston |
326e7c83 JB |
222 | %dir %{_datadir}/wayland-sessions |
223 | %{_datadir}/wayland-sessions/weston.desktop | |
9c19f94f | 224 | %{_mandir}/man1/weston.1* |
8228963f | 225 | %{_mandir}/man5/weston.ini.5* |
e9c620bf | 226 | %{_mandir}/man7/weston-drm.7* |
3adcb0b8 | 227 | |
09c3888d | 228 | # noinst by default - --enable-demo-clients and package in %{name}-demos? |
3adcb0b8 | 229 | # "simple clients" |
d9a79ece | 230 | #%attr(755,root,root) %{_bindir}/weston-multi-resource |
09c3888d JB |
231 | #%attr(755,root,root) %{_bindir}/weston-simple-egl |
232 | #%attr(755,root,root) %{_bindir}/weston-simple-shm | |
233 | #%attr(755,root,root) %{_bindir}/weston-simple-touch | |
3adcb0b8 | 234 | %if %{with clients} |
09c3888d JB |
235 | #%attr(755,root,root) %{_bindir}/weston-calibrator |
236 | #%attr(755,root,root) %{_bindir}/weston-clickdot | |
09c3888d JB |
237 | #%attr(755,root,root) %{_bindir}/weston-cliptest |
238 | #%attr(755,root,root) %{_bindir}/weston-dnd | |
d9a79ece JB |
239 | #%attr(755,root,root) %{_bindir}/weston-editor |
240 | #%attr(755,root,root) %{_bindir}/weston-eventdemo | |
09c3888d | 241 | #%attr(755,root,root) %{_bindir}/weston-flower |
d9a79ece | 242 | #%attr(755,root,root) %{_bindir}/weston-fullscreen |
09c3888d JB |
243 | #%attr(755,root,root) %{_bindir}/weston-image |
244 | #%attr(755,root,root) %{_bindir}/weston-resizor | |
d9a79ece | 245 | #%attr(755,root,root) %{_bindir}/weston-scaler |
09c3888d | 246 | #%attr(755,root,root) %{_bindir}/weston-smoke |
d9a79ece | 247 | #%attr(755,root,root) %{_bindir}/weston-stacking |
09c3888d | 248 | #%attr(755,root,root) %{_bindir}/weston-transformed |
3adcb0b8 | 249 | # "full GL" clients |
09c3888d | 250 | #%attr(755,root,root) %{_bindir}/weston-gears |
3adcb0b8 | 251 | %endif |
5f05a417 JB |
252 | |
253 | %files devel | |
254 | %defattr(644,root,root,755) | |
255 | %{_includedir}/weston | |
256 | %{_pkgconfigdir}/weston.pc |