Blame SPECS/mod_intercept_form_submit.spec

e49b4c
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}}
e49b4c
%{!?_httpd_apxs:       %{expand: %%global _httpd_apxs       %%{_sbindir}/apxs}}
e49b4c
%{!?_httpd_confdir:    %{expand: %%global _httpd_confdir    %%{_sysconfdir}/httpd/conf.d}}
e49b4c
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
e49b4c
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
e49b4c
%{!?_httpd_moddir:    %{expand: %%global _httpd_moddir    %%{_libdir}/httpd/modules}}
e49b4c
e49b4c
Summary: Apache module to intercept login form submission and run PAM authentication
e49b4c
Name: mod_intercept_form_submit
e49b4c
Version: 1.1.0
e49b4c
Release: 5%{?dist}
e49b4c
License: ASL 2.0
e49b4c
Group: System Environment/Daemons
e49b4c
URL: http://www.adelton.com/apache/mod_intercept_form_submit/
e49b4c
Source0: http://www.adelton.com/apache/mod_intercept_form_submit/%{name}-%{version}.tar.gz
e49b4c
BuildRequires: httpd-devel
e49b4c
BuildRequires: pkgconfig
e49b4c
Requires: httpd-mmn = %{_httpd_mmn}
e49b4c
Requires: mod_authnz_pam >= 0.7
e49b4c
e49b4c
# Suppres auto-provides for module DSO per
e49b4c
# https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering#Summary
e49b4c
%{?filter_provides_in: %filter_provides_in %{_libdir}/httpd/modules/.*\.so$}
e49b4c
%{?filter_setup}
e49b4c
e49b4c
%description
e49b4c
mod_intercept_form_submit can intercept submission of application login
e49b4c
forms. It retrieves the login and password information from the POST
e49b4c
HTTP request, runs PAM authentication with those credentials, and sets
e49b4c
the REMOTE_USER environment variable if the authentication passes.
e49b4c
e49b4c
%prep
e49b4c
%setup -q -n %{name}-%{version}
e49b4c
e49b4c
%build
e49b4c
%{_httpd_apxs} -c -Wc,"%{optflags} -Wall -pedantic -std=c99" mod_intercept_form_submit.c
e49b4c
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
e49b4c
echo > intercept_form_submit.confx
e49b4c
echo "# Load the module in %{_httpd_modconfdir}/55-intercept_form_submit.conf" >> intercept_form_submit.confx
e49b4c
cat intercept_form_submit.conf >> intercept_form_submit.confx
e49b4c
%else
e49b4c
cat intercept_form_submit.module > intercept_form_submit.confx
e49b4c
cat intercept_form_submit.conf >> intercept_form_submit.confx
e49b4c
%endif
e49b4c
e49b4c
%install
e49b4c
rm -rf $RPM_BUILD_ROOT
e49b4c
install -Dm 755 .libs/mod_intercept_form_submit.so $RPM_BUILD_ROOT%{_httpd_moddir}/mod_intercept_form_submit.so
e49b4c
e49b4c
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
e49b4c
# httpd >= 2.4.x
e49b4c
install -Dp -m 0644 intercept_form_submit.module $RPM_BUILD_ROOT%{_httpd_modconfdir}/55-intercept_form_submit.conf
e49b4c
%endif
e49b4c
install -Dp -m 0644 intercept_form_submit.confx $RPM_BUILD_ROOT%{_httpd_confdir}/intercept_form_submit.conf
e49b4c
e49b4c
%files
e49b4c
%doc README LICENSE docs/*
e49b4c
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
e49b4c
%config(noreplace) %{_httpd_modconfdir}/55-intercept_form_submit.conf
e49b4c
%endif
e49b4c
%config(noreplace) %{_httpd_confdir}/intercept_form_submit.conf
e49b4c
%{_httpd_moddir}/*.so
e49b4c
e49b4c
%changelog
e49b4c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
e49b4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e49b4c
e49b4c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
e49b4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e49b4c
e49b4c
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.1.0-3
e49b4c
- Rebuild due to bug in RPM (RHBZ #1468476)
e49b4c
e49b4c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
e49b4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e49b4c
e49b4c
* Wed Nov 23 2016 Jan Pazdziora <jpazdziora@redhat.com> - 1.1.0-1
e49b4c
- Logging improvements.
e49b4c
e49b4c
* Fri May 06 2016 Jan Pazdziora <jpazdziora@redhat.com> - 1.0.1-1
e49b4c
- Add support for InterceptGETOnSuccess.
e49b4c
e49b4c
* Mon Mar 21 2016 Jan Pazdziora <jpazdziora@redhat.com> - 1.0.0-1
e49b4c
- 1319094 - the Requires(pre) httpd does not seem to be needed.
e49b4c
e49b4c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8-4
e49b4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e49b4c
e49b4c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-3
e49b4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e49b4c
e49b4c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-2
e49b4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
e49b4c
e49b4c
* Mon Jun 30 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.8-1
e49b4c
- 1109923 - Fix module loading/configuration for Apache 2.4.
e49b4c
- Document the runtime dependency on pam_authenticate_with_login_password.
e49b4c
- Comment/code cleanup.
e49b4c
e49b4c
* Tue May 13 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.7-1
e49b4c
- No longer call lookup_identity_hook explicitly, hook order does
e49b4c
  the same.
e49b4c
- Silence compile warnings by specifying C99.
e49b4c
e49b4c
* Tue Apr 15 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.6-1
e49b4c
- Add support for InterceptFormLoginRealms.
e49b4c
e49b4c
* Thu Jan 30 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.5-1
e49b4c
- 1058809 - .spec changes for Fedora package review.
e49b4c