]>
Commit | Line | Data |
---|---|---|
3adcb0b8 JB |
1 | # |
2 | # Conditional build: | |
0cb34c60 | 3 | %bcond_without drm # DRM compositor |
9c73a052 | 4 | %bcond_with rdp # RDP compositor (needs 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 |
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 | |
6c4f66d1 | 12 | %bcond_without clients # non-simple + full GL clients |
3adcb0b8 JB |
13 | # |
14 | Summary: Weston - Wayland demos | |
15 | Summary(pl.UTF-8): Weston - programy demonstracyjne dla protokołu Wayland | |
16 | Name: weston | |
24125a2a JR |
17 | Version: 1.6.1 |
18 | Release: 1 | |
3adcb0b8 JB |
19 | License: MIT |
20 | Group: Applications | |
21 | Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz | |
24125a2a | 22 | # Source0-md5: 08e857668621c930cab239d11c12cf47 |
b589b4b4 | 23 | Patch0: libinput-0.9.patch |
3adcb0b8 JB |
24 | URL: http://wayland.freedesktop.org/ |
25 | BuildRequires: Mesa-libEGL-devel >= 7.10 | |
5f05a417 | 26 | # GLESv2 |
3adcb0b8 | 27 | BuildRequires: Mesa-libGLES-devel |
0cb34c60 | 28 | # for wayland and sclients, but also desktop-shell, which is always enabled |
9c19f94f | 29 | BuildRequires: Mesa-libwayland-egl-devel >= 9.0-2 |
0cb34c60 | 30 | BuildRequires: cairo-devel >= 1.10.0 |
09c3888d | 31 | BuildRequires: colord-devel >= 0.1.27 |
701d5d1a | 32 | BuildRequires: dbus-devel >= 1.6 |
9c73a052 | 33 | %{?with_rdp:BuildRequires: freerdp-devel >= 1.1.0} |
09c3888d | 34 | BuildRequires: lcms2-devel >= 2 |
3b2a67c3 | 35 | %{?with_libinput:BuildRequires: libinput-devel >= 0.6.0} |
0cb34c60 | 36 | BuildRequires: libjpeg-devel |
3adcb0b8 | 37 | BuildRequires: libpng-devel |
3b2a67c3 | 38 | BuildRequires: libunwind-devel |
0cb34c60 | 39 | BuildRequires: libwebp-devel |
3b2a67c3 | 40 | BuildRequires: pixman-devel >= 0.26 |
3adcb0b8 JB |
41 | BuildRequires: pkgconfig |
42 | BuildRequires: tar >= 1:1.22 | |
0cb34c60 | 43 | # wayland-server always; wayland-client if with_wayland || with_sclients || with_clients; wayland-cursor if with_clients |
3b2a67c3 | 44 | BuildRequires: wayland-devel >= 1.6.0 |
9c73a052 | 45 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.3.0 |
3adcb0b8 | 46 | BuildRequires: xz |
0cb34c60 JB |
47 | %if %{with drm} |
48 | BuildRequires: Mesa-libgbm-devel | |
9c19f94f | 49 | BuildRequires: libdrm-devel >= 2.4.30 |
0cb34c60 | 50 | BuildRequires: mtdev-devel >= 1.1.0 |
6c4f66d1 | 51 | BuildRequires: udev-devel >= 1:136 |
0cb34c60 | 52 | %endif |
3b2a67c3 JB |
53 | %if %{with vaapi} |
54 | BuildRequires: libva-devel >= 1.2.0 | |
55 | BuildRequires: libva-drm-devel >= 1.2.0 | |
56 | # API versions | |
57 | BuildRequires: pkgconfig(libva) >= 0.34.0 | |
58 | BuildRequires: pkgconfig(libva-drm) >= 0.34.0 | |
59 | %endif | |
0cb34c60 JB |
60 | %if %{with x11} |
61 | BuildRequires: libxcb-devel | |
62 | BuildRequires: xorg-lib-libX11-devel | |
63 | %endif | |
64 | %if %{with wlaunch} | |
65 | BuildRequires: libdrm-devel | |
66 | BuildRequires: pam-devel | |
b754956f JB |
67 | # TODO: bump to 1:209 (required at runtime when built with such version) |
68 | BuildRequires: systemd-devel >= 1:198 | |
0cb34c60 JB |
69 | %endif |
70 | %if %{with xwayland} | |
71 | BuildRequires: libxcb-devel | |
6c4f66d1 JB |
72 | BuildRequires: pkgconfig(cairo-xcb) |
73 | BuildRequires: xorg-lib-libXcursor-devel | |
0cb34c60 | 74 | %endif |
3adcb0b8 | 75 | %if %{with clients} |
5f05a417 | 76 | BuildRequires: OpenGL-GLU-devel |
6c4f66d1 | 77 | BuildRequires: cairo-devel >= 1.11.3 |
6c4f66d1 | 78 | BuildRequires: pkgconfig(cairo-egl) >= 1.11.3 |
09c3888d | 79 | BuildRequires: pkgconfig(cairo-gl) |
3adcb0b8 | 80 | %endif |
d9a79ece | 81 | Requires: Mesa-libEGL >= 7.10 |
9c19f94f | 82 | Requires: Mesa-libwayland-egl >= 9.0-2 |
d9a79ece JB |
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} | |
3b2a67c3 | 88 | %{?with_libinput:Requires: libinput >= 0.6.0} |
d9a79ece | 89 | %if %{with vaapi} |
3b2a67c3 JB |
90 | Requires: libva >= 1.2.0 |
91 | Requires: libva-drm >= 1.2.0 | |
d9a79ece | 92 | %endif |
3b2a67c3 JB |
93 | %{?with_drm:Requires: mtdev >= 1.1.0} |
94 | Requires: pixman >= 0.26 | |
b754956f | 95 | %{?with_wlaunch:Requires: systemd-libs >= 1:198} |
d9a79ece | 96 | %{?with_drm:Requires: udev-libs >= 1:136} |
3b2a67c3 | 97 | Requires: wayland >= 1.6.0 |
9c73a052 | 98 | Requires: xorg-lib-libxkbcommon >= 0.3.0 |
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 | |
117 | Requires: Mesa-libEGL-devel >= 7.10 | |
118 | # GLESv2 | |
119 | Requires: Mesa-libGLES-devel | |
3b2a67c3 JB |
120 | Requires: pixman-devel >= 0.26 |
121 | Requires: wayland-devel >= 1.6.0 | |
9c73a052 | 122 | Requires: xorg-lib-libxkbcommon-devel >= 0.3.0 |
5f05a417 JB |
123 | |
124 | %description devel | |
125 | Header files for Weston plugin development. | |
126 | ||
127 | %description devel -l pl.UTF-8 | |
128 | Pliki nagłówkowe do tworzenia wtyczek dla Westona. | |
129 | ||
3adcb0b8 JB |
130 | %prep |
131 | %setup -q | |
b589b4b4 | 132 | %patch0 -p1 |
3adcb0b8 JB |
133 | |
134 | %build | |
cde5be0a | 135 | %{__autoconf} |
3adcb0b8 JB |
136 | %configure \ |
137 | %{!?with_clients:--disable-clients} \ | |
0cb34c60 | 138 | %{!?with_drm:--disable-drm-compositor} \ |
d9a79ece | 139 | %{?with_libinput:--enable-libinput-backend} \ |
9c73a052 | 140 | %{?with_rdp:--enable-rdp-compositor} \ |
0cb34c60 | 141 | %{!?with_sclients:--disable-simple-clients} \ |
3adcb0b8 JB |
142 | --disable-setuid-install \ |
143 | --disable-silent-rules \ | |
9c73a052 | 144 | %{!?with_vaapi:--disable-vaapi-recorder} \ |
0cb34c60 JB |
145 | %{!?with_wlaunch:--disable-weston-launch} \ |
146 | %{!?with_x11:--disable-x11-compositor} \ | |
09c3888d JB |
147 | %{!?with_xwayland:--disable-xwayland} \ |
148 | %{?with_clients:--with-cairo=gl} | |
3adcb0b8 JB |
149 | %{__make} |
150 | ||
151 | %install | |
152 | rm -rf $RPM_BUILD_ROOT | |
153 | ||
154 | %{__make} install \ | |
155 | DESTDIR=$RPM_BUILD_ROOT | |
156 | ||
157 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/weston/*.la | |
158 | ||
159 | %clean | |
160 | rm -rf $RPM_BUILD_ROOT | |
161 | ||
162 | %files | |
163 | %defattr(644,root,root,755) | |
164 | %doc README | |
6c4f66d1 | 165 | %attr(755,root,root) %{_bindir}/wcap-decode |
9c19f94f | 166 | %attr(755,root,root) %{_bindir}/weston-info |
3adcb0b8 JB |
167 | # composer |
168 | %attr(755,root,root) %{_bindir}/weston | |
6c4f66d1 JB |
169 | %if %{with wlaunch} |
170 | %attr(755,root,root) %{_bindir}/weston-launch | |
171 | %endif | |
3adcb0b8 JB |
172 | %if %{with clients} |
173 | %attr(755,root,root) %{_bindir}/weston-terminal | |
174 | %attr(755,root,root) %{_libexecdir}/weston-desktop-shell | |
09c3888d | 175 | %attr(755,root,root) %{_libexecdir}/weston-keyboard |
6c4f66d1 JB |
176 | %attr(755,root,root) %{_libexecdir}/weston-screensaver |
177 | %attr(755,root,root) %{_libexecdir}/weston-screenshooter | |
3adcb0b8 | 178 | %endif |
09c3888d | 179 | %attr(755,root,root) %{_libexecdir}/weston-simple-im |
3adcb0b8 | 180 | %dir %{_libdir}/weston |
09c3888d JB |
181 | %attr(755,root,root) %{_libdir}/weston/cms-colord.so |
182 | %attr(755,root,root) %{_libdir}/weston/cms-static.so | |
0cb34c60 | 183 | %if %{with drm} |
3adcb0b8 | 184 | %attr(755,root,root) %{_libdir}/weston/drm-backend.so |
0cb34c60 | 185 | %endif |
09c3888d | 186 | %attr(755,root,root) %{_libdir}/weston/fbdev-backend.so |
701d5d1a | 187 | %attr(755,root,root) %{_libdir}/weston/gl-renderer.so |
09c3888d | 188 | %attr(755,root,root) %{_libdir}/weston/headless-backend.so |
9c73a052 JB |
189 | %if %{with rdp} |
190 | %attr(755,root,root) %{_libdir}/weston/rdp-backend.so | |
191 | %endif | |
0cb34c60 | 192 | %if %{with wayland} |
3adcb0b8 | 193 | %attr(755,root,root) %{_libdir}/weston/wayland-backend.so |
0cb34c60 JB |
194 | %endif |
195 | %if %{with x11} | |
3adcb0b8 | 196 | %attr(755,root,root) %{_libdir}/weston/x11-backend.so |
0cb34c60 | 197 | %endif |
6c4f66d1 JB |
198 | %if %{with xwayland} |
199 | %attr(755,root,root) %{_libdir}/weston/xwayland.so | |
200 | %endif | |
3adcb0b8 | 201 | %attr(755,root,root) %{_libdir}/weston/desktop-shell.so |
d9a79ece | 202 | %attr(755,root,root) %{_libdir}/weston/fullscreen-shell.so |
3adcb0b8 | 203 | %{_datadir}/weston |
9c19f94f | 204 | %{_mandir}/man1/weston.1* |
8228963f | 205 | %{_mandir}/man5/weston.ini.5* |
e9c620bf | 206 | %{_mandir}/man7/weston-drm.7* |
3adcb0b8 | 207 | |
09c3888d | 208 | # noinst by default - --enable-demo-clients and package in %{name}-demos? |
3adcb0b8 | 209 | # "simple clients" |
d9a79ece | 210 | #%attr(755,root,root) %{_bindir}/weston-multi-resource |
09c3888d JB |
211 | #%attr(755,root,root) %{_bindir}/weston-simple-egl |
212 | #%attr(755,root,root) %{_bindir}/weston-simple-shm | |
213 | #%attr(755,root,root) %{_bindir}/weston-simple-touch | |
3adcb0b8 | 214 | %if %{with clients} |
09c3888d JB |
215 | #%attr(755,root,root) %{_bindir}/weston-calibrator |
216 | #%attr(755,root,root) %{_bindir}/weston-clickdot | |
09c3888d JB |
217 | #%attr(755,root,root) %{_bindir}/weston-cliptest |
218 | #%attr(755,root,root) %{_bindir}/weston-dnd | |
d9a79ece JB |
219 | #%attr(755,root,root) %{_bindir}/weston-editor |
220 | #%attr(755,root,root) %{_bindir}/weston-eventdemo | |
09c3888d | 221 | #%attr(755,root,root) %{_bindir}/weston-flower |
d9a79ece | 222 | #%attr(755,root,root) %{_bindir}/weston-fullscreen |
09c3888d JB |
223 | #%attr(755,root,root) %{_bindir}/weston-image |
224 | #%attr(755,root,root) %{_bindir}/weston-resizor | |
d9a79ece | 225 | #%attr(755,root,root) %{_bindir}/weston-scaler |
09c3888d | 226 | #%attr(755,root,root) %{_bindir}/weston-smoke |
d9a79ece | 227 | #%attr(755,root,root) %{_bindir}/weston-stacking |
09c3888d | 228 | #%attr(755,root,root) %{_bindir}/weston-transformed |
3adcb0b8 | 229 | # "full GL" clients |
09c3888d | 230 | #%attr(755,root,root) %{_bindir}/weston-gears |
3adcb0b8 | 231 | %endif |
5f05a417 JB |
232 | |
233 | %files devel | |
234 | %defattr(644,root,root,755) | |
235 | %{_includedir}/weston | |
236 | %{_pkgconfigdir}/weston.pc |