]>
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 | |
9c73a052 | 7 | %bcond_without vaapi # vaapi recorder |
0cb34c60 JB |
8 | %bcond_without wlaunch # weston launch |
9 | %bcond_without xwayland # X server launcher | |
10 | %bcond_without sclients # simple clients | |
6c4f66d1 | 11 | %bcond_without clients # non-simple + full GL clients |
3adcb0b8 JB |
12 | # |
13 | Summary: Weston - Wayland demos | |
14 | Summary(pl.UTF-8): Weston - programy demonstracyjne dla protokołu Wayland | |
15 | Name: weston | |
9c73a052 JB |
16 | Version: 1.3.1 |
17 | Release: 1 | |
3adcb0b8 JB |
18 | License: MIT |
19 | Group: Applications | |
20 | Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz | |
9c73a052 | 21 | # Source0-md5: ffe7c3bc0e7eb39a305cbbea8c7766f3 |
3adcb0b8 JB |
22 | URL: http://wayland.freedesktop.org/ |
23 | BuildRequires: Mesa-libEGL-devel >= 7.10 | |
5f05a417 | 24 | # GLESv2 |
3adcb0b8 | 25 | BuildRequires: Mesa-libGLES-devel |
0cb34c60 | 26 | # for wayland and sclients, but also desktop-shell, which is always enabled |
9c19f94f | 27 | BuildRequires: Mesa-libwayland-egl-devel >= 9.0-2 |
0cb34c60 | 28 | BuildRequires: cairo-devel >= 1.10.0 |
09c3888d | 29 | BuildRequires: colord-devel >= 0.1.27 |
9c73a052 | 30 | %{?with_rdp:BuildRequires: freerdp-devel >= 1.1.0} |
09c3888d | 31 | BuildRequires: lcms2-devel >= 2 |
0cb34c60 | 32 | BuildRequires: libjpeg-devel |
3adcb0b8 | 33 | BuildRequires: libpng-devel |
9c73a052 JB |
34 | %if %{with vaapi} |
35 | BuildRequires: libva-devel >= 0.34.0 | |
36 | BuildRequires: libva-drm-devel >= 0.34.0 | |
37 | %endif | |
0cb34c60 | 38 | BuildRequires: libwebp-devel |
3adcb0b8 JB |
39 | BuildRequires: pixman-devel |
40 | BuildRequires: pkgconfig | |
41 | BuildRequires: tar >= 1:1.22 | |
0cb34c60 | 42 | # wayland-server always; wayland-client if with_wayland || with_sclients || with_clients; wayland-cursor if with_clients |
9c73a052 JB |
43 | BuildRequires: wayland-devel >= 1.3.0 |
44 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.3.0 | |
3adcb0b8 | 45 | BuildRequires: xz |
0cb34c60 JB |
46 | %if %{with drm} |
47 | BuildRequires: Mesa-libgbm-devel | |
9c19f94f | 48 | BuildRequires: libdrm-devel >= 2.4.30 |
0cb34c60 | 49 | BuildRequires: mtdev-devel >= 1.1.0 |
6c4f66d1 | 50 | BuildRequires: udev-devel >= 1:136 |
0cb34c60 | 51 | %endif |
0cb34c60 JB |
52 | %if %{with x11} |
53 | BuildRequires: libxcb-devel | |
54 | BuildRequires: xorg-lib-libX11-devel | |
55 | %endif | |
56 | %if %{with wlaunch} | |
57 | BuildRequires: libdrm-devel | |
58 | BuildRequires: pam-devel | |
59 | BuildRequires: systemd-devel | |
60 | %endif | |
61 | %if %{with xwayland} | |
62 | BuildRequires: libxcb-devel | |
6c4f66d1 JB |
63 | BuildRequires: pkgconfig(cairo-xcb) |
64 | BuildRequires: xorg-lib-libXcursor-devel | |
0cb34c60 | 65 | %endif |
3adcb0b8 | 66 | %if %{with clients} |
5f05a417 | 67 | BuildRequires: OpenGL-GLU-devel |
6c4f66d1 | 68 | BuildRequires: cairo-devel >= 1.11.3 |
3adcb0b8 JB |
69 | BuildRequires: gdk-pixbuf2-devel >= 2.0 |
70 | BuildRequires: glib2-devel >= 2.0 | |
6c4f66d1 | 71 | BuildRequires: pkgconfig(cairo-egl) >= 1.11.3 |
09c3888d | 72 | BuildRequires: pkgconfig(cairo-gl) |
3adcb0b8 | 73 | BuildRequires: poppler-glib-devel |
3adcb0b8 | 74 | %endif |
9c19f94f | 75 | Requires: Mesa-libwayland-egl >= 9.0-2 |
9c73a052 JB |
76 | Requires: wayland >= 1.3.0 |
77 | Requires: xorg-lib-libxkbcommon >= 0.3.0 | |
3adcb0b8 JB |
78 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
79 | ||
80 | %description | |
81 | Weston contains a few demo application for the Wayland project. | |
82 | There's a sample compositor that can run on KMS, under X11 or under | |
83 | another Wayland compositor and there's a handful of simple clients | |
84 | that demonstrate various aspects of Wayland. | |
85 | ||
86 | %description -l pl.UTF-8 | |
87 | Weston zawiera kilka aplikacji demonstracyjnych dla projektu Wayland. | |
88 | Jest przykładowy serwer składający, który można uruchomić pod KMS, pod | |
89 | X11 lub pod innym serwerem składającym Wayland; są także proste | |
90 | programy klienckie demonstrujące różne aspekty protokołu Wayland. | |
91 | ||
5f05a417 JB |
92 | %package devel |
93 | Summary: Header files for Weston plugin development | |
94 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia wtyczek dla Westona | |
95 | Group: Development/Libraries | |
96 | Requires: Mesa-libEGL-devel >= 7.10 | |
97 | # GLESv2 | |
98 | Requires: Mesa-libGLES-devel | |
99 | Requires: pixman-devel | |
9c73a052 JB |
100 | Requires: wayland-devel >= 1.3.0 |
101 | Requires: xorg-lib-libxkbcommon-devel >= 0.3.0 | |
5f05a417 JB |
102 | |
103 | %description devel | |
104 | Header files for Weston plugin development. | |
105 | ||
106 | %description devel -l pl.UTF-8 | |
107 | Pliki nagłówkowe do tworzenia wtyczek dla Westona. | |
108 | ||
3adcb0b8 JB |
109 | %prep |
110 | %setup -q | |
111 | ||
112 | %build | |
113 | %configure \ | |
114 | %{!?with_clients:--disable-clients} \ | |
0cb34c60 | 115 | %{!?with_drm:--disable-drm-compositor} \ |
9c73a052 | 116 | %{?with_rdp:--enable-rdp-compositor} \ |
0cb34c60 | 117 | %{!?with_sclients:--disable-simple-clients} \ |
3adcb0b8 JB |
118 | --disable-setuid-install \ |
119 | --disable-silent-rules \ | |
0cb34c60 | 120 | %{!?with_static_libs:--disable-static} \ |
9c73a052 | 121 | %{!?with_vaapi:--disable-vaapi-recorder} \ |
0cb34c60 JB |
122 | %{!?with_wlaunch:--disable-weston-launch} \ |
123 | %{!?with_x11:--disable-x11-compositor} \ | |
09c3888d JB |
124 | %{!?with_xwayland:--disable-xwayland} \ |
125 | %{?with_clients:--with-cairo=gl} | |
3adcb0b8 JB |
126 | %{__make} |
127 | ||
128 | %install | |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
131 | %{__make} install \ | |
132 | DESTDIR=$RPM_BUILD_ROOT | |
133 | ||
134 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/weston/*.la | |
135 | ||
136 | %clean | |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
139 | %files | |
140 | %defattr(644,root,root,755) | |
141 | %doc README | |
6c4f66d1 | 142 | %attr(755,root,root) %{_bindir}/wcap-decode |
9c19f94f | 143 | %attr(755,root,root) %{_bindir}/weston-info |
3adcb0b8 JB |
144 | # composer |
145 | %attr(755,root,root) %{_bindir}/weston | |
6c4f66d1 JB |
146 | %if %{with wlaunch} |
147 | %attr(755,root,root) %{_bindir}/weston-launch | |
148 | %endif | |
3adcb0b8 JB |
149 | %if %{with clients} |
150 | %attr(755,root,root) %{_bindir}/weston-terminal | |
151 | %attr(755,root,root) %{_libexecdir}/weston-desktop-shell | |
09c3888d | 152 | %attr(755,root,root) %{_libexecdir}/weston-keyboard |
6c4f66d1 JB |
153 | %attr(755,root,root) %{_libexecdir}/weston-screensaver |
154 | %attr(755,root,root) %{_libexecdir}/weston-screenshooter | |
3adcb0b8 JB |
155 | %attr(755,root,root) %{_libexecdir}/weston-tablet-shell |
156 | %endif | |
09c3888d | 157 | %attr(755,root,root) %{_libexecdir}/weston-simple-im |
3adcb0b8 | 158 | %dir %{_libdir}/weston |
09c3888d JB |
159 | %attr(755,root,root) %{_libdir}/weston/cms-colord.so |
160 | %attr(755,root,root) %{_libdir}/weston/cms-static.so | |
0cb34c60 | 161 | %if %{with drm} |
3adcb0b8 | 162 | %attr(755,root,root) %{_libdir}/weston/drm-backend.so |
0cb34c60 | 163 | %endif |
09c3888d JB |
164 | %attr(755,root,root) %{_libdir}/weston/fbdev-backend.so |
165 | %attr(755,root,root) %{_libdir}/weston/headless-backend.so | |
9c73a052 JB |
166 | %if %{with rdp} |
167 | %attr(755,root,root) %{_libdir}/weston/rdp-backend.so | |
168 | %endif | |
0cb34c60 | 169 | %if %{with wayland} |
3adcb0b8 | 170 | %attr(755,root,root) %{_libdir}/weston/wayland-backend.so |
0cb34c60 JB |
171 | %endif |
172 | %if %{with x11} | |
3adcb0b8 | 173 | %attr(755,root,root) %{_libdir}/weston/x11-backend.so |
0cb34c60 | 174 | %endif |
6c4f66d1 JB |
175 | %if %{with xwayland} |
176 | %attr(755,root,root) %{_libdir}/weston/xwayland.so | |
177 | %endif | |
3adcb0b8 JB |
178 | %attr(755,root,root) %{_libdir}/weston/desktop-shell.so |
179 | %attr(755,root,root) %{_libdir}/weston/tablet-shell.so | |
180 | %{_datadir}/weston | |
9c19f94f | 181 | %{_mandir}/man1/weston.1* |
8228963f | 182 | %{_mandir}/man5/weston.ini.5* |
e9c620bf | 183 | %{_mandir}/man7/weston-drm.7* |
3adcb0b8 | 184 | |
09c3888d | 185 | # noinst by default - --enable-demo-clients and package in %{name}-demos? |
3adcb0b8 | 186 | # "simple clients" |
09c3888d JB |
187 | #%attr(755,root,root) %{_bindir}/weston-simple-egl |
188 | #%attr(755,root,root) %{_bindir}/weston-simple-shm | |
189 | #%attr(755,root,root) %{_bindir}/weston-simple-touch | |
3adcb0b8 | 190 | %if %{with clients} |
09c3888d JB |
191 | #%attr(755,root,root) %{_bindir}/weston-calibrator |
192 | #%attr(755,root,root) %{_bindir}/weston-clickdot | |
193 | #%attr(755,root,root) %{_bindir}/weston-editor | |
194 | #%attr(755,root,root) %{_bindir}/weston-eventdemo | |
195 | #%attr(755,root,root) %{_bindir}/weston-fullscreen | |
196 | #%attr(755,root,root) %{_bindir}/weston-cliptest | |
197 | #%attr(755,root,root) %{_bindir}/weston-dnd | |
198 | #%attr(755,root,root) %{_bindir}/weston-flower | |
199 | #%attr(755,root,root) %{_bindir}/weston-image | |
200 | #%attr(755,root,root) %{_bindir}/weston-resizor | |
201 | #%attr(755,root,root) %{_bindir}/weston-smoke | |
202 | #%attr(755,root,root) %{_bindir}/weston-transformed | |
3adcb0b8 | 203 | # "full GL" clients |
09c3888d | 204 | #%attr(755,root,root) %{_bindir}/weston-gears |
3adcb0b8 | 205 | # poppler |
09c3888d | 206 | #%attr(755,root,root) %{_bindir}/weston-view |
3adcb0b8 | 207 | %endif |
5f05a417 JB |
208 | |
209 | %files devel | |
210 | %defattr(644,root,root,755) | |
211 | %{_includedir}/weston | |
212 | %{_pkgconfigdir}/weston.pc |