Blame SPECS/mod_authnz_pam.spec

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