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