From 4a40cff82530b3c71be68b29dfc1d9ecc1401f24 Mon Sep 17 00:00:00 2001 From: Jan Pazdziora Date: Tue, 12 Jan 2016 11:44:59 +0100 Subject: [PATCH] Make the .spec work on RHEL 6 as well. https://copr.fedoraproject.org/coprs/adelton/mod_auth_openidc/ --- mod_auth_openidc.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mod_auth_openidc.spec b/mod_auth_openidc.spec index 877e0a7..33f4ea4 100644 --- a/mod_auth_openidc.spec +++ b/mod_auth_openidc.spec @@ -1,3 +1,9 @@ +%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}} +%{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/httpd/modules}} + +# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4 +%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}} + Name: mod_auth_openidc Version: 1.8.7 Release: 1%{?dist} @@ -42,7 +48,11 @@ echo 'LoadModule auth_openidc_module modules/mod_auth_openidc.so' > \ $RPM_BUILD_ROOT%{_httpd_modconfdir}/10-auth_openidc.conf %files +%if 0%{?rhel} && 0%{?rhel} < 7 +%doc LICENSE.txt +%else %license LICENSE.txt +%endif %doc ChangeLog %{_httpd_moddir}/mod_auth_openidc.so %config(noreplace) %{_httpd_modconfdir}/10-auth_openidc.conf