Blame SPECS/mod_authnz_pam.spec

e85155
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}}
e85155
%{!?_httpd_apxs:       %{expand: %%global _httpd_apxs       %%{_sbindir}/apxs}}
e85155
%{!?_httpd_confdir:    %{expand: %%global _httpd_confdir    %%{_sysconfdir}/httpd/conf.d}}
e85155
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
e85155
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
e85155
%{!?_httpd_moddir:    %{expand: %%global _httpd_moddir    %%{_libdir}/httpd/modules}}
e85155
e85155
Summary: PAM authorization checker and PAM Basic Authentication provider
e85155
Name: mod_authnz_pam
e85155
Version: 1.2.2
e85155
Release: 3%{?dist}
e85155
License: ASL 2.0
e85155
URL: https://www.adelton.com/apache/mod_authnz_pam/
e85155
Source0: https://www.adelton.com/apache/mod_authnz_pam/%{name}-%{version}.tar.gz
e85155
BuildRequires: gcc
e85155
BuildRequires: httpd-devel
e85155
BuildRequires: pam-devel
e85155
BuildRequires: pkgconfig
e85155
Requires: httpd-mmn = %{_httpd_mmn}
e85155
Requires: pam
e85155
e85155
# Suppres auto-provides for module DSO per
e85155
# https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering#Summary
e85155
%{?filter_provides_in: %filter_provides_in %{_libdir}/httpd/modules/.*\.so$}
e85155
%{?filter_setup}
e85155
e85155
%description
e85155
mod_authnz_pam is a PAM authorization module, supplementing
e85155
authentication done by other modules, for example mod_auth_kerb; it
e85155
can also be used as full Basic Authentication provider which runs the
e85155
[login, password] authentication through the PAM stack.
e85155
e85155
%prep
e85155
%setup -q -n %{name}-%{version}
e85155
e85155
%build
e85155
%{_httpd_apxs} -c -Wc,"%{optflags} -Wall -pedantic -std=c99" -lpam mod_authnz_pam.c
e85155
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
e85155
echo > authnz_pam.confx
e85155
echo "# Load the module in %{_httpd_modconfdir}/55-authnz_pam.conf" >> authnz_pam.confx
e85155
cat authnz_pam.conf >> authnz_pam.confx
e85155
%else
e85155
cat authnz_pam.module > authnz_pam.confx
e85155
cat authnz_pam.conf >> authnz_pam.confx
e85155
%endif
e85155
e85155
%install
e85155
rm -rf $RPM_BUILD_ROOT
e85155
install -Dm 755 .libs/mod_authnz_pam.so $RPM_BUILD_ROOT%{_httpd_moddir}/mod_authnz_pam.so
e85155
e85155
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
e85155
# httpd >= 2.4.x
e85155
install -Dp -m 0644 authnz_pam.module $RPM_BUILD_ROOT%{_httpd_modconfdir}/55-authnz_pam.conf
e85155
%endif
e85155
install -Dp -m 0644 authnz_pam.confx $RPM_BUILD_ROOT%{_httpd_confdir}/authnz_pam.conf
e85155
e85155
%files
e85155
%doc README LICENSE
e85155
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
e85155
%config(noreplace) %{_httpd_modconfdir}/55-authnz_pam.conf
e85155
%endif
e85155
%config(noreplace) %{_httpd_confdir}/authnz_pam.conf
e85155
%{_httpd_moddir}/*.so
e85155
e85155
%changelog
e85155
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.2-3
e85155
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
e85155
  Related: rhbz#1991688
e85155
e85155
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.2-2
e85155
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
e85155
e85155
* Tue Mar 30 2021 Jan Pazdziora <jpazdziora@redhat.com> - 1.2.2-1
e85155
- 1944553 - rebase to upstream version 1.2.2.
e85155
e85155
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
e85155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e85155
e85155
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
e85155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e85155
e85155
* Wed Jul 15 2020 Jan Pazdziora <jpazdziora@redhat.com> - 1.2.1-1
e85155
- 1855338 - rebase to upstream version 1.2.1.
e85155
e85155
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4
e85155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e85155
e85155
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
e85155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e85155
e85155
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
e85155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e85155
e85155
* Tue Jul 17 2018 Jan Pazdziora <jpazdziora@redhat.com> - 1.2.0-1
e85155
- Add support for mod_authn_socache.
e85155
e85155
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-9
e85155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e85155
e85155
* Fri Feb 23 2018 Jan Pazdziora <jpazdziora@redhat.com> - 1.1.0-8
e85155
- https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequires_and_Requires
e85155
e85155
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.0-7
e85155
- Escape macros in %%changelog
e85155
e85155
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-6
e85155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e85155
e85155
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
e85155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e85155
e85155
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
e85155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e85155
e85155
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.1.0-3
e85155
- Rebuild due to bug in RPM (RHBZ #1468476)
e85155
e85155
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
e85155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e85155
e85155
* Tue Nov 22 2016 Jan Pazdziora <jpazdziora@redhat.com> - 1.1.0-1
e85155
- Logging improvements; success logging moved from notice to info level.
e85155
- Fix redirect for AuthPAMExpiredRedirect with Basic Auth.
e85155
- Fix AuthPAMExpiredRedirect %%s escaping on Apache 2.2.
e85155
e85155
* Mon Mar 21 2016 Jan Pazdziora <jpazdziora@redhat.com> - 1.0.2-1
e85155
- 1319166 - the Requires(pre) httpd does not seem to be needed.
e85155
e85155
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4
e85155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e85155
e85155
* Tue Nov 10 2015 Jan Pazdziora <jpazdziora@redhat.com> - 1.0.1-1
e85155
- Fix handling of pre-auth / OTP / 2FA situations.
e85155
e85155
* Thu Jun 25 2015 Jan Pazdziora <jpazdziora@redhat.com> - 1.0.0-1
e85155
- Rebase to 1.0.0.
e85155
- Add support for AuthPAMExpiredRedirect.
e85155
e85155
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-3
e85155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e85155
e85155
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-2
e85155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
e85155
e85155
* Mon Jun 23 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.3-1
e85155
- Fix module loading/configuration for Apache 2.4.
e85155
- Set PAM_RHOST.
e85155
e85155
* Tue May 13 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.2-1
e85155
- Silence compile warnings by specifying C99.
e85155
e85155
* Tue Apr 15 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.1-1
e85155
- Fix error message when pam_authenticate step is skipped.
e85155
e85155
* Wed Mar 19 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9-1
e85155
- One more function made static for proper isolation.
e85155
e85155
* Thu Jan 30 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.8.1-1
e85155
- Fixing regression from previous change.
e85155
e85155
* Thu Jan 30 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.8-1
e85155
- 1058805 - .spec changes for Fedora package review.
e85155
e85155
* Thu Jan 09 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.7-1
e85155
- Declare all functions static for proper isolation.
e85155
e85155
* Wed Jan 08 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.6-1
e85155
- Make pam_authenticate_with_login_password available for other modules.
e85155
- Reformat documentation to make the Basic Auth usage less prominent.
e85155
e85155
* Mon Jan 06 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.5-1
e85155
- Initial release.