From e7e7a7fd71111709769f7697d5e7ea575e2eef24ce1b43bd61273544f3a5d73c Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 4 Jan 2020 21:43:23 +0000 Subject: [PATCH] Accepting request 760834 from home:StefanBruens:branches:openSUSE:Factory - Remove doxygen and graphviz BuildRequires, documentation has been disabled for some time already. OBS-URL: https://build.opensuse.org/request/show/760834 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/libinput?expand=0&rev=210 --- libinput.changes | 6 ++++++ libinput.spec | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/libinput.changes b/libinput.changes index d06a7de..88b2f50 100644 --- a/libinput.changes +++ b/libinput.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Jan 4 17:56:40 UTC 2020 - Stefan BrĂ¼ns + +- Remove doxygen and graphviz BuildRequires, documentation has + been disabled for some time already. + ------------------------------------------------------------------- Fri Jan 3 11:40:43 UTC 2020 - Jan Engelhardt diff --git a/libinput.spec b/libinput.spec index edbda16..53ca2c3 100644 --- a/libinput.spec +++ b/libinput.spec @@ -16,6 +16,8 @@ # +%bcond_with documentation + Name: libinput %define lname libinput10 Version: 1.15.0 @@ -33,10 +35,12 @@ Source4: %name.keyring Source5: libinput-rpmlintrc Patch1: kill-env.diff -BuildRequires: doxygen BuildRequires: fdupes BuildRequires: gcc-c++ +%if %{with documentation} +BuildRequires: doxygen BuildRequires: graphviz >= 2.26 +%endif BuildRequires: grep BuildRequires: meson >= 0.41.0 BuildRequires: pkg-config @@ -105,7 +109,7 @@ to develop applications that require libinput. --datadir="%_datadir/%name-%version" \ -Dudev-dir="%_prefix/lib/udev" \ -Dtests=false \ - -Ddocumentation=false \ + -Ddocumentation=%{?with_documentation:true}%{!?with_documentation:false} \ %nil %meson_build