[packages/wayland] - fix building without apidocs (documentation is disabled too so there are no man dirs)

hawk hawk at pld-linux.org
Tue Apr 4 15:57:50 CEST 2017


commit ed13418901dc8b11dc3f3e873c24d5a22bf54623
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Tue Apr 4 13:57:11 2017 +0000

    - fix building without apidocs (documentation is disabled too so there
      are no man dirs)

 wayland.spec | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/wayland.spec b/wayland.spec
index bd8cf28..4927e17 100644
--- a/wayland.spec
+++ b/wayland.spec
@@ -7,7 +7,7 @@ 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.12.0
-Release:	1
+Release:	2
 License:	MIT
 Group:		Libraries
 Source0:	https://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
@@ -113,9 +113,11 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%if %{with apidocs}
 # referenced by some installed wl_*.3 man pages
 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
+%endif
 
 # obsoleted by pkg-config
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwayland-*.la
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wayland.git/commitdiff/ed13418901dc8b11dc3f3e873c24d5a22bf54623



More information about the pld-cvs-commit mailing list