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://gitlab.freedesktop.org/wayland/wayland/-/releases/
14 Source0: https://gitlab.freedesktop.org/wayland/wayland/-/releases/%{version}/downloads/%{name}-%{version}.tar.xz
15 # Source0-md5: 7410ab549e3928fce9381455b17b0803
16 URL: https://wayland.freedesktop.org/
17 BuildRequires: automake
18 BuildRequires: expat-devel >= 1.95
19 BuildRequires: libffi-devel >= 3
21 BuildRequires: libxml2-devel >= 2.0
22 BuildRequires: meson >= 0.56.0
24 BuildRequires: pkgconfig
26 BuildRequires: docbook-style-xsl-nons
27 BuildRequires: doxygen >= 1.6.0
28 BuildRequires: graphviz >= 2.26.0
29 BuildRequires: libxslt-progs
30 BuildRequires: rpm-build >= 4.6
31 BuildRequires: rpmbuild(macros) >= 1.752
32 BuildRequires: tar >= 1:1.22
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 Wayland is a project to define a protocol for a compositor to talk to
40 its clients as well as a library implementation of the protocol. The
41 compositor can be a standalone display server running on Linux kernel
42 modesetting and evdev input devices, an X application, or a Wayland
43 client itself. The clients can be traditional applications, X servers
44 (rootless or fullscreen) or other display servers.
46 %description -l pl.UTF-8
47 Wayland to projekt definiujący protokół między serwerem składającym a
48 klientami, a także biblioteki implementujące ten protokół. Serwer
49 składający może być samodzielnym serwerem wyświetlającym działającym
50 na linuksowym kernel modesetting oraz urządzeniach wejściowych evdev,
51 aplikacją X lub klientem Wayland. Klientami mogą być tradycyjne
52 aplikacje, serwery X (rootless lub pełnoekranowe) lub inne serwery
56 Summary: Header files for Wayland libraries
57 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Wayland
58 Group: Development/Libraries
59 Requires: %{name} = %{version}-%{release}
60 Requires: libffi-devel
63 Header files for Wayland libraries.
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe bibliotek Wayland.
69 Summary: Static Wayland libraries
70 Summary(pl.UTF-8): Statyczne biblioteki Wayland
71 Group: Development/Libraries
72 Requires: %{name}-devel = %{version}-%{release}
75 Static Wayland libraries.
77 %description static -l pl.UTF-8
78 Statyczne biblioteki Wayland.
81 Summary: Wayland EGL library
82 Summary(pl.UTF-8): Biblioteka Wayland EGL
84 Obsoletes: Mesa-libwayland-egl < 18.2
89 %description egl -l pl.UTF-8
90 Biblioteka Wayland EGL.
93 Summary: Header files for Wayland EGL library
94 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Wayland EGL
95 Group: Development/Libraries
96 Requires: %{name}-devel = %{version}-%{release}
97 Requires: %{name}-egl = %{version}-%{release}
98 Obsoletes: Mesa-libwayland-egl-devel < 18.2
100 %description egl-devel
101 Header files for Wayland EGL library.
103 %description egl-devel -l pl.UTF-8
104 Pliki nagłówkowe biblioteki Wayland EGL.
107 Summary: Static Wayland EGL library
108 Summary(pl.UTF-8): Statyczna biblioteka Wayland EGL
109 Group: Development/Libraries
110 Requires: %{name}-egl-devel = %{version}-%{release}
112 %description egl-static
113 Static Wayland EGL library.
115 %description egl-static -l pl.UTF-8
116 Statyczna biblioteka Wayland EGL.
119 Summary: Wayland API and protocol documentation
120 Summary(pl.UTF-8): Dokumentacja API biblioteki oraz protokołu Wayland
125 Wayland API and protocol documentation.
127 %description apidocs -l pl.UTF-8
128 Dokumentacja API biblioteki oraz protokołu Wayland.
135 %{!?with_apidocs:-Ddocumentation=false} \
136 %{!?with_static_libs:--default-library=shared}
138 %ninja_build -C build
141 rm -rf $RPM_BUILD_ROOT
143 %ninja_install -C build
146 # packaged as %doc in -devel
147 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/wayland
151 rm -rf $RPM_BUILD_ROOT
153 %post -p /sbin/ldconfig
154 %postun -p /sbin/ldconfig
156 %post egl -p /sbin/ldconfig
157 %postun egl -p /sbin/ldconfig
160 %defattr(644,root,root,755)
161 %doc COPYING CONTRIBUTING.md README.md
162 %attr(755,root,root) %{_libdir}/libwayland-client.so.*.*.*
163 %attr(755,root,root) %ghost %{_libdir}/libwayland-client.so.0
164 %attr(755,root,root) %{_libdir}/libwayland-cursor.so.*.*.*
165 %attr(755,root,root) %ghost %{_libdir}/libwayland-cursor.so.0
166 %attr(755,root,root) %{_libdir}/libwayland-server.so.*.*.*
167 %attr(755,root,root) %ghost %{_libdir}/libwayland-server.so.0
170 %defattr(644,root,root,755)
171 %attr(755,root,root) %{_bindir}/wayland-scanner
172 %attr(755,root,root) %{_libdir}/libwayland-client.so
173 %attr(755,root,root) %{_libdir}/libwayland-cursor.so
174 %attr(755,root,root) %{_libdir}/libwayland-server.so
175 %{_includedir}/wayland-client*.h
176 %{_includedir}/wayland-cursor.h
177 %{_includedir}/wayland-server*.h
178 %{_includedir}/wayland-util.h
179 %{_includedir}/wayland-version.h
180 %dir %{_datadir}/wayland
181 %{_datadir}/wayland/wayland.dtd
182 %{_datadir}/wayland/wayland.xml
183 %{_datadir}/wayland/wayland-scanner.mk
184 %{_pkgconfigdir}/wayland-client.pc
185 %{_pkgconfigdir}/wayland-cursor.pc
186 %{_pkgconfigdir}/wayland-scanner.pc
187 %{_pkgconfigdir}/wayland-server.pc
188 %{_aclocaldir}/wayland-scanner.m4
190 %{_mandir}/man3/wl_*.3*
192 # NOTE: temporarily here because they're used but not included in Mesa 18.1.x
193 # TODO: move to -egl-devel after transition to Mesa 18.2.x
194 %{_includedir}/wayland-egl.h
195 %{_includedir}/wayland-egl-core.h
197 %if %{with static_libs}
199 %defattr(644,root,root,755)
200 %{_libdir}/libwayland-client.a
201 %{_libdir}/libwayland-cursor.a
202 %{_libdir}/libwayland-server.a
207 %defattr(644,root,root,755)
208 %doc build/doc/publican/html/* doc/publican/sources/{css,images}
212 %defattr(644,root,root,755)
213 %attr(755,root,root) %{_libdir}/libwayland-egl.so.*.*.*
214 %attr(755,root,root) %ghost %{_libdir}/libwayland-egl.so.1
217 %defattr(644,root,root,755)
218 %attr(755,root,root) %{_libdir}/libwayland-egl.so
219 %{_includedir}/wayland-egl-backend.h
220 %{_pkgconfigdir}/wayland-egl.pc
221 %{_pkgconfigdir}/wayland-egl-backend.pc
223 %if %{with static_libs}
225 %defattr(644,root,root,755)
226 %{_libdir}/libwayland-egl.a