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