From 7ca5eaf000103428f070285b2c6d99c2802e59884e470ea05ae96be2c480be87 Mon Sep 17 00:00:00 2001 From: Petr Gajdos Date: Mon, 14 Dec 2020 14:03:10 +0000 Subject: [PATCH] Accepting request 855763 from home:adkorte:branches:Apache - only include BuildRequires: apache2-{prefork,worker,event} used in test target OBS-URL: https://build.opensuse.org/request/show/855763 OBS-URL: https://build.opensuse.org/package/show/Apache/apache2?expand=0&rev=637 --- apache2.changes | 6 ++++++ apache2.spec | 10 ++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/apache2.changes b/apache2.changes index 193482f..6d68323 100644 --- a/apache2.changes +++ b/apache2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Dec 14 11:19:46 UTC 2020 - Arjen de Korte + +- only include BuildRequires: apache2-{prefork,worker,event} used in + test target + ------------------------------------------------------------------- Fri Dec 11 20:01:03 UTC 2020 - pgajdos@suse.com diff --git a/apache2.spec b/apache2.spec index 6bf7360..3b756e8 100644 --- a/apache2.spec +++ b/apache2.spec @@ -232,12 +232,18 @@ BuildRequires: pkgconfig(systemd) BuildRequires: apache-rpm-macros BuildRequires: apache2 BuildRequires: apache2-devel -BuildRequires: apache2-event BuildRequires: apache2-manual -BuildRequires: apache2-prefork BuildRequires: apache2-utils +%endif +%if "%{flavor}" == "test_prefork" +BuildRequires: apache2-prefork +%endif +%if "%{flavor}" == "test_worker" BuildRequires: apache2-worker %endif +%if "%{flavor}" == "test_event" +BuildRequires: apache2-event +%endif %if %{unittest} BuildRequires: mod_php_any # perl-doc is assumed by t/filter/case.t (/usr/lib/perl5/*/pod/perlsub.pod)