commit ae36bb0567a7adc15a6fb1e516621dfb928d59ca
Author: Xavier Bachelot <xavier(a)bachelot.org>
Date: Thu Aug 20 11:33:30 2020 +0200
Replace dependency on mod_php with php(httpd) for all but EL6
nrdp.spec | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/nrdp.spec b/nrdp.spec
index 85a873b..35df97e 100644
--- a/nrdp.spec
+++ b/nrdp.spec
@@ -4,7 +4,7 @@
Name: nrdp
Version: 1.5.2
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Nagios Remote Data Processor
# NRDP php client is BSD
@@ -21,7 +21,11 @@ BuildArch: noarch
Requires: nagios
# For clarity since Nagios should pull them
Requires: httpd
+%if 0%{?fedora} || 0%{?rhel} > 6
+Requires: php(httpd)
+%else
Requires: mod_php
+%endif
Provides: bundled(js-jquery) = 3.2.1
Provides: bundled(js-bootstrap) = 4.0.0
@@ -109,6 +113,9 @@ install -m 0755 -D -p clients/* %{buildroot}%{_bindir}/
%changelog
+* Thu Aug 20 2020 Xavier Bachelot <xavier(a)bachelot.org> 1.5.2-7
+- Replace dependency on mod_php with php(httpd) for all but EL6
+
* Wed Aug 19 2020 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
1.5.2-6
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild