From 65677b2dae6be63b23990982c26869b51d58d783 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Wed, 12 Apr 2017 11:03:26 +0200 Subject: [PATCH] don't build doxygen documentation during modular build --- libevent.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libevent.spec b/libevent.spec index 03bcead..235510d 100644 --- a/libevent.spec +++ b/libevent.spec @@ -6,7 +6,7 @@ Name: libevent Version: 2.0.22 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Abstract asynchronous event notification library Group: System Environment/Libraries @@ -14,7 +14,10 @@ License: BSD URL: http://libevent.org/ Source0: https://github.com/libevent/libevent/releases/download/release-%{version}-stable/libevent-%{version}-stable.tar.gz -BuildRequires: doxygen openssl-devel +%if ! 0%{?_module_build} +BuildRequires: doxygen +%endif +BuildRequires: openssl-devel # Disable network tests Patch01: libevent-nonettests.patch @@ -56,8 +59,10 @@ This package contains the development documentation for %{name}. --disable-dependency-tracking --disable-static make %{?_smp_mflags} all +%if ! 0%{?_module_build} # Create the docs make doxygen +%endif %install make DESTDIR=$RPM_BUILD_ROOT install @@ -78,9 +83,11 @@ cat > $RPM_BUILD_ROOT%{_includedir}/event2/event-config.h << EOF #endif EOF +%if ! 0%{?_module_build} mkdir -p $RPM_BUILD_ROOT/%{develdocdir}/html (cd doxygen/html; \ install -p -m 644 *.* $RPM_BUILD_ROOT/%{develdocdir}/html) +%endif mkdir -p $RPM_BUILD_ROOT/%{develdocdir}/sample (cd sample; \ @@ -124,6 +131,9 @@ make check %{develdocdir}/ %changelog +* Wed Apr 12 2017 Nils Philippsen - 2.0.22-4 +- don't build doxygen documentation during modular build + * Mon Mar 27 2017 Tomáš Mráz - 2.0.22-3 - Make it build with OpenSSL-1.1.0, cherry-picked from upstream git