Blame SPECS/mod_lookup_identity.spec

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