1 %define mod_name auth_mellon
2 %define apxs %{_sbindir}/apxs
3 Summary: A SAML 2.0 authentication module for the Apache Httpd Server
4 Name: apache-mod_%{mod_name}
8 Group: Networking/Daemons/HTTP
9 Source0: https://modmellon.googlecode.com/files/mod_auth_mellon-%{version}.tar.gz
10 # Source0-md5: b1d58363c6feb00a39402b347bc2e17b
11 Source1: auth_mellon.conf
12 Source3: mod_auth_mellon.tmpfiles
13 Source4: mellon_create_metadata.sh
14 URL: https://code.google.com/p/modmellon/
15 BuildRequires: %{apxs}
16 BuildRequires: apache-devel >= 2.2
17 BuildRequires: curl-devel
18 BuildRequires: glib2-devel
19 BuildRequires: lasso-devel
20 BuildRequires: openssl-devel
21 BuildRequires: rpmbuild(macros) >= 1.268
22 BuildRequires: xmlsec1-devel
23 Requires: apache(modules-api) = %apache_modules_api
24 Requires: lasso >= 2.3.6
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
28 %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
31 The mod_auth_mellon module is an authentication service that
32 implements the SAML 2.0 federation protocol. It grants access based on
33 the attributes received in assertions generated by a IdP server.
36 %setup -q -n mod_%{mod_name}-%{version}
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir},%{systemdtmpfilesdir},%{_libdir}/%{name},/var/run/mod_%{mod_name}}
47 install -p .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
48 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_%{mod_name}.conf
49 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
50 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf
59 %attr(755,root,root) %{_pkglibdir}/mod_%{mod_name}.so
60 %attr(755,root,root) %{_libdir}/mellon_create_metadata.sh
61 %dir %attr(755,http,http) /var/run/mod_%{mod_name}
62 %{systemdtmpfilesdir}/%{name}.conf