Blame SPECS/mod_auth_mellon.spec

198568
%{?scl:%scl_package mod_auth_mellon}
198568
198568
Summary: A SAML 2.0 authentication module for the Apache Httpd Server
198568
Name: %{?scl:%scl_prefix}mod_auth_mellon
198568
Version: 0.13.1
87abe9
Release: 2%{?dist}.1
198568
Group: System Environment/Daemons
198568
Source0: https://github.com/UNINETT/mod_auth_mellon/releases/download/v%{version}/mod_auth_mellon-%{version}.tar.gz
198568
Source1: auth_mellon.conf
198568
Source2: 10-auth_mellon.conf
198568
Source3: mod_auth_mellon.conf
198568
Source4: mellon_create_metadata.sh
198568
Source5: user_guide.tar.gz
198568
License: GPLv2+
198568
198568
BuildRequires: curl-devel
198568
BuildRequires: glib2-devel
198568
BuildRequires: %{?scl:%scl_prefix}httpd-devel
198568
BuildRequires: lasso-devel >= 2.5.0
198568
BuildRequires: openssl-devel
198568
BuildRequires: xmlsec1-devel
198568
%if 0%{?scl:1}
198568
Requires: %{?scl:%scl_prefix}httpd-mmn = %{_httpd24_mmn}
198568
%else
198568
Requires: httpd-mmn = %{_httpd_mmn}
198568
%endif
198568
Requires: lasso >= 2.5.0
198568
%{?scl:Requires:%scl_runtime}
198568
198568
Url: https://github.com/UNINETT/mod_auth_mellon
198568
198568
Patch1: log_typo.patch
198568
Patch2: post_segfault.patch
198568
Patch3: lasso_error_check.patch
198568
Patch4: mellon_user_case_insensitive.patch
198568
Patch5: log_no_idp.patch
198568
Patch6: update_log_invalid_dst.patch
87abe9
Patch7: mod_auth_mellon-0.13.1-CVE-2019-3878.patch
198568
198568
%description
198568
The mod_auth_mellon module is an authentication service that implements the
198568
SAML 2.0 federation protocol. It grants access based on the attributes
198568
received in assertions generated by a IdP server.
198568
198568
%prep
198568
%setup -q -n mod_auth_mellon-%{version}
198568
%patch1 -p1
198568
%patch2 -p1
198568
%patch3 -p1
198568
%patch4 -p1
198568
%patch5 -p1
198568
%patch6 -p1
87abe9
%patch7 -p1
198568
198568
%build
198568
%if 0%{?scl:1}
198568
export APXS=%{_httpd24_apxs}
198568
%else
198568
export APXS=%{_httpd_apxs}
198568
%endif
198568
%configure --with-apxs2=$APXS
198568
make %{?_smp_mflags}
198568
198568
%install
198568
# install module
198568
%if 0%{?scl:1}
198568
install -Dm 755 .libs/mod_auth_mellon.so \
198568
        %{buildroot}%{_httpd24_moddir}/mod_auth_mellon.so
198568
%else
198568
install -Dm 755 .libs/mod_auth_mellon.so \
198568
        %{buildroot}%{_httpd_moddir}/mod_auth_mellon.so
198568
%endif
198568
198568
# install module configuration
198568
%if 0%{?scl:1}
198568
mkdir -p %{buildroot}%{_httpd24_confdir}
198568
install -m 644 %{SOURCE1} %{buildroot}%{_httpd24_confdir}
198568
mkdir -p %{buildroot}%{_httpd24_modconfdir}
198568
install -m 644 %{SOURCE2} %{buildroot}%{_httpd24_modconfdir}
198568
%else
198568
mkdir -p %{buildroot}%{_httpd_confdir}
198568
install -m 644 %{SOURCE1} %{buildroot}%{_httpd_confdir}
198568
mkdir -p %{buildroot}%{_httpd_modconfdir}
198568
install -m 644 %{SOURCE2} %{buildroot}%{_httpd_modconfdir}
198568
%endif
198568
198568
mkdir -p %{buildroot}%{_tmpfilesdir}
198568
install -m 644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}
198568
mkdir -p %{buildroot}%{_localstatedir}/run/mod_auth_mellon
198568
198568
# install script to generate metadata
198568
mkdir -p %{buildroot}%{_libexecdir}/mod_auth_mellon
198568
install -m 755 %{SOURCE4} %{buildroot}%{_libexecdir}/mod_auth_mellon
198568
198568
# install user guide
198568
mkdir -p %{buildroot}%{_pkgdocdir}
198568
tar -C %{buildroot}%{_pkgdocdir} -xf %{SOURCE5}
198568
198568
%files
198568
%defattr(-,root,root)
198568
%if 0%{?rhel} && 0%{?rhel} < 7
198568
%doc COPYING
198568
%else
198568
%license COPYING
198568
%endif
198568
%doc README NEWS ECP.rst
198568
%doc %{_pkgdocdir}/user_guide
198568
198568
%if 0%{?scl:1}
198568
%config(noreplace) %{_httpd24_modconfdir}/10-auth_mellon.conf
198568
%config(noreplace) %{_httpd24_confdir}/auth_mellon.conf
198568
%{_httpd24_moddir}/mod_auth_mellon.so
198568
%else
198568
%config(noreplace) %{_httpd_modconfdir}/10-auth_mellon.conf
198568
%config(noreplace) %{_httpd_confdir}/auth_mellon.conf
198568
%{_httpd_moddir}/mod_auth_mellon.so
198568
%endif
198568
%{_tmpfilesdir}/mod_auth_mellon.conf
198568
%{_libexecdir}/mod_auth_mellon
198568
%dir %{_localstatedir}/run/mod_auth_mellon/
198568
198568
%changelog
87abe9
* Wed Apr 03 2019 Lubos Uhliarik <luhliari@redhat.com> - 0.13.1-2.1
87abe9
- Resolves: #1692458 - CVE-2019-3878 httpd24-mod_auth_mellon: mod_auth_mellon:
87abe9
  authentication bypass in ECP flow
87abe9
198568
* Fri Jan 05 2018 Luboš Uhliarik <luhliari@redhat.com> - 0.13.1-2
198568
- Resolves: #1514391 - [RFE] Include mod_auth_mellon for RHSCL httpd24
198568
- Merged with RHEL-7.5 branch, SCLized spec
198568
198568
* Fri Oct 20 2017 John Dennis <jdennis@redhat.com> - 0.13.1-1
198568
- Resolves: rhbz#1481332 Upgrade to current upstream 0.13.1
198568
- Adds the following upstream bug fixes on top of 0.13.1:
198568
  * ee97812 Add Mellon User Guide
198568
  * daa5d1e If no IdP's are defined explicitly log that fact
198568
  * c291232 Make MellonUser case-insensitive.
198568
  * 2c2e19d Fix incorrect error check for many `lasso_*`-functions.
198568
  * 5c5ed1d Fix segmentation fault with POST field without a value.
198568
  * 4c924d9 Fix some log message typos
198568
  * 93faba4 Update log msg for Invalid Destination and Invalid Audience to
198568
    show both the expected and received values.
198568
- Add new mellon user guide to installed docdir
198568
198568
* Mon Jan 30 2017 John Dennis <jdennis@redhat.com> - 0.11.0-4
198568
- Resolves: rhbz#1414021 - Incorrect Content-Type header in ECP PAOS
198568
  Rebuilding due to missing comment in Changelog
198568
198568
* Mon Jan 30 2017 John Dennis <jdennis@redhat.com> - 0.11.0-3
198568
- Resolves: rhbz#1414021 - Incorrect Content-Type header in ECP PAOS
198568
198568
* Fri Apr  8 2016 John Dennis <jdennis@redhat.com> - 0.11.0-2
198568
- Resolves: bug #1296286
198568
  mod_auth_mellon emits CRITICAL warning message in Apache log when doing ECP
198568
- Resolves: bug #1324536
198568
  Installing mod_auth_mellon causes working Kerberos authentication
198568
  to start failing
198568
- Add ECP.rst documentation file that was erroneously omitted
198568
198568
* Fri Sep 18 2015 John Dennis <jdennis@redhat.com> - 0.11.0-1
198568
- Upgrade to upstream 0.11.0 release.
198568
- Includes ECP support, see NEWS for all changes.
198568
- Update mellon_create_metadata.sh to match internally generated metadata,
198568
  includes AssertionConsumerService for postResponse, artifactResponse &
198568
  paosResponse.
198568
- Add lasso 2.5.0 version dependency
198568
- Resolves: #1205345
198568
198568
* Mon Aug 24 2015 John Dennis <jdennis@redhat.com> - 0.10.0-3
198568
- Rebase to upstream 0.10.0 release
198568
- Apply upstream commits post 0.10.0 release
198568
- Apply revised ECP pending patches,
198568
  fix patch to pickup change in configure script that causes
198568
  HAVE_ECP to be defined
198568
- Resolves: #1205345
198568
198568
* Wed Aug 19 2015 John Dennis <jdennis@redhat.com> - 0.10.0-2
198568
- Rebase to upstream 0.10.0 release
198568
- Apply upstream commits post 0.10.0 release
198568
- Apply revised ECP pending patches
198568
- Resolves: #1205345
198568
198568
* Mon Jun 22 2015 John Dennis <jdennis@redhat.com> - 0.10.0-1
198568
- Rebase to upstream 0.10.0 release
198568
- Apply upstream commits post 0.10.0 release
198568
- Apply ECP pending patches
198568
- Resolves: #1205345
198568
198568
* Mon Dec  8 2014 Simo Sorce <simo@redhat.com> 0.9.1-4
198568
- Large scale intreop patches
198568
- Resolves: #1167844
198568
198568
* Wed Sep 10 2014 Simo Sorce <simo@redhat.com> 0.9.1-3
198568
- Fix upstream sources URL
198568
- Related: #1120353
198568
198568
* Fri Sep  5 2014 Simo Sorce <simo@redhat.com> 0.9.1-2
198568
- Import package in RHEL7
198568
- Resolves: #1120353
198568
198568
* Tue Sep  2 2014 Simo Sorce <simo@redhat.com> 0.9.1-1
198568
- New upstream release
198568
198568
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
198568
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
198568
198568
* Tue Jun 24 2014 Simo Sorce <simo@redhat.com> 0.8.0-1
198568
- New upstream realease version 0.8.0
198568
- Upstream moved to github
198568
- Drops patches as they have been all included upstream
198568
198568
* Fri Jun 20 2014 Simo Sorce <simo@redhat.com> 0.7.0-3
198568
- Backport of useful patches from upstream
198568
  - Better handling of IDP reported errors
198568
  - Better handling of session data storage size
198568
198568
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-2
198568
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
198568
198568
* Tue Dec 10 2013 Simo Sorce <simo@redhat.com> 0.7.0-1
198568
- Fix ownership of /run files
198568
198568
* Wed Nov 27 2013 Simo Sorce <simo@redhat.com> 0.7.0-0
198568
- Initial Fedora release based on version 0.7.0
198568
- Based on an old spec file by Jean-Marc Liger <jmliger@siris.sorbonne.fr>