3 %bcond_without drm # DRM compositor
4 %bcond_with rdp # RDP compositor (needs freerdp 1.1.0)
5 %bcond_without wayland # wayland (nested) compositor
6 %bcond_without x11 # X11 compositor
7 %bcond_without libinput # libinput backend
8 %bcond_without vaapi # vaapi recorder
9 %bcond_without wlaunch # weston launch
10 %bcond_without xwayland # X server launcher
11 %bcond_without sclients # simple clients
12 %bcond_without clients # non-simple + full GL clients
14 Summary: Weston - Wayland demos
15 Summary(pl.UTF-8): Weston - programy demonstracyjne dla protokołu Wayland
21 Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
22 # Source0-md5: 08e857668621c930cab239d11c12cf47
23 Patch0: libinput-0.9.patch
24 URL: http://wayland.freedesktop.org/
25 BuildRequires: Mesa-libEGL-devel >= 7.10
27 BuildRequires: Mesa-libGLES-devel
28 # for wayland and sclients, but also desktop-shell, which is always enabled
29 BuildRequires: Mesa-libwayland-egl-devel >= 9.0-2
30 BuildRequires: cairo-devel >= 1.10.0
31 BuildRequires: colord-devel >= 0.1.27
32 BuildRequires: dbus-devel >= 1.6
33 %{?with_rdp:BuildRequires: freerdp-devel >= 1.1.0}
34 BuildRequires: lcms2-devel >= 2
35 %{?with_libinput:BuildRequires: libinput-devel >= 0.6.0}
36 BuildRequires: libjpeg-devel
37 BuildRequires: libpng-devel
38 BuildRequires: libunwind-devel
39 BuildRequires: libwebp-devel
40 BuildRequires: pixman-devel >= 0.26
41 BuildRequires: pkgconfig
42 BuildRequires: tar >= 1:1.22
43 # wayland-server always; wayland-client if with_wayland || with_sclients || with_clients; wayland-cursor if with_clients
44 BuildRequires: wayland-devel >= 1.6.0
45 BuildRequires: xorg-lib-libxkbcommon-devel >= 0.3.0
48 BuildRequires: Mesa-libgbm-devel
49 BuildRequires: libdrm-devel >= 2.4.30
50 BuildRequires: mtdev-devel >= 1.1.0
51 BuildRequires: udev-devel >= 1:136
54 BuildRequires: libva-devel >= 1.2.0
55 BuildRequires: libva-drm-devel >= 1.2.0
57 BuildRequires: pkgconfig(libva) >= 0.34.0
58 BuildRequires: pkgconfig(libva-drm) >= 0.34.0
61 BuildRequires: libxcb-devel
62 BuildRequires: xorg-lib-libX11-devel
65 BuildRequires: libdrm-devel
66 BuildRequires: pam-devel
67 # TODO: bump to 1:209 (required at runtime when built with such version)
68 BuildRequires: systemd-devel >= 1:198
71 BuildRequires: libxcb-devel
72 BuildRequires: pkgconfig(cairo-xcb)
73 BuildRequires: xorg-lib-libXcursor-devel
76 BuildRequires: OpenGL-GLU-devel
77 BuildRequires: cairo-devel >= 1.11.3
78 BuildRequires: pkgconfig(cairo-egl) >= 1.11.3
79 BuildRequires: pkgconfig(cairo-gl)
81 Requires: Mesa-libEGL >= 7.10
82 Requires: Mesa-libwayland-egl >= 9.0-2
83 Requires: cairo >= %{?with_clients:1.11.3}%{!?with_clients:1.10.0}
84 Requires: colord-libs >= 0.1.27
85 Requires: dbus-libs >= 1.6
86 %{?with_rdp:Requires: freerdp >= 1.1.0}
87 %{?with_drm:Requires: libdrm >= 2.4.30}
88 %{?with_libinput:Requires: libinput >= 0.6.0}
90 Requires: libva >= 1.2.0
91 Requires: libva-drm >= 1.2.0
93 %{?with_drm:Requires: mtdev >= 1.1.0}
94 Requires: pixman >= 0.26
95 %{?with_wlaunch:Requires: systemd-libs >= 1:198}
96 %{?with_drm:Requires: udev-libs >= 1:136}
97 Requires: wayland >= 1.6.0
98 Requires: xorg-lib-libxkbcommon >= 0.3.0
99 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
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
117 Requires: Mesa-libEGL-devel >= 7.10
119 Requires: Mesa-libGLES-devel
120 Requires: pixman-devel >= 0.26
121 Requires: wayland-devel >= 1.6.0
122 Requires: xorg-lib-libxkbcommon-devel >= 0.3.0
125 Header files for Weston plugin development.
127 %description devel -l pl.UTF-8
128 Pliki nagłówkowe do tworzenia wtyczek dla Westona.
136 %{!?with_clients:--disable-clients} \
137 %{!?with_drm:--disable-drm-compositor} \
138 %{?with_libinput:--enable-libinput-backend} \
139 %{?with_rdp:--enable-rdp-compositor} \
140 %{!?with_sclients:--disable-simple-clients} \
141 --disable-setuid-install \
142 --disable-silent-rules \
143 %{!?with_vaapi:--disable-vaapi-recorder} \
144 %{!?with_wlaunch:--disable-weston-launch} \
145 %{!?with_x11:--disable-x11-compositor} \
146 %{!?with_xwayland:--disable-xwayland} \
147 %{?with_clients:--with-cairo=gl}
151 rm -rf $RPM_BUILD_ROOT
154 DESTDIR=$RPM_BUILD_ROOT
156 %{__rm} $RPM_BUILD_ROOT%{_libdir}/weston/*.la
159 rm -rf $RPM_BUILD_ROOT
162 %defattr(644,root,root,755)
164 %attr(755,root,root) %{_bindir}/wcap-decode
165 %attr(755,root,root) %{_bindir}/weston-info
167 %attr(755,root,root) %{_bindir}/weston
169 %attr(755,root,root) %{_bindir}/weston-launch
172 %attr(755,root,root) %{_bindir}/weston-terminal
173 %attr(755,root,root) %{_libexecdir}/weston-desktop-shell
174 %attr(755,root,root) %{_libexecdir}/weston-keyboard
175 %attr(755,root,root) %{_libexecdir}/weston-screensaver
176 %attr(755,root,root) %{_libexecdir}/weston-screenshooter
178 %attr(755,root,root) %{_libexecdir}/weston-simple-im
179 %dir %{_libdir}/weston
180 %attr(755,root,root) %{_libdir}/weston/cms-colord.so
181 %attr(755,root,root) %{_libdir}/weston/cms-static.so
183 %attr(755,root,root) %{_libdir}/weston/drm-backend.so
185 %attr(755,root,root) %{_libdir}/weston/fbdev-backend.so
186 %attr(755,root,root) %{_libdir}/weston/gl-renderer.so
187 %attr(755,root,root) %{_libdir}/weston/headless-backend.so
189 %attr(755,root,root) %{_libdir}/weston/rdp-backend.so
192 %attr(755,root,root) %{_libdir}/weston/wayland-backend.so
195 %attr(755,root,root) %{_libdir}/weston/x11-backend.so
198 %attr(755,root,root) %{_libdir}/weston/xwayland.so
200 %attr(755,root,root) %{_libdir}/weston/desktop-shell.so
201 %attr(755,root,root) %{_libdir}/weston/fullscreen-shell.so
203 %{_mandir}/man1/weston.1*
204 %{_mandir}/man5/weston.ini.5*
205 %{_mandir}/man7/weston-drm.7*
207 # noinst by default - --enable-demo-clients and package in %{name}-demos?
209 #%attr(755,root,root) %{_bindir}/weston-multi-resource
210 #%attr(755,root,root) %{_bindir}/weston-simple-egl
211 #%attr(755,root,root) %{_bindir}/weston-simple-shm
212 #%attr(755,root,root) %{_bindir}/weston-simple-touch
214 #%attr(755,root,root) %{_bindir}/weston-calibrator
215 #%attr(755,root,root) %{_bindir}/weston-clickdot
216 #%attr(755,root,root) %{_bindir}/weston-cliptest
217 #%attr(755,root,root) %{_bindir}/weston-dnd
218 #%attr(755,root,root) %{_bindir}/weston-editor
219 #%attr(755,root,root) %{_bindir}/weston-eventdemo
220 #%attr(755,root,root) %{_bindir}/weston-flower
221 #%attr(755,root,root) %{_bindir}/weston-fullscreen
222 #%attr(755,root,root) %{_bindir}/weston-image
223 #%attr(755,root,root) %{_bindir}/weston-resizor
224 #%attr(755,root,root) %{_bindir}/weston-scaler
225 #%attr(755,root,root) %{_bindir}/weston-smoke
226 #%attr(755,root,root) %{_bindir}/weston-stacking
227 #%attr(755,root,root) %{_bindir}/weston-transformed
229 #%attr(755,root,root) %{_bindir}/weston-gears
233 %defattr(644,root,root,755)
234 %{_includedir}/weston
235 %{_pkgconfigdir}/weston.pc