Blame SPECS/mod_authnz_pam.spec

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