From bd8176212e15fa67d2e5483add2e1ed5d42333b893f83146b534565798f8c24d Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 4 Feb 2015 15:04:55 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/wayland?expand=0&rev=57 --- wayland.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/wayland.spec b/wayland.spec index f96091e..e19a6e6 100644 --- a/wayland.spec +++ b/wayland.spec @@ -39,6 +39,10 @@ BuildRequires: pkg-config BuildRequires: xz BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(libffi) +%define with_doc 0 +%if 0%with_doc +BuildRequires: doxygen graphviz-gnome xmlto +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -117,8 +121,12 @@ if [ ! -e configure ]; then autoreconf -fi; fi; %configure --disable-static --includedir="%_includedir/%name" \ - --docdir="%_defaultdocdir/%name" --disable-documentation -make %{?_smp_mflags} V=1 +%if %with_doc + --docdir="%_defaultdocdir/%name" +%else + --disable-documentation +%endif +make %{?_smp_mflags} %install make DESTDIR="%buildroot" install %{?_smp_mflags} @@ -165,4 +173,11 @@ fi #%_datadir/pkgconfig/wayland-*.pc %_datadir/wayland/ +%if %with_doc +%files doc +%defattr(-,root,root) +%_mandir/man3/wl*.3* +%_docdir/%name/ +%endif + %changelog