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