3 %bcond_without apidocs # don't build API documentation
4 %bcond_without static_libs # don't build static libraries
7 %define wayland_egl_ver 18.1.0
8 Summary: Wayland - protocol for a compositor to talk to its clients
9 Summary(pl.UTF-8): Wayland - protokół między serwerem składającym a klientami
15 Source0: https://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
16 # Source0-md5: b7393c17fdce9a8d383edab656c92fd2
17 Patch0: %{name}-missing.patch
18 Patch1: %{name}-man.patch
19 URL: https://wayland.freedesktop.org/
20 BuildRequires: autoconf >= 2.64
21 BuildRequires: automake >= 1:1.11
22 BuildRequires: expat-devel >= 1.95
23 BuildRequires: libffi-devel >= 3
24 BuildRequires: libtool >= 2:2.2
26 BuildRequires: libxml2-devel >= 2.0
27 BuildRequires: pkgconfig
29 BuildRequires: docbook-style-xsl-nons
30 BuildRequires: doxygen >= 1.6.0
31 BuildRequires: graphviz >= 2.26.0
32 BuildRequires: libxslt-progs
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 Wayland is a project to define a protocol for a compositor to talk to
39 its clients as well as a library implementation of the protocol. The
40 compositor can be a standalone display server running on Linux kernel
41 modesetting and evdev input devices, an X application, or a Wayland
42 client itself. The clients can be traditional applications, X servers
43 (rootless or fullscreen) or other display servers.
45 %description -l pl.UTF-8
46 Wayland to projekt definiujący protokół między serwerem składającym a
47 klientami, a także biblioteki implementujące ten protokół. Serwer
48 składający może być samodzielnym serwerem wyświetlającym działającym
49 na linuksowym kernel modesetting oraz urządzeniach wejściowych evdev,
50 aplikacją X lub klientem Wayland. Klientami mogą być tradycyjne
51 aplikacje, serwery X (rootless lub pełnoekranowe) lub inne serwery
55 Summary: Header files for Wayland libraries
56 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Wayland
57 Group: Development/Libraries
58 Requires: %{name} = %{version}-%{release}
59 Requires: libffi-devel
62 Header files for Wayland libraries.
64 %description devel -l pl.UTF-8
65 Pliki nagłówkowe bibliotek Wayland.
68 Summary: Static Wayland libraries
69 Summary(pl.UTF-8): Statyczne biblioteki Wayland
70 Group: Development/Libraries
71 Requires: %{name}-devel = %{version}-%{release}
74 Static Wayland libraries.
76 %description static -l pl.UTF-8
77 Statyczne biblioteki Wayland.
80 Summary: Wayland EGL library
81 Summary(pl.UTF-8): Biblioteka Wayland EGL
83 Obsoletes: Mesa-libwayland-egl < %{wayland_egl_ver}
88 %description egl -l pl.UTF-8
89 Biblioteka Wayland EGL.
92 Summary: Header files for Wayland EGL library
93 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Wayland EGL
94 Group: Development/Libraries
95 Requires: %{name}-devel = %{version}-%{release}
96 Requires: %{name}-egl = %{version}-%{release}
97 Obsoletes: Mesa-libwayland-egl-devel < %{wayland_egl_ver}
99 %description egl-devel
100 Header files for Wayland EGL library.
102 %description egl-devel -l pl.UTF-8
103 Pliki nagłówkowe biblioteki Wayland EGL.
106 Summary: Static Wayland EGL library
107 Summary(pl.UTF-8): Statyczna biblioteka Wayland EGL
108 Group: Development/Libraries
109 Requires: %{name}-egl-devel = %{version}-%{release}
111 %description egl-static
112 Static Wayland EGL library.
114 %description egl-static -l pl.UTF-8
115 Statyczna biblioteka Wayland EGL.
118 Summary: Wayland API and protocol documentation
119 Summary(pl.UTF-8): Dokumentacja API biblioteki oraz protokołu Wayland
121 %if "%{_rpmversion}" >= "5"
126 Wayland API and protocol documentation.
128 %description apidocs -l pl.UTF-8
129 Dokumentacja API biblioteki oraz protokołu Wayland.
136 # force regeneration (.so link is broken, double man3/)
146 %{!?with_apidocs:--disable-documentation} \
147 --disable-silent-rules \
148 %{?with_static_libs:--enable-static}
153 rm -rf $RPM_BUILD_ROOT
156 DESTDIR=$RPM_BUILD_ROOT
159 # referenced by some installed wl_*.3 man pages
160 cp -p doc/doxygen/man/man3/wayland-{client,client-core,server,server-core,util}.h.3 \
161 doc/doxygen/man/man3/wayland-{client,server,shm,util}.c.3 $RPM_BUILD_ROOT%{_mandir}/man3
164 # obsoleted by pkg-config
165 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwayland-*.la
167 # packaged as %doc in -devel
168 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/wayland
172 rm -rf $RPM_BUILD_ROOT
174 %post -p /sbin/ldconfig
175 %postun -p /sbin/ldconfig
178 %defattr(644,root,root,755)
179 %doc COPYING README TODO
180 %attr(755,root,root) %{_libdir}/libwayland-client.so.*.*.*
181 %attr(755,root,root) %ghost %{_libdir}/libwayland-client.so.0
182 %attr(755,root,root) %{_libdir}/libwayland-cursor.so.*.*.*
183 %attr(755,root,root) %ghost %{_libdir}/libwayland-cursor.so.0
184 %attr(755,root,root) %{_libdir}/libwayland-server.so.*.*.*
185 %attr(755,root,root) %ghost %{_libdir}/libwayland-server.so.0
188 %defattr(644,root,root,755)
189 %attr(755,root,root) %{_bindir}/wayland-scanner
190 %attr(755,root,root) %{_libdir}/libwayland-client.so
191 %attr(755,root,root) %{_libdir}/libwayland-cursor.so
192 %attr(755,root,root) %{_libdir}/libwayland-server.so
193 %{_includedir}/wayland-client*.h
194 %{_includedir}/wayland-cursor.h
195 %{_includedir}/wayland-server*.h
196 %{_includedir}/wayland-util.h
197 %{_includedir}/wayland-version.h
198 %dir %{_datadir}/wayland
199 %{_datadir}/wayland/wayland.dtd
200 %{_datadir}/wayland/wayland.xml
201 %{_datadir}/wayland/wayland-scanner.mk
202 %{_pkgconfigdir}/wayland-client.pc
203 %{_pkgconfigdir}/wayland-cursor.pc
204 %{_pkgconfigdir}/wayland-scanner.pc
205 %{_pkgconfigdir}/wayland-server.pc
206 %{_aclocaldir}/wayland-scanner.m4
208 %{_mandir}/man3/wayland-*.c.3*
209 %{_mandir}/man3/wayland-*.h.3*
210 %{_mandir}/man3/wl_*.3*
213 %if %{with static_libs}
215 %defattr(644,root,root,755)
216 %{_libdir}/libwayland-client.a
217 %{_libdir}/libwayland-cursor.a
218 %{_libdir}/libwayland-server.a
223 %defattr(644,root,root,755)
224 %doc doc/publican/Wayland/en-US/html/*
228 %defattr(644,root,root,755)
229 %attr(755,root,root) %{_libdir}/libwayland-egl.so.*.*.*
230 %attr(755,root,root) %ghost %{_libdir}/libwayland-egl.so.1
233 %defattr(644,root,root,755)
234 %attr(755,root,root) %{_libdir}/libwayland-egl.so
235 %{_includedir}/wayland-egl*.h
236 %{_pkgconfigdir}/wayland-egl.pc
237 %{_pkgconfigdir}/wayland-egl-backend.pc
239 %if %{with static_libs}
241 %defattr(644,root,root,755)
242 %{_libdir}/libwayland-egl.a