Blame SPECS/mod_auth_mellon.spec

9a1adf
Summary: A SAML 2.0 authentication module for the Apache Httpd Server
9a1adf
Name: mod_auth_mellon
9a1adf
Version: 0.14.0
9a1adf
Release: 7%{?dist}
9a1adf
Group: System Environment/Daemons
9a1adf
Source0: https://github.com/UNINETT/mod_auth_mellon/releases/download/v%{version}/%{name}-%{version}.tar.gz
9a1adf
Source1: auth_mellon.conf
9a1adf
Source2: 10-auth_mellon.conf
9a1adf
Source3: mod_auth_mellon.conf
9a1adf
Source4: mellon_create_metadata.sh
9a1adf
Source5: README.redhat.rst
9a1adf
Source6: mellon_user_guide.html
9a1adf
License: GPLv2+
9a1adf
BuildRequires: curl-devel
9a1adf
BuildRequires: glib2-devel
9a1adf
BuildRequires: httpd-devel
9a1adf
BuildRequires: lasso-devel >= 2.5.1
9a1adf
BuildRequires: openssl-devel
9a1adf
BuildRequires: xmlsec1-devel
9a1adf
Requires: httpd-mmn = %{_httpd_mmn}
9a1adf
Requires: lasso >= 2.5.1
9a1adf
Url: https://github.com/UNINETT/mod_auth_mellon
9a1adf
9a1adf
Patch0001: 0001-Modify-am_handler-setup-to-run-before-mod_proxy.patch
9a1adf
Patch0002: 0002-Fix-redirect-URL-validation-bypass.patch
9a1adf
Patch0003: 0003-Fix-incorrect-header-used-for-detecting-AJAX-request.patch
9a1adf
9a1adf
# FIXME: RHEL-7 does not have rubygem-asciidoctor, only asciidoc. However,
9a1adf
# I could not get asciidoc to render properly so instead I generated
9a1adf
# mellon_user_guide.html on Fedora using asciidoctor and included
9a1adf
# mellon_user_guide.html as a SOURCE. If the user guide source is updated
9a1adf
# the mellon_user_guide.html will need to be regenerated. 
9a1adf
9a1adf
%description
9a1adf
The mod_auth_mellon module is an authentication service that implements the
9a1adf
SAML 2.0 federation protocol. It grants access based on the attributes
9a1adf
received in assertions generated by a IdP server.
9a1adf
9a1adf
%prep
9a1adf
%setup -q -n %{name}-%{version}
9a1adf
%patch1 -p1
9a1adf
%patch2 -p1
9a1adf
%patch3 -p1
9a1adf
9a1adf
%build
9a1adf
export APXS=%{_httpd_apxs}
9a1adf
%configure --enable-diagnostics
9a1adf
make clean
9a1adf
make %{?_smp_mflags}
9a1adf
cp .libs/%{name}.so %{name}-diagnostics.so
9a1adf
9a1adf
%configure
9a1adf
make clean
9a1adf
make %{?_smp_mflags}
9a1adf
9a1adf
%install
9a1adf
# install module
9a1adf
mkdir -p %{buildroot}%{_httpd_moddir}
9a1adf
install -m 755 .libs/%{name}.so %{buildroot}%{_httpd_moddir}
9a1adf
install -m 755 %{name}-diagnostics.so %{buildroot}%{_httpd_moddir}
9a1adf
9a1adf
# install module configuration
9a1adf
mkdir -p %{buildroot}%{_httpd_confdir}
9a1adf
install -m 644 %{SOURCE1} %{buildroot}%{_httpd_confdir}
9a1adf
mkdir -p %{buildroot}%{_httpd_modconfdir}
9a1adf
install -m 644 %{SOURCE2} %{buildroot}%{_httpd_modconfdir}
9a1adf
9a1adf
mkdir -p %{buildroot}%{_tmpfilesdir}
9a1adf
install -m 644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}
9a1adf
mkdir -p %{buildroot}/run/%{name}
9a1adf
9a1adf
# install script to generate metadata
9a1adf
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
9a1adf
install -m 755 %{SOURCE4} %{buildroot}/%{_libexecdir}/%{name}
9a1adf
9a1adf
#install documentation
9a1adf
mkdir -p %{buildroot}/%{_pkgdocdir}
9a1adf
9a1adf
# install Red Hat README
9a1adf
install -m 644 %{SOURCE5} %{buildroot}/%{_pkgdocdir}
9a1adf
9a1adf
# install user guide
9a1adf
cp -r doc/user_guide %{buildroot}/%{_pkgdocdir}
9a1adf
install -m 644 %{SOURCE6} %{buildroot}/%{_pkgdocdir}/user_guide
9a1adf
9a1adf
%package diagnostics
9a1adf
Summary: Build of mod_auth_mellon with diagnostic logging
9a1adf
Requires: %{name} = %{version}-%{release}
9a1adf
9a1adf
%description diagnostics
9a1adf
Build of mod_auth_mellon with diagnostic logging. See README.redhat.rst
9a1adf
in the doc directory for instructions on using the diagnostics build.
9a1adf
9a1adf
%files diagnostics
9a1adf
%{_httpd_moddir}/%{name}-diagnostics.so
9a1adf
9a1adf
%files
9a1adf
%defattr(-,root,root)
9a1adf
%if 0%{?rhel} && 0%{?rhel} < 7
9a1adf
%doc COPYING
9a1adf
%else
9a1adf
%license COPYING
9a1adf
%endif
9a1adf
%doc README.md NEWS ECP.rst
9a1adf
%doc %{_pkgdocdir}/README.redhat.rst
9a1adf
%doc %{_pkgdocdir}/user_guide
9a1adf
%config(noreplace) %{_httpd_modconfdir}/10-auth_mellon.conf
9a1adf
%config(noreplace) %{_httpd_confdir}/auth_mellon.conf
9a1adf
%{_httpd_moddir}/mod_auth_mellon.so
9a1adf
%{_tmpfilesdir}/mod_auth_mellon.conf
9a1adf
%{_libexecdir}/%{name}
9a1adf
%dir /run/%{name}/
9a1adf
9a1adf
%changelog
9a1adf
* Tue Aug  6 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.14.0-7
9a1adf
- Resolves: rhbz#1727789 - mod_auth_mellon fix for AJAX header name
9a1adf
                           X-Requested-With
9a1adf
9a1adf
* Tue Apr  2 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.14.0-6
9a1adf
- Apply the patch from the previous commit
9a1adf
- Resolves: rhbz#1692470 - CVE-2019-3877 mod_auth_mellon: open redirect
9a1adf
                           in logout url when using URLs with backslashes
9a1adf
                           [rhel-7]
9a1adf
9a1adf
* Tue Apr  2 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.14.0-5
9a1adf
- Resolves: rhbz#1692470 - CVE-2019-3877 mod_auth_mellon: open redirect
9a1adf
                           in logout url when using URLs with backslashes
9a1adf
                           [rhel-7]
9a1adf
9a1adf
* Fri Mar 22 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.14.0-4
9a1adf
- Resolves: rhbz#1576719 - ECP flow not triggering, instead client access
9a1adf
                           secured resources without ECP authentication
9a1adf
9a1adf
* Tue Mar  5 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.14.0-3
9a1adf
- Resolves: rhbz#1652980 - mod_auth_mellon Cert files name wrong when
9a1adf
                           hostname contains a number
9a1adf
9a1adf
* Fri Jun  1 2018  <jdennis@redhat.com> - 0.14.0-2
9a1adf
- Resolves: rhbz#1553885
9a1adf
- fix file permissions on doc files
9a1adf
9a1adf
* Fri Jun  1 2018  <jdennis@redhat.com> - 0.14.0-1
9a1adf
- Resolves: rhbz#1553885
9a1adf
- Rebase to current upstream release
9a1adf
9a1adf
* Thu Mar 29 2018 John Dennis <jdennis@redhat.com> - 0.13.1-2
9a1adf
- Resolves: rhbz#1481330 Add diagnostic logging
9a1adf
- Resolves: rhbz#1295472 Add MellonSignatureMethod config option to set
9a1adf
  signature method used to sign SAML messages sent by Mellon.
9a1adf
  Defaults to original sha1.
9a1adf
9a1adf
* Fri Oct 20 2017 John Dennis <jdennis@redhat.com> - 0.13.1-1
9a1adf
- Resolves: rhbz#1481332 Upgrade to current upstream 0.13.1
9a1adf
- Adds the following upstream bug fixes on top of 0.13.1:
9a1adf
  * ee97812 Add Mellon User Guide
9a1adf
  * daa5d1e If no IdP's are defined explicitly log that fact
9a1adf
  * c291232 Make MellonUser case-insensitive.
9a1adf
  * 2c2e19d Fix incorrect error check for many `lasso_*`-functions.
9a1adf
  * 5c5ed1d Fix segmentation fault with POST field without a value.
9a1adf
  * 4c924d9 Fix some log message typos
9a1adf
  * 93faba4 Update log msg for Invalid Destination and Invalid Audience to
9a1adf
    show both the expected and received values.
9a1adf
- Add new mellon user guide to installed docdir
9a1adf
9a1adf
* Mon Jan 30 2017 John Dennis <jdennis@redhat.com> - 0.11.0-4
9a1adf
- Resolves: rhbz#1414021 - Incorrect Content-Type header in ECP PAOS
9a1adf
  Rebuilding due to missing comment in Changelog
9a1adf
9a1adf
* Mon Jan 30 2017 John Dennis <jdennis@redhat.com> - 0.11.0-3
9a1adf
- Resolves: rhbz#1414021 - Incorrect Content-Type header in ECP PAOS
9a1adf
9a1adf
* Fri Apr  8 2016 John Dennis <jdennis@redhat.com> - 0.11.0-2
9a1adf
- Resolves: bug #1296286
9a1adf
  mod_auth_mellon emits CRITICAL warning message in Apache log when doing ECP
9a1adf
- Resolves: bug #1324536
9a1adf
  Installing mod_auth_mellon causes working Kerberos authentication
9a1adf
  to start failing
9a1adf
- Add ECP.rst documentation file that was erroneously omitted
9a1adf
9a1adf
* Fri Sep 18 2015 John Dennis <jdennis@redhat.com> - 0.11.0-1
9a1adf
- Upgrade to upstream 0.11.0 release.
9a1adf
- Includes ECP support, see NEWS for all changes.
9a1adf
- Update mellon_create_metadata.sh to match internally generated metadata,
9a1adf
  includes AssertionConsumerService for postResponse, artifactResponse &
9a1adf
  paosResponse.
9a1adf
- Add lasso 2.5.0 version dependency
9a1adf
- Resolves: #1205345
9a1adf
9a1adf
* Mon Aug 24 2015 John Dennis <jdennis@redhat.com> - 0.10.0-3
9a1adf
- Rebase to upstream 0.10.0 release
9a1adf
- Apply upstream commits post 0.10.0 release
9a1adf
- Apply revised ECP pending patches,
9a1adf
  fix patch to pickup change in configure script that causes
9a1adf
  HAVE_ECP to be defined
9a1adf
- Resolves: #1205345
9a1adf
9a1adf
* Wed Aug 19 2015 John Dennis <jdennis@redhat.com> - 0.10.0-2
9a1adf
- Rebase to upstream 0.10.0 release
9a1adf
- Apply upstream commits post 0.10.0 release
9a1adf
- Apply revised ECP pending patches
9a1adf
- Resolves: #1205345
9a1adf
9a1adf
* Mon Jun 22 2015 John Dennis <jdennis@redhat.com> - 0.10.0-1
9a1adf
- Rebase to upstream 0.10.0 release
9a1adf
- Apply upstream commits post 0.10.0 release
9a1adf
- Apply ECP pending patches
9a1adf
- Resolves: #1205345
9a1adf
9a1adf
* Mon Dec  8 2014 Simo Sorce <simo@redhat.com> 0.9.1-4
9a1adf
- Large scale intreop patches
9a1adf
- Resolves: #1167844
9a1adf
9a1adf
* Wed Sep 10 2014 Simo Sorce <simo@redhat.com> 0.9.1-3
9a1adf
- Fix upstream sources URL
9a1adf
- Related: #1120353
9a1adf
9a1adf
* Fri Sep  5 2014 Simo Sorce <simo@redhat.com> 0.9.1-2
9a1adf
- Import package in RHEL7
9a1adf
- Resolves: #1120353
9a1adf
9a1adf
* Tue Sep  2 2014 Simo Sorce <simo@redhat.com> 0.9.1-1
9a1adf
- New upstream release
9a1adf
9a1adf
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
9a1adf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9a1adf
9a1adf
* Tue Jun 24 2014 Simo Sorce <simo@redhat.com> 0.8.0-1
9a1adf
- New upstream realease version 0.8.0
9a1adf
- Upstream moved to github
9a1adf
- Drops patches as they have been all included upstream
9a1adf
9a1adf
* Fri Jun 20 2014 Simo Sorce <simo@redhat.com> 0.7.0-3
9a1adf
- Backport of useful patches from upstream
9a1adf
  - Better handling of IDP reported errors
9a1adf
  - Better handling of session data storage size
9a1adf
9a1adf
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-2
9a1adf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9a1adf
9a1adf
* Tue Dec 10 2013 Simo Sorce <simo@redhat.com> 0.7.0-1
9a1adf
- Fix ownership of /run files
9a1adf
9a1adf
* Wed Nov 27 2013 Simo Sorce <simo@redhat.com> 0.7.0-0
9a1adf
- Initial Fedora release based on version 0.7.0
9a1adf
- Based on an old spec file by Jean-Marc Liger <jmliger@siris.sorbonne.fr>