blob: 90d53d69e58135e23329424fe18821a198b68e51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
|
%bcond_with wayland
%bcond_with libva
%bcond_with mobile
%bcond_with wearable
%if %{with mobile}
%define extra_config_options1 --disable-drm-compositor
%endif
%if %{with rdp}
%define extra_config_options2 --enable-rdp-compositor --enable-screen-sharing
%endif
%define extra_config_options3 --enable-sys-uid --disable-ivi-shell
Name: weston
Version: 5.0.0
Release: 0
Summary: Wayland Compositor Infrastructure
License: MIT
Group: Graphics & UI Framework/Wayland Window System
Url: http://weston.freedesktop.org/
#Git-Clone: git://anongit.freedesktop.org/wayland/weston
#Git-Web: http://cgit.freedesktop.org/wayland/weston/
Source0: %name-%version.tar.xz
Source1: %name.ini
Source1001: %name.manifest
BuildRequires: autoconf >= 2.64, automake >= 1.11
BuildRequires: expat-devel
BuildRequires: libjpeg-devel
BuildRequires: libtool >= 2.2
BuildRequires: libvpx-devel
BuildRequires: pam-devel
BuildRequires: pkgconfig
BuildRequires: xz
BuildRequires: pkgconfig(cairo)
#BuildRequires: pkgconfig(cairo-egl) >= 1.11.3
BuildRequires: pkgconfig(egl) >= 7.10
%if %{with rdp}
BuildRequires: pkgconfig(freerdp)
%endif
BuildRequires: pkgconfig(gbm)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-2.0)
%if !%{with mobile}
BuildRequires: pkgconfig(libdrm) >= 2.4.30
%endif
BuildRequires: pkgconfig(libffi)
BuildRequires: pkgconfig(libinput)
BuildRequires: pkgconfig(libsystemd-login)
BuildRequires: pkgconfig(libudev) >= 136
%if %{with libva}
BuildRequires: pkgconfig(libva)
%endif
BuildRequires: pkgconfig(mtdev) >= 1.1.0
#BuildRequires: pkgconfig(pangocairo)
BuildRequires: pkgconfig(wayland-protocols)
BuildRequires: pkgconfig(pixman-1)
#BuildRequires: pkgconfig(poppler-glib)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-egl)
BuildRequires: pkgconfig(wayland-server)
BuildRequires: pkgconfig(xkbcommon) >= 0.3.0
Requires: tlm
Requires(pre): /usr/sbin/groupadd
%if !%{with wayland}
ExclusiveArch:
%endif
%description
Weston is the reference implementation of a Wayland compositor, and a
useful compositor in its own right. Weston has various backends that
lets it run on Linux kernel modesetting and evdev input as well as
under X11. Weston ships with a few example clients, from simple
clients that demonstrate certain aspects of the protocol to more
complete clients and a simplistic toolkit. There is also a quite
capable terminal emulator (weston-terminal) and an toy/example
desktop shell. Finally, weston also provides integration with the
Xorg server and can pull X clients into the Wayland desktop and act
as a X window manager.
%package devel
Summary: Development files for package %{name}
Group: Graphics & UI Framework/Development
%description devel
This package provides header files and other developer releated files
for package %{name}.
%package clients
Summary: Sample clients for package %{name}
Group: Graphics & UI Framework/Development
%description clients
This package provides a set of example wayland clients useful for
validating the functionality of wayland with very little dependencies
on other system components.
%if %{with rdp}
%package rdp
Summary: RDP compositor for %{name}
Group: Graphics & UI Framework/Development
%description rdp
This package provides a RDP compositor allowing to do remote rendering
through the network.
%endif
%prep
%setup -q
cp %{SOURCE1001} .
%build
%autogen --disable-static \
--disable-setuid-install \
--enable-simple-clients \
--enable-clients \
--disable-libunwind \
--disable-xwayland \
--disable-xwayland-test \
--disable-x11-compositor \
--disable-rpi-compositor \
%{?extra_config_options1:%extra_config_options1} \
%{?extra_config_options2:%extra_config_options2} \
%{?extra_config_options3:%extra_config_options3} \
%{?extra_config_options4:%extra_config_options4} \
%{?extra_config_options5:%extra_config_options5}
make %{?_smp_mflags}
%install
%make_install
# install example clients
install -m 755 weston-calibrator %{buildroot}%{_bindir}
install -m 755 weston-simple-touch %{buildroot}%{_bindir}
install -m 755 weston-simple-shm %{buildroot}%{_bindir}
install -m 755 weston-simple-egl %{buildroot}%{_bindir}
install -m 755 weston-simple-damage %{buildroot}%{_bindir}
install -m 755 weston-presentation-shm %{buildroot}%{_bindir}
#install -m 755 weston-nested-client %{buildroot}%{_bindir}
#install -m 755 weston-nested %{buildroot}%{_bindir}
install -m 755 weston-multi-resource %{buildroot}%{_bindir}
install -m 755 weston-flower %{buildroot}%{_bindir}
install -m 755 weston-image %{buildroot}%{_bindir}
install -m 755 weston-cliptest %{buildroot}%{_bindir}
install -m 755 weston-dnd %{buildroot}%{_bindir}
#install -m 755 weston-editor %{buildroot}%{_bindir}
install -m 755 weston-stacking %{buildroot}%{_bindir}
install -m 755 weston-smoke %{buildroot}%{_bindir}
install -m 755 weston-scaler %{buildroot}%{_bindir}
install -m 755 weston-resizor %{buildroot}%{_bindir}
install -m 755 weston-eventdemo %{buildroot}%{_bindir}
install -m 755 weston-clickdot %{buildroot}%{_bindir}
install -m 755 weston-subsurfaces %{buildroot}%{_bindir}
install -m 755 weston-transformed %{buildroot}%{_bindir}
install -m 755 weston-fullscreen %{buildroot}%{_bindir}
rm -rf %{buildroot}%{_datadir}/wayland-sessions
%pre
getent group weston-launch >/dev/null || %{_sbindir}/groupadd -r weston-launch
%docs_package
%files
%manifest %{name}.manifest
%defattr(-,root,root)
%license COPYING
%{_bindir}/wcap-*
%{_bindir}/weston
%{_bindir}/weston-info
%attr(4755,root,root) %{_bindir}/weston-launch
%{_bindir}/weston-terminal
%{_libexecdir}/weston-*
%{_libdir}/weston/desktop-shell.so
%if !%{with mobile}
%{_libdir}/libweston-5/drm-backend.so
%endif
%{_libdir}/libweston-5/fbdev-backend.so
%{_libdir}/weston/fullscreen-shell.so
%{_libdir}/libweston-5/headless-backend.so
%{_libdir}/libweston-5/wayland-backend.so
%{_libdir}/libweston-5/gl-renderer.so
%{_libdir}/libweston-5.*
%{_libdir}/libweston-desktop-5.*
%{_datadir}/weston
# exclude ivi-shell-specific files
#%exclude %{_libexecdir}/weston-ivi-shell-user-interface
%exclude %{_datadir}/weston/background.png
%exclude %{_datadir}/weston/panel.png
%exclude %{_datadir}/weston/tiling.png
%exclude %{_datadir}/weston/sidebyside.png
%exclude %{_datadir}/weston/fullscreen.png
%exclude %{_datadir}/weston/random.png
%exclude %{_datadir}/weston/home.png
%exclude %{_datadir}/weston/icon_ivi_simple-egl.png
%exclude %{_datadir}/weston/icon_ivi_simple-shm.png
%exclude %{_datadir}/weston/icon_ivi_smoke.png
%exclude %{_datadir}/weston/icon_ivi_flower.png
%exclude %{_datadir}/weston/icon_ivi_clickdot.png
%files devel
%manifest %{name}.manifest
%{_includedir}/weston/*.h
%{_libdir}/pkgconfig/*.pc
%{_includedir}/libweston-5/*.h
%files clients
%manifest %{name}.manifest
%{_bindir}/weston-simple-touch
%{_bindir}/weston-simple-shm
%{_bindir}/weston-simple-egl
%{_bindir}/weston-simple-damage
%{_bindir}/weston-presentation-shm
#%{_bindir}/weston-nested-client
#%{_bindir}/weston-nested
%{_bindir}/weston-multi-resource
%{_bindir}/weston-flower
%{_bindir}/weston-image
%{_bindir}/weston-cliptest
%{_bindir}/weston-dnd
#%{_bindir}/weston-editor
%{_bindir}/weston-stacking
%{_bindir}/weston-smoke
%{_bindir}/weston-scaler
%{_bindir}/weston-resizor
%{_bindir}/weston-eventdemo
%{_bindir}/weston-clickdot
%{_bindir}/weston-subsurfaces
%{_bindir}/weston-transformed
%{_bindir}/weston-fullscreen
%{_bindir}/weston-calibrator
%if %{with rdp}
%files rdp
%manifest %{name}.manifest
%{_libdir}/weston/rdp-backend.so
%{_libdir}/weston/screen-share.so
%endif
%changelog
|