Blame SPECS/mod_lookup_identity.spec

e524ce
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}}
e524ce
%{!?_httpd_apxs:       %{expand: %%global _httpd_apxs       %%{_sbindir}/apxs}}
e524ce
%{!?_httpd_confdir:    %{expand: %%global _httpd_confdir    %%{_sysconfdir}/httpd/conf.d}}
e524ce
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
e524ce
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
e524ce
%{!?_httpd_moddir:    %{expand: %%global _httpd_moddir    %%{_libdir}/httpd/modules}}
e524ce
e524ce
Summary: Apache module to retrieve additional information about the authenticated user
e524ce
Name: mod_lookup_identity
e524ce
Version: 1.0.0
e524ce
Release: 4%{?dist}
e524ce
License: ASL 2.0
e524ce
Group: System Environment/Daemons
e524ce
URL: http://www.adelton.com/apache/mod_lookup_identity/
e524ce
Source0: http://www.adelton.com/apache/mod_lookup_identity/%{name}-%{version}.tar.gz
e524ce
BuildRequires: httpd-devel
e524ce
BuildRequires: dbus-devel
e524ce
BuildRequires: pkgconfig
e524ce
Requires: httpd-mmn = %{_httpd_mmn}
e524ce
e524ce
# Suppres auto-provides for module DSO per
e524ce
# https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering#Summary
e524ce
%{?filter_provides_in: %filter_provides_in %{_libdir}/httpd/modules/.*\.so$}
e524ce
%{?filter_setup}
e524ce
e524ce
%description
e524ce
mod_lookup_identity can retrieve additional pieces of information
e524ce
about user authenticated in Apache httpd server and store these values
e524ce
in notes/environment variables to be consumed by web applications.
e524ce
Use of REMOTE_USER_* environment variables is recommended.
e524ce
e524ce
%prep
e524ce
%setup -q -n %{name}-%{version}
e524ce
e524ce
%build
e524ce
%{_httpd_apxs} -c -Wc,"%{optflags} -Wall -pedantic -std=c99 $(pkg-config --cflags dbus-1)" $(pkg-config --libs dbus-1) mod_lookup_identity.c
e524ce
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
e524ce
echo > lookup_identity.confx
e524ce
echo "# Load the module in %{_httpd_modconfdir}/55-lookup_identity.conf" >> lookup_identity.confx
e524ce
cat lookup_identity.conf >> lookup_identity.confx
e524ce
%else
e524ce
cat lookup_identity.module > lookup_identity.confx
e524ce
cat lookup_identity.conf >> lookup_identity.confx
e524ce
%endif
e524ce
e524ce
%install
e524ce
rm -rf $RPM_BUILD_ROOT
e524ce
install -Dm 755 .libs/mod_lookup_identity.so $RPM_BUILD_ROOT%{_httpd_moddir}/mod_lookup_identity.so
e524ce
e524ce
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
e524ce
# httpd >= 2.4.x
e524ce
install -Dp -m 0644 lookup_identity.module $RPM_BUILD_ROOT%{_httpd_modconfdir}/55-lookup_identity.conf
e524ce
%endif
e524ce
install -Dp -m 0644 lookup_identity.confx $RPM_BUILD_ROOT%{_httpd_confdir}/lookup_identity.conf
e524ce
e524ce
%files
e524ce
%doc README LICENSE
e524ce
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
e524ce
%config(noreplace) %{_httpd_modconfdir}/55-lookup_identity.conf
e524ce
%endif
e524ce
%config(noreplace) %{_httpd_confdir}/lookup_identity.conf
e524ce
%{_httpd_moddir}/*.so
e524ce
e524ce
%changelog
e524ce
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
e524ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e524ce
e524ce
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
e524ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e524ce
e524ce
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.0.0-2
e524ce
- Rebuild due to bug in RPM (RHBZ #1468476)
e524ce
e524ce
* Thu Apr 06 2017 Jan Pazdziora <jpazdziora@redhat.com> - 1.0.0-1
e524ce
- 1439711 - Rebase to upstream version 1.0.0.
e524ce
- Make LookupUserGECOS optional (no default) to support non-POSIX
e524ce
  user identities.
e524ce
e524ce
* Wed Mar 22 2017 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.9-1
e524ce
- 1434814 - Rebase to upstream version 0.9.9.
e524ce
- Add support for multiple users mapped to single certificate.
e524ce
e524ce
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8-2
e524ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e524ce
e524ce
* Wed Nov 23 2016 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.8-1
e524ce
- Logging improvements; lookup_user_by_certificate logging moved from
e524ce
  notice to info level.
e524ce
e524ce
* Thu Jun 16 2016 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.7-1
e524ce
- 1347490 - Rebase to upstream version 0.9.7.
e524ce
- Ensure lookup_user_by_certificate runs after mod_nss as well.
e524ce
e524ce
* Mon Mar 21 2016 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.6-1
e524ce
- 1319138 - the Requires(pre) httpd does not seem to be needed.
e524ce
e524ce
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-2
e524ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e524ce
e524ce
* Wed Jan 20 2016 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.5-1
e524ce
- Fix LookupUserByCertificate httpd-2.2 compatibility issue.
e524ce
e524ce
* Wed Jan 20 2016 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.4-1
e524ce
- Added LookupUserOutput headers and headers-base64.
e524ce
e524ce
* Mon Aug 03 2015 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.3-1
e524ce
- Added LookupUserByCertificate.
e524ce
e524ce
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-3
e524ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e524ce
e524ce
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-2
e524ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
e524ce
e524ce
* Fri Jun 27 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.2-1
e524ce
- Fix error handling and reporting.
e524ce
- Fix module loading/configuration for Apache 2.4.
e524ce
e524ce
* Tue May 13 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.1-1
e524ce
- Address code issues revealed by coverity scan.
e524ce
- Minor README fixes.
e524ce
e524ce
* Tue May 13 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.0-1
e524ce
- Add support for '+'-prefixed note/variable names.
e524ce
- Silence compile warnings by specifying C99.
e524ce
- Fix format of logs of dbus calls.
e524ce
e524ce
* Sat Feb 01 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.8.3-1
e524ce
- 1058812 - drop explicit dbus-libs dependency.
e524ce
e524ce
* Thu Jan 30 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.8.2-1
e524ce
- 1058812 - .spec changes for Fedora package review.
e524ce
e524ce
* Fri Jan 17 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.8.1-1
e524ce
- Ensure we run before mod_headers so that our result can be put to
e524ce
  request headers for mod_proxy.
e524ce
e524ce
* Thu Jan 09 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.8-1
e524ce
- Declare all functions static for proper isolation.
e524ce
e524ce
* Thu Nov 21 2013 Jan Pazdziora <jpazdziora@redhat.com> - 0.7.1-1
e524ce
- Address segfault when no LookupUserAttrIter is set.
e524ce
e524ce
* Tue Nov 19 2013 Jan Pazdziora <jpazdziora@redhat.com> - 0.7-1
e524ce
- Define lookup_identity_hook as optional function, callable from
e524ce
  other modules.
e524ce
e524ce
* Mon Nov 18 2013 Jan Pazdziora <jpazdziora@redhat.com> - 0.6-1
e524ce
- Use org.freedesktop.sssd.infopipe.GetUserGroups for group lists.
e524ce
- Support new org.freedesktop.sssd.infopipe.GetUserAttr parameters /
e524ce
  return values.
e524ce
- Removed LookupOutputGroupsSeparator.
e524ce
- LookupOutputGroups and LookupUserAttr now support separator as
e524ce
  optional second parameter.
e524ce
- Added LookupUserGroupsIter and LookupUserAttrIter.
e524ce
- Added LookupDbusTimeout.
e524ce
e524ce
* Mon Oct 28 2013 Jan Pazdziora <jpazdziora@redhat.com> - 0.5-1
e524ce
- Initial release.