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