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

Jakub Hrozek jhrozek at fedoraproject.org
Wed Mar 14 09:46:13 UTC 2012


commit 2b74f3710b726d3e82c025da93287336ce9eadde
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 575826c..c47b114 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:        1%{?dist}
+Release:        2%{?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,5 +51,8 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Wed Mar 14 2012 Jakub Hrozek <jhrozek at redhat.com> - 0.8-2
+- Require httpd-mmn, do not require httpd itself (#803067)
+
 * Mon Feb 18 2008 Jakub Hrozek <jhrozek at redhat.com> - 0.8-1
 - initial packaging


More information about the scm-commits mailing list