]> git.pld-linux.org Git - packages/weston.git/blame - weston.spec
- one more Mesa-libwayland-egl -> wayland-egl update
[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
a95a80fe 18Version: 5.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
a95a80fe 24# Source0-md5: 752a04ce3c65af4884cfac4e57231bdb
bc222cc7 25URL: https://wayland.freedesktop.org/
3adcb0b8 26BuildRequires: Mesa-libEGL-devel >= 7.10
5f05a417 27# GLESv2
3adcb0b8 28BuildRequires: Mesa-libGLES-devel
1650f2b5
JB
29BuildRequires: autoconf >= 2.64
30BuildRequires: automake >= 1:1.11
0cb34c60 31BuildRequires: cairo-devel >= 1.10.0
09c3888d 32BuildRequires: colord-devel >= 0.1.27
701d5d1a 33BuildRequires: dbus-devel >= 1.6
ff471f7a 34BuildRequires: doxygen
6b9f49b3 35# or freerdp >= 1.1.0
1cb405cb 36%{?with_rdp:BuildRequires: freerdp2-devel >= 2.0.0}
09c3888d 37BuildRequires: lcms2-devel >= 2
a95a80fe 38BuildRequires: libdrm-devel >= 2.4.68
b1b43d2b 39BuildRequires: libinput-devel >= 0.8.0
0cb34c60 40BuildRequires: libjpeg-devel
3adcb0b8 41BuildRequires: libpng-devel
1650f2b5 42BuildRequires: libtool >= 2:2.2
131b29b1 43%{?with_libunwind:BuildRequires: libunwind-devel}
0cb34c60 44BuildRequires: libwebp-devel
3b2a67c3 45BuildRequires: pixman-devel >= 0.26
3adcb0b8
JB
46BuildRequires: pkgconfig
47BuildRequires: tar >= 1:1.22
0cb34c60 48# wayland-server always; wayland-client if with_wayland || with_sclients || with_clients; wayland-cursor if with_clients
b38ed305 49BuildRequires: wayland-devel >= 1.12.0
a95a80fe
JB
50# for wayland and sclients, but also desktop-shell, which is always enabled
51BuildRequires: wayland-egl-devel
eab4380b 52BuildRequires: wayland-protocols >= 1.13
1cb405cb 53BuildRequires: xorg-lib-libxkbcommon-devel >= 0.5.0
3adcb0b8 54BuildRequires: xz
0cb34c60 55%if %{with drm}
a95a80fe
JB
56BuildRequires: Mesa-libgbm-devel >= 17.2
57BuildRequires: libdrm-devel >= 2.4.83
0cb34c60 58BuildRequires: mtdev-devel >= 1.1.0
6c4f66d1 59BuildRequires: udev-devel >= 1:136
0cb34c60 60%endif
3b2a67c3
JB
61%if %{with vaapi}
62BuildRequires: libva-devel >= 1.2.0
63BuildRequires: libva-drm-devel >= 1.2.0
64# API versions
65BuildRequires: pkgconfig(libva) >= 0.34.0
66BuildRequires: pkgconfig(libva-drm) >= 0.34.0
67%endif
0cb34c60 68%if %{with x11}
eab4380b
JB
69# xcb >= 1.8 xcb-xkb >= 1.9 xcb-shm
70BuildRequires: libxcb-devel >= 1.9
0cb34c60
JB
71BuildRequires: xorg-lib-libX11-devel
72%endif
73%if %{with wlaunch}
0cb34c60 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
a95a80fe 136%{?with_drm:Requires: Mesa-libgbm >= 17.2}
b38ed305
JB
137Requires: cairo >= 1.10.0
138Requires: dbus-libs >= 1.6
a95a80fe
JB
139%if %{with drm}
140Requires: libdrm >= 2.4.83
141%else
142Requires: libdrm >= 2.4.68
143%endif
b38ed305
JB
144Requires: libinput >= 0.8.0
145%if %{with vaapi}
146Requires: libva >= 1.2.0
147Requires: libva-drm >= 1.2.0
148%endif
eab4380b 149%{?with_x11:Requires: libxcb >= 1.9}
b38ed305
JB
150%{?with_drm:Requires: mtdev >= 1.1.0}
151%{?with_wlaunch:Requires: systemd-libs >= 1:209}
152%{?with_drm:Requires: udev-libs >= 1:136}
a5032b0e 153Requires: wayland-egl >= 9.0-2
b38ed305
JB
154
155%description libs
156Weston compositor libraries.
157
158%description libs -l pl.UTF-8
159Biblioteki serwera składania Weston.
160
161%package libs-devel
162Summary: Header files for libweston compositors development
163Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania modułów składających biblioteki libweston
164Group: Development/Libraries
165Requires: %{name}-libs = %{version}-%{release}
166Requires: pixman-devel >= 0.26
167# wayland-server
168Requires: wayland-devel >= 1.12.0
1cb405cb 169Requires: xorg-lib-libxkbcommon-devel >= 0.5.0
b38ed305
JB
170
171%description libs-devel
172Header files for libweston compositors development.
173
174%description libs-devel -l pl.UTF-8
175Pliki nagłówkowe do rozwijania modułów składających biblioteki
176libweston.
177
178%package compositor-rdp
179Summary: RDP compositor plugin for Weston
180Summary(pl.UTF-8): Wtyczka składająca RDP dla Westona
181Group: Libraries
182Requires: %{name} = %{version}-%{release}
1cb405cb 183Requires: freerdp2 >= 2.0.0
b38ed305
JB
184
185%description compositor-rdp
186RDP compositor plugin for Weston.
187
188%description compositor-rdp -l pl.UTF-8
189Wtyczka składająca RDP dla Westona.
190
3adcb0b8
JB
191%prep
192%setup -q
193
194%build
1650f2b5
JB
195%{__libtoolize}
196%{__aclocal} -I m4
cde5be0a 197%{__autoconf}
1650f2b5
JB
198%{__autoheader}
199%{__automake}
3adcb0b8
JB
200%configure \
201 %{!?with_clients:--disable-clients} \
0cb34c60 202 %{!?with_drm:--disable-drm-compositor} \
131b29b1 203 %{!?with_libunwind:--disable-libunwind} \
9c73a052 204 %{?with_rdp:--enable-rdp-compositor} \
0cb34c60 205 %{!?with_sclients:--disable-simple-clients} \
3adcb0b8
JB
206 --disable-setuid-install \
207 --disable-silent-rules \
9c73a052 208 %{!?with_vaapi:--disable-vaapi-recorder} \
0cb34c60
JB
209 %{!?with_wlaunch:--disable-weston-launch} \
210 %{!?with_x11:--disable-x11-compositor} \
09c3888d 211 %{!?with_xwayland:--disable-xwayland} \
b1b43d2b 212 %{?with_glclients:--with-cairo=gl}
3adcb0b8
JB
213%{__make}
214
215%install
216rm -rf $RPM_BUILD_ROOT
217
218%{__make} install \
219 DESTDIR=$RPM_BUILD_ROOT
220
b38ed305 221%{__rm} $RPM_BUILD_ROOT%{_libdir}/libweston-*.la
a95a80fe 222%{__rm} $RPM_BUILD_ROOT%{_libdir}/libweston-5/*.la \
b38ed305 223 $RPM_BUILD_ROOT%{_libdir}/weston/*.la
3adcb0b8
JB
224
225%clean
226rm -rf $RPM_BUILD_ROOT
227
b38ed305
JB
228%post libs -p /sbin/ldconfig
229%postun libs -p /sbin/ldconfig
230
3adcb0b8
JB
231%files
232%defattr(644,root,root,755)
a95a80fe 233%doc COPYING README.md
6c4f66d1 234%attr(755,root,root) %{_bindir}/wcap-decode
3adcb0b8
JB
235# composer
236%attr(755,root,root) %{_bindir}/weston
6c4f66d1
JB
237%if %{with wlaunch}
238%attr(755,root,root) %{_bindir}/weston-launch
239%endif
3adcb0b8 240%if %{with clients}
b1b43d2b 241%attr(755,root,root) %{_bindir}/weston-info
3adcb0b8
JB
242%attr(755,root,root) %{_bindir}/weston-terminal
243%attr(755,root,root) %{_libexecdir}/weston-desktop-shell
09c3888d 244%attr(755,root,root) %{_libexecdir}/weston-keyboard
6c4f66d1 245%attr(755,root,root) %{_libexecdir}/weston-screenshooter
09c3888d 246%attr(755,root,root) %{_libexecdir}/weston-simple-im
b1b43d2b 247%endif
3adcb0b8 248%dir %{_libdir}/weston
09c3888d
JB
249%attr(755,root,root) %{_libdir}/weston/cms-colord.so
250%attr(755,root,root) %{_libdir}/weston/cms-static.so
3adcb0b8 251%attr(755,root,root) %{_libdir}/weston/desktop-shell.so
d9a79ece 252%attr(755,root,root) %{_libdir}/weston/fullscreen-shell.so
326e7c83 253# ivi shell
b1b43d2b 254%if %{with clients}
326e7c83 255%attr(755,root,root) %{_libexecdir}/weston-ivi-shell-user-interface
b1b43d2b 256%endif
326e7c83
JB
257%attr(755,root,root) %{_libdir}/weston/hmi-controller.so
258%attr(755,root,root) %{_libdir}/weston/ivi-shell.so
3adcb0b8 259%{_datadir}/weston
326e7c83
JB
260%dir %{_datadir}/wayland-sessions
261%{_datadir}/wayland-sessions/weston.desktop
9c19f94f 262%{_mandir}/man1/weston.1*
8228963f 263%{_mandir}/man5/weston.ini.5*
e9c620bf 264%{_mandir}/man7/weston-drm.7*
3adcb0b8 265
09c3888d 266# noinst by default - --enable-demo-clients and package in %{name}-demos?
3adcb0b8 267# "simple clients"
d9a79ece 268#%attr(755,root,root) %{_bindir}/weston-multi-resource
09c3888d
JB
269#%attr(755,root,root) %{_bindir}/weston-simple-egl
270#%attr(755,root,root) %{_bindir}/weston-simple-shm
271#%attr(755,root,root) %{_bindir}/weston-simple-touch
3adcb0b8 272%if %{with clients}
09c3888d
JB
273#%attr(755,root,root) %{_bindir}/weston-calibrator
274#%attr(755,root,root) %{_bindir}/weston-clickdot
09c3888d
JB
275#%attr(755,root,root) %{_bindir}/weston-cliptest
276#%attr(755,root,root) %{_bindir}/weston-dnd
d9a79ece
JB
277#%attr(755,root,root) %{_bindir}/weston-editor
278#%attr(755,root,root) %{_bindir}/weston-eventdemo
09c3888d 279#%attr(755,root,root) %{_bindir}/weston-flower
d9a79ece 280#%attr(755,root,root) %{_bindir}/weston-fullscreen
09c3888d
JB
281#%attr(755,root,root) %{_bindir}/weston-image
282#%attr(755,root,root) %{_bindir}/weston-resizor
d9a79ece 283#%attr(755,root,root) %{_bindir}/weston-scaler
09c3888d 284#%attr(755,root,root) %{_bindir}/weston-smoke
d9a79ece 285#%attr(755,root,root) %{_bindir}/weston-stacking
09c3888d 286#%attr(755,root,root) %{_bindir}/weston-transformed
b1b43d2b 287%if %{with glclients}
3adcb0b8 288# "full GL" clients
09c3888d 289#%attr(755,root,root) %{_bindir}/weston-gears
3adcb0b8 290%endif
b1b43d2b 291%endif
5f05a417
JB
292
293%files devel
294%defattr(644,root,root,755)
295%{_includedir}/weston
296%{_pkgconfigdir}/weston.pc
b38ed305
JB
297
298%files libs
299%defattr(644,root,root,755)
a95a80fe
JB
300%attr(755,root,root) %{_libdir}/libweston-5.so.*.*.*
301%attr(755,root,root) %ghost %{_libdir}/libweston-5.so.0
302%attr(755,root,root) %{_libdir}/libweston-desktop-5.so.*.*.*
303%attr(755,root,root) %ghost %{_libdir}/libweston-desktop-5.so.0
304%dir %{_libdir}/libweston-5
b38ed305 305%if %{with drm}
a95a80fe 306%attr(755,root,root) %{_libdir}/libweston-5/drm-backend.so
b38ed305 307%endif
a95a80fe
JB
308%attr(755,root,root) %{_libdir}/libweston-5/fbdev-backend.so
309%attr(755,root,root) %{_libdir}/libweston-5/gl-renderer.so
310%attr(755,root,root) %{_libdir}/libweston-5/headless-backend.so
b38ed305 311%if %{with wayland}
a95a80fe 312%attr(755,root,root) %{_libdir}/libweston-5/wayland-backend.so
b38ed305
JB
313%endif
314%if %{with x11}
a95a80fe 315%attr(755,root,root) %{_libdir}/libweston-5/x11-backend.so
b38ed305
JB
316%endif
317%if %{with xwayland}
a95a80fe 318%attr(755,root,root) %{_libdir}/libweston-5/xwayland.so
b38ed305
JB
319%endif
320
321%files libs-devel
322%defattr(644,root,root,755)
a95a80fe
JB
323%attr(755,root,root) %{_libdir}/libweston-5.so
324%attr(755,root,root) %{_libdir}/libweston-desktop-5.so
325%{_includedir}/libweston-5
326%{_pkgconfigdir}/libweston-5.pc
327%{_pkgconfigdir}/libweston-desktop-5.pc
b38ed305
JB
328
329%if %{with rdp}
330%files compositor-rdp
331%defattr(644,root,root,755)
a95a80fe 332%attr(755,root,root) %{_libdir}/libweston-5/rdp-backend.so
eab4380b 333%{_mandir}/man7/weston-rdp.7*
b38ed305 334%endif
This page took 0.121694 seconds and 4 git commands to generate.