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