Blame SPECS/mod_intercept_form_submit.spec

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