summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pazdziora <jpazdziora@redhat.com>2014-01-30 14:32:27 +0800
committerJan Pazdziora <jpazdziora@redhat.com>2014-01-30 19:50:27 +0800
commit9e7871237edf3ca1f8b56015b88d890b7605e317 (patch)
tree35aeebfb9ae6a951967ecf3c9c4c8e3d86eb8fdd
parent58b4ed970c7d5f54186be0ecb22bc07423256f62 (diff)
downloadmod_authnz_pam-9e7871237edf3ca1f8b56015b88d890b7605e317.tar.gz
mod_authnz_pam-9e7871237edf3ca1f8b56015b88d890b7605e317.tar.xz
mod_authnz_pam-9e7871237edf3ca1f8b56015b88d890b7605e317.zip
Depend on httpd-mmn per https://fedoraproject.org/wiki/PackagingDrafts/ApacheHTTPModules#Run-Time_Dependencies.
-rw-r--r--mod_authnz_pam.spec3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod_authnz_pam.spec b/mod_authnz_pam.spec
index 388400c..754e0d5 100644
--- a/mod_authnz_pam.spec
+++ b/mod_authnz_pam.spec
@@ -1,3 +1,4 @@
+%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}}
%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}}
%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %%{_sysconfdir}/httpd/conf.d}}
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
@@ -16,7 +17,7 @@ BuildRequires: httpd-devel
BuildRequires: pam-devel
BuildRequires: pkgconfig
Requires(pre): httpd
-Requires: httpd
+Requires: httpd-mmn = %{_httpd_mmn}
Requires: pam
# Suppres auto-provides for module DSO