--- /dev/null
+--- wayland-1.0.6/doc/man/Makefile.am.orig 2013-02-14 20:47:25.000000000 +0100
++++ wayland-1.0.6/doc/man/Makefile.am 2013-03-29 10:29:29.977545252 +0100
+@@ -31,7 +31,7 @@
+ XSLTPROC_PROCESS_MAN = \
+ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
+ $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(MANPAGES_STYLESHEET) $< && \
+- $(SED) -i -e 's/^\.so \(.*\)\.\(.\)$$/\.so man\2\/\1\.\2/' $(MANPAGES_ALIASES)
++ $(SED) -i -e 's/^\.so \([^/]*\)\.\(.\)$$/\.so man\2\/\1\.\2/' $(MANPAGES_ALIASES)
+
+ %.1: %.xml
+ $(XSLTPROC_PROCESS_MAN)
Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
# Source0-md5: 936a2590aea69fa3c0cf234d54b9137c
Patch0: %{name}-publican.patch
+Patch1: %{name}-man.patch
URL: http://wayland.freedesktop.org/
BuildRequires: autoconf >= 2.64
BuildRequires: automake >= 1:1.11
test ! -f doc/Wayland/en_US/Revision_History.xml
%patch0 -p1
+%patch1 -p1
+
+# force regeneration (.so link is broken, double man3/)
+%{__rm} doc/man/*.3
%build
%{__libtoolize}
%configure \
--disable-silent-rules \
%{!?with_static_libs:--disable-static}
+
%{__make}
%install