[mod_bw/f16] Require httpd-mmn, do not require httpd itself (#803067)

Jakub Hrozek jhrozek at fedoraproject.org
Wed Mar 14 09:43:47 UTC 2012


commit 904b307d1bdbac77d19345885c2547bd73cd3b82
Author: Jakub Hrozek <jhrozek at redhat.com>
Date:   Wed Mar 14 10:34:58 2012 +0100

    Require httpd-mmn, do not require httpd itself (#803067)

 mod_bw.spec |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/mod_bw.spec b/mod_bw.spec
index b622f77..0d76f55 100644
--- a/mod_bw.spec
+++ b/mod_bw.spec
@@ -1,6 +1,8 @@
+%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)}}
+
 Name:           mod_bw
 Version:        0.8
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Bandwidth Limiter For Apache
 
 Group:          System Environment/Daemons
@@ -11,7 +13,7 @@ Source1:        mod_bw.conf
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  httpd-devel
-Requires:       httpd
+Requires:       httpd-mmn = %{_httpd_mmn}
 
 %description
 mod_bw is a bandwidth administration module for Apache httpd 2.x
@@ -49,6 +51,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Wed Mar 14 2012 Jakub Hrozek <jhrozek at redhat.com> - 0.8-5
+- Require httpd-mmn, do not require httpd itself (#803067)
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list