Simo Sorce 5f23c37
Summary: A SAML 2.0 authentication module for the Apache Httpd Server
Simo Sorce 5f23c37
Name: mod_auth_mellon
Simo Sorce 4af43b7
Version: 0.10.0
Simo Sorce 6a56e02
Release: 1%{?dist}
Simo Sorce 5f23c37
Group: System Environment/Daemons
Simo Sorce 4af43b7
Source0: https://github.com/UNINETT/mod_auth_mellon/releases/download/v%{version}/%{name}-%{version}.tar.gz
Simo Sorce 5f23c37
Source1: auth_mellon.conf
Simo Sorce 5f23c37
Source2: 10-auth_mellon.conf
Simo Sorce 5f23c37
Source3: mod_auth_mellon.conf
Simo Sorce 5f23c37
Source4: mellon_create_metadata.sh
Simo Sorce 5f23c37
License: GPLv2+
Simo Sorce 5f23c37
BuildRequires: curl-devel, glib2-devel, httpd-devel, lasso-devel, openssl-devel, xmlsec1-devel
Simo Sorce 5f23c37
Requires: httpd-mmn = %{_httpd_mmn}
Simo Sorce 5f23c37
Requires: lasso >= 2.3.6
Simo Sorce eb3a0b5
Url: https://github.com/UNINETT/mod_auth_mellon
Simo Sorce 3d3db5d
Simo Sorce 5f23c37
%description
Simo Sorce 5f23c37
The mod_auth_mellon module is an authentication service that implements the
Simo Sorce 5f23c37
SAML 2.0 federation protocol. It grants access based on the attributes
Simo Sorce 5f23c37
received in assertions generated by a IdP server.
Simo Sorce 5f23c37
Simo Sorce 5f23c37
%prep
Simo Sorce 5f23c37
%setup -q -n %{name}-%{version}
Simo Sorce 5f23c37
Simo Sorce 5f23c37
%build
Simo Sorce 5f23c37
export APXS=%{_httpd_apxs}
Simo Sorce 5f23c37
%configure
Simo Sorce 5f23c37
make %{?_smp_mflags}
Simo Sorce 5f23c37
Simo Sorce 5f23c37
%install
Simo Sorce 5f23c37
# install module
Simo Sorce 5f23c37
mkdir -p %{buildroot}%{_httpd_moddir}
Simo Sorce 5f23c37
install -m 755 .libs/%{name}.so %{buildroot}%{_httpd_moddir}
Simo Sorce 5f23c37
Simo Sorce 5f23c37
# install module configuration
Simo Sorce 5f23c37
mkdir -p %{buildroot}%{_httpd_confdir}
Simo Sorce 5f23c37
install -m 644 %{SOURCE1} %{buildroot}%{_httpd_confdir}
Simo Sorce 5f23c37
mkdir -p %{buildroot}%{_httpd_modconfdir}
Simo Sorce 5f23c37
install -m 644 %{SOURCE2} %{buildroot}%{_httpd_modconfdir}
Simo Sorce 5f23c37
Simo Sorce 5f23c37
mkdir -p %{buildroot}%{_tmpfilesdir}
Simo Sorce 5f23c37
install -m 644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}
Simo Sorce 5f23c37
mkdir -p %{buildroot}/run/%{name}
Simo Sorce 5f23c37
Simo Sorce 5f23c37
# install script to generate metadata
Simo Sorce 5f23c37
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
Simo Sorce 5f23c37
install -m 755 %{SOURCE4} %{buildroot}/%{_libexecdir}/%{name}
Simo Sorce 5f23c37
Simo Sorce 5f23c37
%files
Simo Sorce 5f23c37
%defattr(-,root,root)
Simo Sorce 5f23c37
%doc README COPYING
Simo Sorce 5f23c37
%config(noreplace) %{_httpd_modconfdir}/10-auth_mellon.conf
Simo Sorce 5f23c37
%config(noreplace) %{_httpd_confdir}/auth_mellon.conf
Simo Sorce 5f23c37
%{_httpd_moddir}/mod_auth_mellon.so
Simo Sorce 5f23c37
%{_tmpfilesdir}/mod_auth_mellon.conf
Simo Sorce 5f23c37
%{_libexecdir}/%{name}
Simo Sorce 5f23c37
%dir /run/%{name}/
Simo Sorce 5f23c37
Simo Sorce 5f23c37
%changelog
Simo Sorce 4af43b7
* Wed Jan  7 2015 Simo Sorce <simo@redhat.com> 0.10.0-1
Simo Sorce 4af43b7
- New upstream release
Simo Sorce 4af43b7
Simo Sorce 6a56e02
* Tue Sep  2 2014 Simo Sorce <simo@redhat.com> 0.9.1-1
Simo Sorce 6a56e02
- New upstream release
Simo Sorce 6a56e02
2b4e918
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
2b4e918
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2b4e918
Simo Sorce eb3a0b5
* Tue Jun 24 2014 Simo Sorce <simo@redhat.com> 0.8.0-1
Simo Sorce eb3a0b5
- New upstream realease version 0.8.0
Simo Sorce eb3a0b5
- Upstream moved to github
Simo Sorce eb3a0b5
- Drops patches as they have been all included upstream
Simo Sorce eb3a0b5
Simo Sorce 3d3db5d
* Fri Jun 20 2014 Simo Sorce <simo@redhat.com> 0.7.0-3
Simo Sorce 3d3db5d
- Backport of useful patches from upstream
Simo Sorce 3d3db5d
  - Better handling of IDP reported errors
Simo Sorce 3d3db5d
  - Better handling of session data storage size
Simo Sorce 3d3db5d
421fefe
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-2
421fefe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
421fefe
Simo Sorce 5f23c37
* Tue Dec 10 2013 Simo Sorce <simo@redhat.com> 0.7.0-1
Simo Sorce 5f23c37
- Fix ownership of /run files
Simo Sorce 5f23c37
Simo Sorce 5f23c37
* Wed Nov 27 2013 Simo Sorce <simo@redhat.com> 0.7.0-0
Simo Sorce 5f23c37
- Initial Fedora release based on version 0.7.0
Simo Sorce 5f23c37
- Based on an old spec file by Jean-Marc Liger <jmliger@siris.sorbonne.fr>