Blame SPECS/mod_lookup_identity.spec

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