]> git.pld-linux.org Git - packages/weston.git/blame - weston.spec
- updated to 4.0.0
[packages/weston.git] / weston.spec
CommitLineData
3adcb0b8
JB
1#
2# Conditional build:
0cb34c60 3%bcond_without drm # DRM compositor
6b9f49b3 4%bcond_without rdp # RDP compositor (needs freerdp2 or freerdp >= 1.1.0)
0cb34c60
JB
5%bcond_without wayland # wayland (nested) compositor
6%bcond_without x11 # X11 compositor
131b29b1 7%bcond_without libunwind # libunwind usage for backtraces
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
b1b43d2b 12%bcond_without clients # non-simple clients
eab4380b 13%bcond_with glclients # full GL clients [require cairo-gl/cairo-egl, not recommended]
131b29b1 14
3adcb0b8
JB
15Summary: Weston - Wayland demos
16Summary(pl.UTF-8): Weston - programy demonstracyjne dla protokołu Wayland
17Name: weston
eab4380b 18Version: 4.0.0
1cb405cb 19Release: 1
3adcb0b8
JB
20License: MIT
21Group: Applications
eab4380b 22#Source0Download: https://wayland.freedesktop.org/releases.html
bc222cc7 23Source0: https://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
eab4380b 24# Source0-md5: 33709aa4d5916f89643fca0fc0064b39
bc222cc7 25URL: https://wayland.freedesktop.org/
3adcb0b8 26BuildRequires: Mesa-libEGL-devel >= 7.10
5f05a417 27# GLESv2
3adcb0b8 28BuildRequires: Mesa-libGLES-devel
0cb34c60 29# for wayland and sclients, but also desktop-shell, which is always enabled
9c19f94f 30BuildRequires: Mesa-libwayland-egl-devel >= 9.0-2
1650f2b5
JB
31BuildRequires: autoconf >= 2.64
32BuildRequires: automake >= 1:1.11
0cb34c60 33BuildRequires: cairo-devel >= 1.10.0
09c3888d 34BuildRequires: colord-devel >= 0.1.27
701d5d1a 35BuildRequires: dbus-devel >= 1.6
ff471f7a 36BuildRequires: doxygen
6b9f49b3 37# or freerdp >= 1.1.0
1cb405cb 38%{?with_rdp:BuildRequires: freerdp2-devel >= 2.0.0}
09c3888d 39BuildRequires: lcms2-devel >= 2
b1b43d2b 40BuildRequires: libinput-devel >= 0.8.0
0cb34c60 41BuildRequires: libjpeg-devel
3adcb0b8 42BuildRequires: libpng-devel
1650f2b5 43BuildRequires: libtool >= 2:2.2
131b29b1 44%{?with_libunwind:BuildRequires: libunwind-devel}
0cb34c60 45BuildRequires: libwebp-devel
3b2a67c3 46BuildRequires: pixman-devel >= 0.26
3adcb0b8
JB
47BuildRequires: pkgconfig
48BuildRequires: tar >= 1:1.22
0cb34c60 49# wayland-server always; wayland-client if with_wayland || with_sclients || with_clients; wayland-cursor if with_clients
b38ed305 50BuildRequires: wayland-devel >= 1.12.0
eab4380b 51BuildRequires: wayland-protocols >= 1.13
1cb405cb 52BuildRequires: xorg-lib-libxkbcommon-devel >= 0.5.0
3adcb0b8 53BuildRequires: xz
0cb34c60 54%if %{with drm}
5acd8af0 55BuildRequires: Mesa-libgbm-devel >= 10.2
eab4380b 56BuildRequires: libdrm-devel >= 2.4.78
0cb34c60 57BuildRequires: mtdev-devel >= 1.1.0
6c4f66d1 58BuildRequires: udev-devel >= 1:136
0cb34c60 59%endif
3b2a67c3
JB
60%if %{with vaapi}
61BuildRequires: libva-devel >= 1.2.0
62BuildRequires: libva-drm-devel >= 1.2.0
63# API versions
64BuildRequires: pkgconfig(libva) >= 0.34.0
65BuildRequires: pkgconfig(libva-drm) >= 0.34.0
66%endif
0cb34c60 67%if %{with x11}
eab4380b
JB
68# xcb >= 1.8 xcb-xkb >= 1.9 xcb-shm
69BuildRequires: libxcb-devel >= 1.9
0cb34c60
JB
70BuildRequires: xorg-lib-libX11-devel
71%endif
72%if %{with wlaunch}
73BuildRequires: libdrm-devel
74BuildRequires: pam-devel
5acd8af0 75BuildRequires: systemd-devel >= 1:209
0cb34c60
JB
76%endif
77%if %{with xwayland}
1cb405cb 78BuildRequires: glib2-devel >= 1:2.36
6f48f53b 79# xcb xcb-composite xcb-xfixes
0cb34c60 80BuildRequires: libxcb-devel
1cb405cb 81BuildRequires: pango-devel >= 1:1.10
6c4f66d1
JB
82BuildRequires: pkgconfig(cairo-xcb)
83BuildRequires: xorg-lib-libXcursor-devel
0cb34c60 84%endif
3adcb0b8 85%if %{with clients}
5f05a417 86BuildRequires: OpenGL-GLU-devel
6c4f66d1 87BuildRequires: cairo-devel >= 1.11.3
b1b43d2b 88%if %{with glclients}
6c4f66d1 89BuildRequires: pkgconfig(cairo-egl) >= 1.11.3
09c3888d 90BuildRequires: pkgconfig(cairo-gl)
3adcb0b8 91%endif
b1b43d2b 92%endif
b38ed305
JB
93Requires: %{name}-libs = %{version}-%{release}
94%if %{with clients}
95Requires: cairo >= 1.11.3
d9a79ece 96%endif
b38ed305 97Requires: colord-libs >= 0.1.27
3adcb0b8
JB
98BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
99
100%description
101Weston contains a few demo application for the Wayland project.
102There's a sample compositor that can run on KMS, under X11 or under
103another Wayland compositor and there's a handful of simple clients
104that demonstrate various aspects of Wayland.
105
106%description -l pl.UTF-8
107Weston zawiera kilka aplikacji demonstracyjnych dla projektu Wayland.
108Jest przykładowy serwer składający, który można uruchomić pod KMS, pod
109X11 lub pod innym serwerem składającym Wayland; są także proste
110programy klienckie demonstrujące różne aspekty protokołu Wayland.
111
5f05a417
JB
112%package devel
113Summary: Header files for Weston plugin development
114Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia wtyczek dla Westona
115Group: Development/Libraries
b38ed305 116Requires: %{name}-libs-devel = %{version}-%{release}
5f05a417
JB
117Requires: Mesa-libEGL-devel >= 7.10
118# GLESv2
119Requires: Mesa-libGLES-devel
5f05a417
JB
120
121%description devel
122Header files for Weston plugin development.
123
124%description devel -l pl.UTF-8
125Pliki nagłówkowe do tworzenia wtyczek dla Westona.
126
b38ed305
JB
127%package libs
128Summary: Weston compositor libraries
129Summary(pl.UTF-8): Biblioteki serwera składania Weston
130Group: Libraries
131Requires: wayland >= 1.12.0
132Requires: pixman >= 0.26
1cb405cb 133Requires: xorg-lib-libxkbcommon >= 0.5.0
b38ed305
JB
134# the rest is for modules:
135Requires: Mesa-libEGL >= 7.10
136%{?with_drm:Requires: Mesa-libgbm >= 10.2}
137Requires: Mesa-libwayland-egl >= 9.0-2
138Requires: cairo >= 1.10.0
139Requires: dbus-libs >= 1.6
eab4380b 140%{?with_drm:Requires: libdrm >= 2.4.78}
b38ed305
JB
141Requires: libinput >= 0.8.0
142%if %{with vaapi}
143Requires: libva >= 1.2.0
144Requires: libva-drm >= 1.2.0
145%endif
eab4380b 146%{?with_x11:Requires: libxcb >= 1.9}
b38ed305
JB
147%{?with_drm:Requires: mtdev >= 1.1.0}
148%{?with_wlaunch:Requires: systemd-libs >= 1:209}
149%{?with_drm:Requires: udev-libs >= 1:136}
150
151%description libs
152Weston compositor libraries.
153
154%description libs -l pl.UTF-8
155Biblioteki serwera składania Weston.
156
157%package libs-devel
158Summary: Header files for libweston compositors development
159Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania modułów składających biblioteki libweston
160Group: Development/Libraries
161Requires: %{name}-libs = %{version}-%{release}
162Requires: pixman-devel >= 0.26
163# wayland-server
164Requires: wayland-devel >= 1.12.0
1cb405cb 165Requires: xorg-lib-libxkbcommon-devel >= 0.5.0
b38ed305
JB
166
167%description libs-devel
168Header files for libweston compositors development.
169
170%description libs-devel -l pl.UTF-8
171Pliki nagłówkowe do rozwijania modułów składających biblioteki
172libweston.
173
174%package compositor-rdp
175Summary: RDP compositor plugin for Weston
176Summary(pl.UTF-8): Wtyczka składająca RDP dla Westona
177Group: Libraries
178Requires: %{name} = %{version}-%{release}
1cb405cb 179Requires: freerdp2 >= 2.0.0
b38ed305
JB
180
181%description compositor-rdp
182RDP compositor plugin for Weston.
183
184%description compositor-rdp -l pl.UTF-8
185Wtyczka składająca RDP dla Westona.
186
3adcb0b8
JB
187%prep
188%setup -q
189
190%build
1650f2b5
JB
191%{__libtoolize}
192%{__aclocal} -I m4
cde5be0a 193%{__autoconf}
1650f2b5
JB
194%{__autoheader}
195%{__automake}
3adcb0b8
JB
196%configure \
197 %{!?with_clients:--disable-clients} \
0cb34c60 198 %{!?with_drm:--disable-drm-compositor} \
131b29b1 199 %{!?with_libunwind:--disable-libunwind} \
9c73a052 200 %{?with_rdp:--enable-rdp-compositor} \
0cb34c60 201 %{!?with_sclients:--disable-simple-clients} \
3adcb0b8
JB
202 --disable-setuid-install \
203 --disable-silent-rules \
9c73a052 204 %{!?with_vaapi:--disable-vaapi-recorder} \
0cb34c60
JB
205 %{!?with_wlaunch:--disable-weston-launch} \
206 %{!?with_x11:--disable-x11-compositor} \
09c3888d 207 %{!?with_xwayland:--disable-xwayland} \
b1b43d2b 208 %{?with_glclients:--with-cairo=gl}
3adcb0b8
JB
209%{__make}
210
211%install
212rm -rf $RPM_BUILD_ROOT
213
214%{__make} install \
215 DESTDIR=$RPM_BUILD_ROOT
216
b38ed305 217%{__rm} $RPM_BUILD_ROOT%{_libdir}/libweston-*.la
eab4380b 218%{__rm} $RPM_BUILD_ROOT%{_libdir}/libweston-4/*.la \
b38ed305 219 $RPM_BUILD_ROOT%{_libdir}/weston/*.la
3adcb0b8
JB
220
221%clean
222rm -rf $RPM_BUILD_ROOT
223
b38ed305
JB
224%post libs -p /sbin/ldconfig
225%postun libs -p /sbin/ldconfig
226
3adcb0b8
JB
227%files
228%defattr(644,root,root,755)
229%doc README
6c4f66d1 230%attr(755,root,root) %{_bindir}/wcap-decode
3adcb0b8
JB
231# composer
232%attr(755,root,root) %{_bindir}/weston
6c4f66d1
JB
233%if %{with wlaunch}
234%attr(755,root,root) %{_bindir}/weston-launch
235%endif
3adcb0b8 236%if %{with clients}
b1b43d2b 237%attr(755,root,root) %{_bindir}/weston-info
3adcb0b8
JB
238%attr(755,root,root) %{_bindir}/weston-terminal
239%attr(755,root,root) %{_libexecdir}/weston-desktop-shell
09c3888d 240%attr(755,root,root) %{_libexecdir}/weston-keyboard
6c4f66d1 241%attr(755,root,root) %{_libexecdir}/weston-screenshooter
09c3888d 242%attr(755,root,root) %{_libexecdir}/weston-simple-im
b1b43d2b 243%endif
3adcb0b8 244%dir %{_libdir}/weston
09c3888d
JB
245%attr(755,root,root) %{_libdir}/weston/cms-colord.so
246%attr(755,root,root) %{_libdir}/weston/cms-static.so
3adcb0b8 247%attr(755,root,root) %{_libdir}/weston/desktop-shell.so
d9a79ece 248%attr(755,root,root) %{_libdir}/weston/fullscreen-shell.so
326e7c83 249# ivi shell
b1b43d2b 250%if %{with clients}
326e7c83 251%attr(755,root,root) %{_libexecdir}/weston-ivi-shell-user-interface
b1b43d2b 252%endif
326e7c83
JB
253%attr(755,root,root) %{_libdir}/weston/hmi-controller.so
254%attr(755,root,root) %{_libdir}/weston/ivi-shell.so
3adcb0b8 255%{_datadir}/weston
326e7c83
JB
256%dir %{_datadir}/wayland-sessions
257%{_datadir}/wayland-sessions/weston.desktop
9c19f94f 258%{_mandir}/man1/weston.1*
8228963f 259%{_mandir}/man5/weston.ini.5*
e9c620bf 260%{_mandir}/man7/weston-drm.7*
3adcb0b8 261
09c3888d 262# noinst by default - --enable-demo-clients and package in %{name}-demos?
3adcb0b8 263# "simple clients"
d9a79ece 264#%attr(755,root,root) %{_bindir}/weston-multi-resource
09c3888d
JB
265#%attr(755,root,root) %{_bindir}/weston-simple-egl
266#%attr(755,root,root) %{_bindir}/weston-simple-shm
267#%attr(755,root,root) %{_bindir}/weston-simple-touch
3adcb0b8 268%if %{with clients}
09c3888d
JB
269#%attr(755,root,root) %{_bindir}/weston-calibrator
270#%attr(755,root,root) %{_bindir}/weston-clickdot
09c3888d
JB
271#%attr(755,root,root) %{_bindir}/weston-cliptest
272#%attr(755,root,root) %{_bindir}/weston-dnd
d9a79ece
JB
273#%attr(755,root,root) %{_bindir}/weston-editor
274#%attr(755,root,root) %{_bindir}/weston-eventdemo
09c3888d 275#%attr(755,root,root) %{_bindir}/weston-flower
d9a79ece 276#%attr(755,root,root) %{_bindir}/weston-fullscreen
09c3888d
JB
277#%attr(755,root,root) %{_bindir}/weston-image
278#%attr(755,root,root) %{_bindir}/weston-resizor
d9a79ece 279#%attr(755,root,root) %{_bindir}/weston-scaler
09c3888d 280#%attr(755,root,root) %{_bindir}/weston-smoke
d9a79ece 281#%attr(755,root,root) %{_bindir}/weston-stacking
09c3888d 282#%attr(755,root,root) %{_bindir}/weston-transformed
b1b43d2b 283%if %{with glclients}
3adcb0b8 284# "full GL" clients
09c3888d 285#%attr(755,root,root) %{_bindir}/weston-gears
3adcb0b8 286%endif
b1b43d2b 287%endif
5f05a417
JB
288
289%files devel
290%defattr(644,root,root,755)
291%{_includedir}/weston
292%{_pkgconfigdir}/weston.pc
b38ed305
JB
293
294%files libs
295%defattr(644,root,root,755)
eab4380b
JB
296%attr(755,root,root) %{_libdir}/libweston-4.so.*.*.*
297%attr(755,root,root) %ghost %{_libdir}/libweston-4.so.0
298%attr(755,root,root) %{_libdir}/libweston-desktop-4.so.*.*.*
299%attr(755,root,root) %ghost %{_libdir}/libweston-desktop-4.so.0
300%dir %{_libdir}/libweston-4
b38ed305 301%if %{with drm}
eab4380b 302%attr(755,root,root) %{_libdir}/libweston-4/drm-backend.so
b38ed305 303%endif
eab4380b
JB
304%attr(755,root,root) %{_libdir}/libweston-4/fbdev-backend.so
305%attr(755,root,root) %{_libdir}/libweston-4/gl-renderer.so
306%attr(755,root,root) %{_libdir}/libweston-4/headless-backend.so
b38ed305 307%if %{with wayland}
eab4380b 308%attr(755,root,root) %{_libdir}/libweston-4/wayland-backend.so
b38ed305
JB
309%endif
310%if %{with x11}
eab4380b 311%attr(755,root,root) %{_libdir}/libweston-4/x11-backend.so
b38ed305
JB
312%endif
313%if %{with xwayland}
eab4380b 314%attr(755,root,root) %{_libdir}/libweston-4/xwayland.so
b38ed305
JB
315%endif
316
317%files libs-devel
318%defattr(644,root,root,755)
eab4380b
JB
319%attr(755,root,root) %{_libdir}/libweston-4.so
320%attr(755,root,root) %{_libdir}/libweston-desktop-4.so
321%{_includedir}/libweston-4
322%{_pkgconfigdir}/libweston-4.pc
323%{_pkgconfigdir}/libweston-desktop-4.pc
b38ed305
JB
324
325%if %{with rdp}
326%files compositor-rdp
327%defattr(644,root,root,755)
eab4380b
JB
328%attr(755,root,root) %{_libdir}/libweston-4/rdp-backend.so
329%{_mandir}/man7/weston-rdp.7*
b38ed305 330%endif
This page took 0.146321 seconds and 4 git commands to generate.