Blame SPECS/mod_authnz_pam.spec

1448f5
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}}
1448f5
%{!?_httpd_apxs:       %{expand: %%global _httpd_apxs       %%{_sbindir}/apxs}}
1448f5
%{!?_httpd_confdir:    %{expand: %%global _httpd_confdir    %%{_sysconfdir}/httpd/conf.d}}
1448f5
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
1448f5
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
1448f5
%{!?_httpd_moddir:    %{expand: %%global _httpd_moddir    %%{_libdir}/httpd/modules}}
1448f5
1448f5
Summary: PAM authorization checker and PAM Basic Authentication provider
1448f5
Name: mod_authnz_pam
1448f5
Version: 0.9.3
1448f5
Release: 1%{?dist}
1448f5
License: ASL 2.0
1448f5
Group: System Environment/Daemons
1448f5
URL: http://www.adelton.com/apache/mod_authnz_pam/
1448f5
Source0: http://www.adelton.com/apache/mod_authnz_pam/%{name}-%{version}.tar.gz
1448f5
BuildRequires: httpd-devel
1448f5
BuildRequires: pam-devel
1448f5
BuildRequires: pkgconfig
1448f5
Requires(pre): httpd
1448f5
Requires: httpd-mmn = %{_httpd_mmn}
1448f5
Requires: pam
1448f5
1448f5
# Suppres auto-provides for module DSO per
1448f5
# https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering#Summary
1448f5
%{?filter_provides_in: %filter_provides_in %{_libdir}/httpd/modules/.*\.so$}
1448f5
%{?filter_setup}
1448f5
1448f5
%description
1448f5
mod_authnz_pam is a PAM authorization module, supplementing
1448f5
authentication done by other modules, for example mod_auth_kerb; it
1448f5
can also be used as full Basic Authentication provider which runs the
1448f5
[login, password] authentication through the PAM stack.
1448f5
1448f5
%prep
1448f5
%setup -q -n %{name}-%{version}
1448f5
1448f5
%build
1448f5
%{_httpd_apxs} -c -Wc,"%{optflags} -Wall -pedantic -std=c99" -lpam mod_authnz_pam.c
1448f5
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
1448f5
cp authnz_pam.conf authnz_pam.confx
1448f5
%else
1448f5
cat authnz_pam.module > authnz_pam.confx
1448f5
cat authnz_pam.conf >> authnz_pam.confx
1448f5
%endif
1448f5
1448f5
%install
1448f5
rm -rf $RPM_BUILD_ROOT
1448f5
install -Dm 755 .libs/mod_authnz_pam.so $RPM_BUILD_ROOT%{_httpd_moddir}/mod_authnz_pam.so
1448f5
1448f5
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
1448f5
# httpd >= 2.4.x
1448f5
install -Dp -m 0644 authnz_pam.module $RPM_BUILD_ROOT%{_httpd_modconfdir}/55-authnz_pam.conf
1448f5
%endif
1448f5
install -Dp -m 0644 authnz_pam.confx $RPM_BUILD_ROOT%{_httpd_confdir}/authnz_pam.conf
1448f5
1448f5
%files
1448f5
%doc README LICENSE
1448f5
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
1448f5
%config(noreplace) %{_httpd_modconfdir}/55-authnz_pam.conf
1448f5
%endif
1448f5
%config(noreplace) %{_httpd_confdir}/authnz_pam.conf
1448f5
%{_httpd_moddir}/*.so
1448f5
1448f5
%changelog
1448f5
* Mon Jun 23 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.3-1
1448f5
- Fix module loading/configuration for Apache 2.4.
1448f5
- Set PAM_RHOST.
1448f5
1448f5
* Tue May 13 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.2-1
1448f5
- Silence compile warnings by specifying C99.
1448f5
1448f5
* Tue Apr 15 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.1-1
1448f5
- Fix error message when pam_authenticate step is skipped.
1448f5
1448f5
* Wed Mar 19 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9-1
1448f5
- One more function made static for proper isolation.
1448f5
1448f5
* Thu Jan 30 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.8.1-1
1448f5
- Fixing regression from previous change.
1448f5
1448f5
* Thu Jan 30 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.8-1
1448f5
- 1058805 - .spec changes for Fedora package review.
1448f5
1448f5
* Thu Jan 09 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.7-1
1448f5
- Declare all functions static for proper isolation.
1448f5
1448f5
* Wed Jan 08 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.6-1
1448f5
- Make pam_authenticate_with_login_password available for other modules.
1448f5
- Reformat documentation to make the Basic Auth usage less prominent.
1448f5
1448f5
* Mon Jan 06 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.5-1
1448f5
- Initial release.