Blame SPECS/mod_lookup_identity.spec

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