[mod_bw/el6] Require httpd-mmn, do not require httpd itself (#803067)
Jakub Hrozek
jhrozek at fedoraproject.org
Wed Mar 14 09:47:56 UTC 2012
commit 7a7b555e85c943946605b82f91fdcb503016c6b2
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 a6a3f27..e5fd1c1 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: 3%{?dist}
+Release: 4%{?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-4
+- Require httpd-mmn, do not require httpd itself (#803067)
+
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
More information about the scm-commits
mailing list