# # Conditional build: %bcond_without apidocs # don't build API documentation %bcond_without static_libs # don't build static libraries Summary: Wayland - protocol for a compositor to talk to its clients Summary(pl.UTF-8): Wayland - protokół między serwerem składającym a klientami Name: wayland Version: 1.22.0 Release: 1 License: MIT Group: Libraries #Source0Download: https://gitlab.freedesktop.org/wayland/wayland/-/releases/ Source0: https://gitlab.freedesktop.org/wayland/wayland/-/releases/%{version}/downloads/%{name}-%{version}.tar.xz # Source0-md5: 7410ab549e3928fce9381455b17b0803 URL: https://wayland.freedesktop.org/ BuildRequires: automake BuildRequires: expat-devel >= 1.95 BuildRequires: libffi-devel >= 3 # for DTD valudation BuildRequires: libxml2-devel >= 2.0 BuildRequires: meson >= 0.56.0 BuildRequires: ninja BuildRequires: pkgconfig %if %{with apidocs} BuildRequires: docbook-style-xsl-nons BuildRequires: doxygen >= 1.6.0 BuildRequires: graphviz >= 2.26.0 BuildRequires: libxslt-progs BuildRequires: rpm-build >= 4.6 BuildRequires: rpmbuild(macros) >= 1.752 BuildRequires: tar >= 1:1.22 BuildRequires: xmlto BuildRequires: xz %endif BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Wayland is a project to define a protocol for a compositor to talk to its clients as well as a library implementation of the protocol. The compositor can be a standalone display server running on Linux kernel modesetting and evdev input devices, an X application, or a Wayland client itself. The clients can be traditional applications, X servers (rootless or fullscreen) or other display servers. %description -l pl.UTF-8 Wayland to projekt definiujący protokół między serwerem składającym a klientami, a także biblioteki implementujące ten protokół. Serwer składający może być samodzielnym serwerem wyświetlającym działającym na linuksowym kernel modesetting oraz urządzeniach wejściowych evdev, aplikacją X lub klientem Wayland. Klientami mogą być tradycyjne aplikacje, serwery X (rootless lub pełnoekranowe) lub inne serwery wyświetlające. %package devel Summary: Header files for Wayland libraries Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Wayland Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: libffi-devel %description devel Header files for Wayland libraries. %description devel -l pl.UTF-8 Pliki nagłówkowe bibliotek Wayland. %package static Summary: Static Wayland libraries Summary(pl.UTF-8): Statyczne biblioteki Wayland Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static Wayland libraries. %description static -l pl.UTF-8 Statyczne biblioteki Wayland. %package egl Summary: Wayland EGL library Summary(pl.UTF-8): Biblioteka Wayland EGL Group: Libraries Obsoletes: Mesa-libwayland-egl < 18.2 %description egl Wayland EGL library. %description egl -l pl.UTF-8 Biblioteka Wayland EGL. %package egl-devel Summary: Header files for Wayland EGL library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Wayland EGL Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} Requires: %{name}-egl = %{version}-%{release} Obsoletes: Mesa-libwayland-egl-devel < 18.2 %description egl-devel Header files for Wayland EGL library. %description egl-devel -l pl.UTF-8 Pliki nagłówkowe biblioteki Wayland EGL. %package egl-static Summary: Static Wayland EGL library Summary(pl.UTF-8): Statyczna biblioteka Wayland EGL Group: Development/Libraries Requires: %{name}-egl-devel = %{version}-%{release} %description egl-static Static Wayland EGL library. %description egl-static -l pl.UTF-8 Statyczna biblioteka Wayland EGL. %package apidocs Summary: Wayland API and protocol documentation Summary(pl.UTF-8): Dokumentacja API biblioteki oraz protokołu Wayland Group: Documentation BuildArch: noarch %description apidocs Wayland API and protocol documentation. %description apidocs -l pl.UTF-8 Dokumentacja API biblioteki oraz protokołu Wayland. %prep %setup -q %build %meson build \ %{!?with_apidocs:-Ddocumentation=false} \ %{!?with_static_libs:--default-library=shared} %ninja_build -C build %install rm -rf $RPM_BUILD_ROOT %ninja_install -C build %if %{with apidocs} # packaged as %doc in -devel %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/wayland %endif %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post egl -p /sbin/ldconfig %postun egl -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc COPYING CONTRIBUTING.md README.md %attr(755,root,root) %{_libdir}/libwayland-client.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libwayland-client.so.0 %attr(755,root,root) %{_libdir}/libwayland-cursor.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libwayland-cursor.so.0 %attr(755,root,root) %{_libdir}/libwayland-server.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libwayland-server.so.0 %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/wayland-scanner %attr(755,root,root) %{_libdir}/libwayland-client.so %attr(755,root,root) %{_libdir}/libwayland-cursor.so %attr(755,root,root) %{_libdir}/libwayland-server.so %{_includedir}/wayland-client*.h %{_includedir}/wayland-cursor.h %{_includedir}/wayland-server*.h %{_includedir}/wayland-util.h %{_includedir}/wayland-version.h %dir %{_datadir}/wayland %{_datadir}/wayland/wayland.dtd %{_datadir}/wayland/wayland.xml %{_datadir}/wayland/wayland-scanner.mk %{_pkgconfigdir}/wayland-client.pc %{_pkgconfigdir}/wayland-cursor.pc %{_pkgconfigdir}/wayland-scanner.pc %{_pkgconfigdir}/wayland-server.pc %{_aclocaldir}/wayland-scanner.m4 %if %{with apidocs} %{_mandir}/man3/wl_*.3* %endif # NOTE: temporarily here because they're used but not included in Mesa 18.1.x # TODO: move to -egl-devel after transition to Mesa 18.2.x %{_includedir}/wayland-egl.h %{_includedir}/wayland-egl-core.h %if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/libwayland-client.a %{_libdir}/libwayland-cursor.a %{_libdir}/libwayland-server.a %endif %if %{with apidocs} %files apidocs %defattr(644,root,root,755) %doc build/doc/publican/html/* doc/publican/sources/{css,images} %endif %files egl %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libwayland-egl.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libwayland-egl.so.1 %files egl-devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libwayland-egl.so %{_includedir}/wayland-egl-backend.h %{_pkgconfigdir}/wayland-egl.pc %{_pkgconfigdir}/wayland-egl-backend.pc %if %{with static_libs} %files egl-static %defattr(644,root,root,755) %{_libdir}/libwayland-egl.a %endif