# 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.8.1
+Version: 1.12.0
Release: 1
License: MIT
Group: Libraries
-Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
-# Source0-md5: 6e877877c3e04cfb865cfcd0733c9ab1
+Source0: https://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
+# Source0-md5: ee615e2d1e205eec48b02f069327eb96
Patch1: %{name}-man.patch
-URL: http://wayland.freedesktop.org/
+URL: https://wayland.freedesktop.org/
BuildRequires: autoconf >= 2.64
BuildRequires: automake >= 1:1.11
BuildRequires: expat-devel >= 1.95
BuildRequires: libffi-devel >= 3
BuildRequires: libtool >= 2:2.2
+# for DTD valudation
+BuildRequires: libxml2-devel >= 2.0
BuildRequires: pkgconfig
%if %{with apidocs}
BuildRequires: docbook-style-xsl
Summary: Wayland API and protocol documentation
Summary(pl.UTF-8): Dokumentacja API biblioteki oraz protokołu Wayland
Group: Documentation
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
%description apidocs
Wayland API and protocol documentation.
# force regeneration (.so link is broken, double man3/)
%{__rm} doc/man/*.3
-# force doxygen man regeneration
-%{__rm} -r doc/doxygen/man
%build
%{__libtoolize}
DESTDIR=$RPM_BUILD_ROOT
# referenced by some installed wl_*.3 man pages
-cp -p doc/doxygen/man/man3/wayland-util.h.3 $RPM_BUILD_ROOT%{_mandir}/man3
+cp -p doc/doxygen/man/man3/wayland-{client-core,server,server-core,util}.h.3 \
+ doc/doxygen/man/man3/wayland-{client,server,shm,util}.c.3 $RPM_BUILD_ROOT%{_mandir}/man3
# obsoleted by pkg-config
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libwayland-*.la
%{_pkgconfigdir}/wayland-server.pc
%{_aclocaldir}/wayland-scanner.m4
%if %{with apidocs}
-%{_mandir}/man3/wayland-util.h.3*
+%{_mandir}/man3/wayland-*.c.3*
+%{_mandir}/man3/wayland-*.h.3*
%{_mandir}/man3/wl_*.3*
%endif