]> git.pld-linux.org Git - packages/weston.git/blame - weston.spec
- updated to 1.10.0
[packages/weston.git] / weston.spec
CommitLineData
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
d9a79ece 7%bcond_without libinput # libinput backend
131b29b1 8%bcond_without libunwind # libunwind usage for backtraces
9c73a052 9%bcond_without vaapi # vaapi recorder
0cb34c60
JB
10%bcond_without wlaunch # weston launch
11%bcond_without xwayland # X server launcher
12%bcond_without sclients # simple clients
6c4f66d1 13%bcond_without clients # non-simple + full GL clients
131b29b1
JR
14
15%ifarch x32
16%undefine with_libunwind
17%endif
18
3adcb0b8
JB
19Summary: Weston - Wayland demos
20Summary(pl.UTF-8): Weston - programy demonstracyjne dla protokołu Wayland
21Name: weston
bc222cc7
JB
22Version: 1.10.0
23Release: 1
3adcb0b8
JB
24License: MIT
25Group: Applications
bc222cc7
JB
26Source0: https://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
27# Source0-md5: 1cd17c54ecac6d9a3cd90bf12eaa3e20
28URL: https://wayland.freedesktop.org/
3adcb0b8 29BuildRequires: Mesa-libEGL-devel >= 7.10
5f05a417 30# GLESv2
3adcb0b8 31BuildRequires: Mesa-libGLES-devel
0cb34c60 32# for wayland and sclients, but also desktop-shell, which is always enabled
9c19f94f 33BuildRequires: Mesa-libwayland-egl-devel >= 9.0-2
1650f2b5
JB
34BuildRequires: autoconf >= 2.64
35BuildRequires: automake >= 1:1.11
0cb34c60 36BuildRequires: cairo-devel >= 1.10.0
09c3888d 37BuildRequires: colord-devel >= 0.1.27
701d5d1a 38BuildRequires: dbus-devel >= 1.6
9c73a052 39%{?with_rdp:BuildRequires: freerdp-devel >= 1.1.0}
09c3888d 40BuildRequires: lcms2-devel >= 2
326e7c83 41%{?with_libinput:BuildRequires: libinput-devel >= 0.8.0}
0cb34c60 42BuildRequires: libjpeg-devel
3adcb0b8 43BuildRequires: libpng-devel
1650f2b5 44BuildRequires: libtool >= 2:2.2
131b29b1 45%{?with_libunwind:BuildRequires: libunwind-devel}
0cb34c60 46BuildRequires: libwebp-devel
3b2a67c3 47BuildRequires: pixman-devel >= 0.26
3adcb0b8
JB
48BuildRequires: pkgconfig
49BuildRequires: tar >= 1:1.22
0cb34c60 50# wayland-server always; wayland-client if with_wayland || with_sclients || with_clients; wayland-cursor if with_clients
bc222cc7
JB
51BuildRequires: wayland-devel >= 1.10.0
52BuildRequires: wayland-protocols >= 1.0
9c73a052 53BuildRequires: xorg-lib-libxkbcommon-devel >= 0.3.0
3adcb0b8 54BuildRequires: xz
0cb34c60 55%if %{with drm}
5acd8af0 56BuildRequires: Mesa-libgbm-devel >= 10.2
9c19f94f 57BuildRequires: libdrm-devel >= 2.4.30
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
JB
68%if %{with x11}
69BuildRequires: libxcb-devel
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}
6f48f53b 78# xcb xcb-composite xcb-xfixes
0cb34c60 79BuildRequires: libxcb-devel
6c4f66d1
JB
80BuildRequires: pkgconfig(cairo-xcb)
81BuildRequires: xorg-lib-libXcursor-devel
0cb34c60 82%endif
3adcb0b8 83%if %{with clients}
5f05a417 84BuildRequires: OpenGL-GLU-devel
6c4f66d1 85BuildRequires: cairo-devel >= 1.11.3
6c4f66d1 86BuildRequires: pkgconfig(cairo-egl) >= 1.11.3
09c3888d 87BuildRequires: pkgconfig(cairo-gl)
3adcb0b8 88%endif
d9a79ece 89Requires: Mesa-libEGL >= 7.10
9c19f94f 90Requires: Mesa-libwayland-egl >= 9.0-2
d9a79ece
JB
91Requires: cairo >= %{?with_clients:1.11.3}%{!?with_clients:1.10.0}
92Requires: colord-libs >= 0.1.27
93Requires: dbus-libs >= 1.6
5acd8af0 94%{?with_drm:Requires: Mesa-libgbm >= 10.2}
d9a79ece
JB
95%{?with_rdp:Requires: freerdp >= 1.1.0}
96%{?with_drm:Requires: libdrm >= 2.4.30}
326e7c83 97%{?with_libinput:Requires: libinput >= 0.8.0}
d9a79ece 98%if %{with vaapi}
3b2a67c3
JB
99Requires: libva >= 1.2.0
100Requires: libva-drm >= 1.2.0
d9a79ece 101%endif
3b2a67c3
JB
102%{?with_drm:Requires: mtdev >= 1.1.0}
103Requires: pixman >= 0.26
5acd8af0 104%{?with_wlaunch:Requires: systemd-libs >= 1:209}
d9a79ece 105%{?with_drm:Requires: udev-libs >= 1:136}
bc222cc7 106Requires: wayland >= 1.10.0
9c73a052 107Requires: xorg-lib-libxkbcommon >= 0.3.0
3adcb0b8
JB
108BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
109
110%description
111Weston contains a few demo application for the Wayland project.
112There's a sample compositor that can run on KMS, under X11 or under
113another Wayland compositor and there's a handful of simple clients
114that demonstrate various aspects of Wayland.
115
116%description -l pl.UTF-8
117Weston zawiera kilka aplikacji demonstracyjnych dla projektu Wayland.
118Jest przykładowy serwer składający, który można uruchomić pod KMS, pod
119X11 lub pod innym serwerem składającym Wayland; są także proste
120programy klienckie demonstrujące różne aspekty protokołu Wayland.
121
5f05a417
JB
122%package devel
123Summary: Header files for Weston plugin development
124Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia wtyczek dla Westona
125Group: Development/Libraries
126Requires: Mesa-libEGL-devel >= 7.10
127# GLESv2
128Requires: Mesa-libGLES-devel
3b2a67c3 129Requires: pixman-devel >= 0.26
bc222cc7 130Requires: wayland-devel >= 1.10.0
9c73a052 131Requires: xorg-lib-libxkbcommon-devel >= 0.3.0
5f05a417
JB
132
133%description devel
134Header files for Weston plugin development.
135
136%description devel -l pl.UTF-8
137Pliki nagłówkowe do tworzenia wtyczek dla Westona.
138
3adcb0b8
JB
139%prep
140%setup -q
141
142%build
1650f2b5
JB
143%{__libtoolize}
144%{__aclocal} -I m4
cde5be0a 145%{__autoconf}
1650f2b5
JB
146%{__autoheader}
147%{__automake}
3adcb0b8
JB
148%configure \
149 %{!?with_clients:--disable-clients} \
0cb34c60 150 %{!?with_drm:--disable-drm-compositor} \
d9a79ece 151 %{?with_libinput:--enable-libinput-backend} \
131b29b1 152 %{!?with_libunwind:--disable-libunwind} \
9c73a052 153 %{?with_rdp:--enable-rdp-compositor} \
0cb34c60 154 %{!?with_sclients:--disable-simple-clients} \
3adcb0b8
JB
155 --disable-setuid-install \
156 --disable-silent-rules \
9c73a052 157 %{!?with_vaapi:--disable-vaapi-recorder} \
0cb34c60
JB
158 %{!?with_wlaunch:--disable-weston-launch} \
159 %{!?with_x11:--disable-x11-compositor} \
09c3888d
JB
160 %{!?with_xwayland:--disable-xwayland} \
161 %{?with_clients:--with-cairo=gl}
3adcb0b8
JB
162%{__make}
163
164%install
165rm -rf $RPM_BUILD_ROOT
166
167%{__make} install \
168 DESTDIR=$RPM_BUILD_ROOT
169
170%{__rm} $RPM_BUILD_ROOT%{_libdir}/weston/*.la
171
172%clean
173rm -rf $RPM_BUILD_ROOT
174
175%files
176%defattr(644,root,root,755)
177%doc README
6c4f66d1 178%attr(755,root,root) %{_bindir}/wcap-decode
9c19f94f 179%attr(755,root,root) %{_bindir}/weston-info
3adcb0b8
JB
180# composer
181%attr(755,root,root) %{_bindir}/weston
6c4f66d1
JB
182%if %{with wlaunch}
183%attr(755,root,root) %{_bindir}/weston-launch
184%endif
3adcb0b8
JB
185%if %{with clients}
186%attr(755,root,root) %{_bindir}/weston-terminal
187%attr(755,root,root) %{_libexecdir}/weston-desktop-shell
09c3888d 188%attr(755,root,root) %{_libexecdir}/weston-keyboard
6c4f66d1 189%attr(755,root,root) %{_libexecdir}/weston-screenshooter
3adcb0b8 190%endif
09c3888d 191%attr(755,root,root) %{_libexecdir}/weston-simple-im
3adcb0b8 192%dir %{_libdir}/weston
09c3888d
JB
193%attr(755,root,root) %{_libdir}/weston/cms-colord.so
194%attr(755,root,root) %{_libdir}/weston/cms-static.so
0cb34c60 195%if %{with drm}
3adcb0b8 196%attr(755,root,root) %{_libdir}/weston/drm-backend.so
0cb34c60 197%endif
09c3888d 198%attr(755,root,root) %{_libdir}/weston/fbdev-backend.so
701d5d1a 199%attr(755,root,root) %{_libdir}/weston/gl-renderer.so
09c3888d 200%attr(755,root,root) %{_libdir}/weston/headless-backend.so
9c73a052
JB
201%if %{with rdp}
202%attr(755,root,root) %{_libdir}/weston/rdp-backend.so
203%endif
0cb34c60 204%if %{with wayland}
3adcb0b8 205%attr(755,root,root) %{_libdir}/weston/wayland-backend.so
0cb34c60
JB
206%endif
207%if %{with x11}
3adcb0b8 208%attr(755,root,root) %{_libdir}/weston/x11-backend.so
0cb34c60 209%endif
6c4f66d1
JB
210%if %{with xwayland}
211%attr(755,root,root) %{_libdir}/weston/xwayland.so
212%endif
3adcb0b8 213%attr(755,root,root) %{_libdir}/weston/desktop-shell.so
d9a79ece 214%attr(755,root,root) %{_libdir}/weston/fullscreen-shell.so
326e7c83
JB
215# ivi shell
216%attr(755,root,root) %{_libexecdir}/weston-ivi-shell-user-interface
217%attr(755,root,root) %{_libdir}/weston/hmi-controller.so
218%attr(755,root,root) %{_libdir}/weston/ivi-shell.so
3adcb0b8 219%{_datadir}/weston
326e7c83
JB
220%dir %{_datadir}/wayland-sessions
221%{_datadir}/wayland-sessions/weston.desktop
9c19f94f 222%{_mandir}/man1/weston.1*
8228963f 223%{_mandir}/man5/weston.ini.5*
e9c620bf 224%{_mandir}/man7/weston-drm.7*
3adcb0b8 225
09c3888d 226# noinst by default - --enable-demo-clients and package in %{name}-demos?
3adcb0b8 227# "simple clients"
d9a79ece 228#%attr(755,root,root) %{_bindir}/weston-multi-resource
09c3888d
JB
229#%attr(755,root,root) %{_bindir}/weston-simple-egl
230#%attr(755,root,root) %{_bindir}/weston-simple-shm
231#%attr(755,root,root) %{_bindir}/weston-simple-touch
3adcb0b8 232%if %{with clients}
09c3888d
JB
233#%attr(755,root,root) %{_bindir}/weston-calibrator
234#%attr(755,root,root) %{_bindir}/weston-clickdot
09c3888d
JB
235#%attr(755,root,root) %{_bindir}/weston-cliptest
236#%attr(755,root,root) %{_bindir}/weston-dnd
d9a79ece
JB
237#%attr(755,root,root) %{_bindir}/weston-editor
238#%attr(755,root,root) %{_bindir}/weston-eventdemo
09c3888d 239#%attr(755,root,root) %{_bindir}/weston-flower
d9a79ece 240#%attr(755,root,root) %{_bindir}/weston-fullscreen
09c3888d
JB
241#%attr(755,root,root) %{_bindir}/weston-image
242#%attr(755,root,root) %{_bindir}/weston-resizor
d9a79ece 243#%attr(755,root,root) %{_bindir}/weston-scaler
09c3888d 244#%attr(755,root,root) %{_bindir}/weston-smoke
d9a79ece 245#%attr(755,root,root) %{_bindir}/weston-stacking
09c3888d 246#%attr(755,root,root) %{_bindir}/weston-transformed
3adcb0b8 247# "full GL" clients
09c3888d 248#%attr(755,root,root) %{_bindir}/weston-gears
3adcb0b8 249%endif
5f05a417
JB
250
251%files devel
252%defattr(644,root,root,755)
253%{_includedir}/weston
254%{_pkgconfigdir}/weston.pc
This page took 0.134989 seconds and 4 git commands to generate.