3 %bcond_without apidocs # don't build API documentation
4 %bcond_without static_libs # don't build static libraries
6 Summary: Wayland - protocol for a compositor to talk to its clients
7 Summary(pl.UTF-8): Wayland - protokół między serwerem składającym a klientami
13 #Source0Download: https://wayland.freedesktop.org/releases.html
14 Source0: https://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
15 # Source0-md5: d91f970aea11fd549eae023d06f91af3
16 Patch0: %{name}-missing.patch
17 Patch1: %{name}-man.patch
18 URL: https://wayland.freedesktop.org/
19 BuildRequires: autoconf >= 2.64
20 BuildRequires: automake >= 1:1.11
21 BuildRequires: expat-devel >= 1.95
22 BuildRequires: libffi-devel >= 3
23 BuildRequires: libtool >= 2:2.2
25 BuildRequires: libxml2-devel >= 2.0
26 BuildRequires: pkgconfig
28 BuildRequires: docbook-style-xsl-nons
29 BuildRequires: doxygen >= 1.6.0
30 BuildRequires: graphviz >= 2.26.0
31 BuildRequires: libxslt-progs
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 Wayland is a project to define a protocol for a compositor to talk to
38 its clients as well as a library implementation of the protocol. The
39 compositor can be a standalone display server running on Linux kernel
40 modesetting and evdev input devices, an X application, or a Wayland
41 client itself. The clients can be traditional applications, X servers
42 (rootless or fullscreen) or other display servers.
44 %description -l pl.UTF-8
45 Wayland to projekt definiujący protokół między serwerem składającym a
46 klientami, a także biblioteki implementujące ten protokół. Serwer
47 składający może być samodzielnym serwerem wyświetlającym działającym
48 na linuksowym kernel modesetting oraz urządzeniach wejściowych evdev,
49 aplikacją X lub klientem Wayland. Klientami mogą być tradycyjne
50 aplikacje, serwery X (rootless lub pełnoekranowe) lub inne serwery
54 Summary: Header files for Wayland libraries
55 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Wayland
56 Group: Development/Libraries
57 Requires: %{name} = %{version}-%{release}
58 Requires: libffi-devel
61 Header files for Wayland libraries.
63 %description devel -l pl.UTF-8
64 Pliki nagłówkowe bibliotek Wayland.
67 Summary: Static Wayland libraries
68 Summary(pl.UTF-8): Statyczne biblioteki Wayland
69 Group: Development/Libraries
70 Requires: %{name}-devel = %{version}-%{release}
73 Static Wayland libraries.
75 %description static -l pl.UTF-8
76 Statyczne biblioteki Wayland.
79 Summary: Wayland EGL library
80 Summary(pl.UTF-8): Biblioteka Wayland EGL
82 Obsoletes: Mesa-libwayland-egl
87 %description egl -l pl.UTF-8
88 Biblioteka Wayland EGL.
91 Summary: Header files for Wayland EGL library
92 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Wayland EGL
93 Group: Development/Libraries
94 Requires: %{name}-devel = %{version}-%{release}
95 Requires: %{name}-egl = %{version}-%{release}
96 Obsoletes: Mesa-libwayland-egl-devel
98 %description egl-devel
99 Header files for Wayland EGL library.
101 %description egl-devel -l pl.UTF-8
102 Pliki nagłówkowe biblioteki Wayland EGL.
105 Summary: Static Wayland EGL library
106 Summary(pl.UTF-8): Statyczna biblioteka Wayland EGL
107 Group: Development/Libraries
108 Requires: %{name}-egl-devel = %{version}-%{release}
110 %description egl-static
111 Static Wayland EGL library.
113 %description egl-static -l pl.UTF-8
114 Statyczna biblioteka Wayland EGL.
117 Summary: Wayland API and protocol documentation
118 Summary(pl.UTF-8): Dokumentacja API biblioteki oraz protokołu Wayland
120 %if "%{_rpmversion}" >= "5"
125 Wayland API and protocol documentation.
127 %description apidocs -l pl.UTF-8
128 Dokumentacja API biblioteki oraz protokołu Wayland.
135 # force regeneration (.so link is broken, double man3/)
145 %{!?with_apidocs:--disable-documentation} \
146 --disable-silent-rules \
147 %{?with_static_libs:--enable-static}
152 rm -rf $RPM_BUILD_ROOT
155 DESTDIR=$RPM_BUILD_ROOT
158 # referenced by some installed wl_*.3 man pages
159 cp -p doc/doxygen/man/man3/wayland-{client,client-core,server,server-core,util}.h.3 \
160 doc/doxygen/man/man3/wayland-{client,server,shm,util}.c.3 $RPM_BUILD_ROOT%{_mandir}/man3
163 # obsoleted by pkg-config
164 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwayland-*.la
166 # packaged as %doc in -devel
167 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/wayland
171 rm -rf $RPM_BUILD_ROOT
173 %post -p /sbin/ldconfig
174 %postun -p /sbin/ldconfig
177 %defattr(644,root,root,755)
178 %doc COPYING README TODO
179 %attr(755,root,root) %{_libdir}/libwayland-client.so.*.*.*
180 %attr(755,root,root) %ghost %{_libdir}/libwayland-client.so.0
181 %attr(755,root,root) %{_libdir}/libwayland-cursor.so.*.*.*
182 %attr(755,root,root) %ghost %{_libdir}/libwayland-cursor.so.0
183 %attr(755,root,root) %{_libdir}/libwayland-server.so.*.*.*
184 %attr(755,root,root) %ghost %{_libdir}/libwayland-server.so.0
187 %defattr(644,root,root,755)
188 %attr(755,root,root) %{_bindir}/wayland-scanner
189 %attr(755,root,root) %{_libdir}/libwayland-client.so
190 %attr(755,root,root) %{_libdir}/libwayland-cursor.so
191 %attr(755,root,root) %{_libdir}/libwayland-server.so
192 %{_includedir}/wayland-client*.h
193 %{_includedir}/wayland-cursor.h
194 %{_includedir}/wayland-server*.h
195 %{_includedir}/wayland-util.h
196 %{_includedir}/wayland-version.h
197 %dir %{_datadir}/wayland
198 %{_datadir}/wayland/wayland.dtd
199 %{_datadir}/wayland/wayland.xml
200 %{_datadir}/wayland/wayland-scanner.mk
201 %{_pkgconfigdir}/wayland-client.pc
202 %{_pkgconfigdir}/wayland-cursor.pc
203 %{_pkgconfigdir}/wayland-scanner.pc
204 %{_pkgconfigdir}/wayland-server.pc
205 %{_aclocaldir}/wayland-scanner.m4
207 %{_mandir}/man3/wayland-*.c.3*
208 %{_mandir}/man3/wayland-*.h.3*
209 %{_mandir}/man3/wl_*.3*
211 # NOTE: temporarily here because they're used but not included in Mesa 18.1.x
212 # TODO: move to -egl-devel after transition to Mesa 18.2.x
213 %{_includedir}/wayland-egl.h
214 %{_includedir}/wayland-egl-core.h
216 %if %{with static_libs}
218 %defattr(644,root,root,755)
219 %{_libdir}/libwayland-client.a
220 %{_libdir}/libwayland-cursor.a
221 %{_libdir}/libwayland-server.a
226 %defattr(644,root,root,755)
227 %doc doc/publican/Wayland/en-US/html/*
231 %defattr(644,root,root,755)
232 %attr(755,root,root) %{_libdir}/libwayland-egl.so.*.*.*
233 %attr(755,root,root) %ghost %{_libdir}/libwayland-egl.so.1
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_libdir}/libwayland-egl.so
238 %{_includedir}/wayland-egl-backend.h
239 %{_pkgconfigdir}/wayland-egl.pc
240 %{_pkgconfigdir}/wayland-egl-backend.pc
242 %if %{with static_libs}
244 %defattr(644,root,root,755)
245 %{_libdir}/libwayland-egl.a