Make the .spec work on RHEL 6 as well.
https://copr.fedoraproject.org/coprs/adelton/mod_auth_openidc/
This commit is contained in:
parent
ab639491af
commit
4a40cff825
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user