]> git.pld-linux.org Git - packages/apache-mod_auth_mellon.git/blame - apache-mod_auth_mellon.spec
new, version 0.7.0
[packages/apache-mod_auth_mellon.git] / apache-mod_auth_mellon.spec
CommitLineData
e0ae282c
ER
1%define mod_name auth_mellon
2%define apxs %{_sbindir}/apxs
3Summary: A SAML 2.0 authentication module for the Apache Httpd Server
4Name: apache-mod_%{mod_name}
5Version: 0.7.0
6Release: 1
7License: GPL v2+
8Group: Networking/Daemons/HTTP
9Source0: https://modmellon.googlecode.com/files/mod_auth_mellon-%{version}.tar.gz
10# Source0-md5: b1d58363c6feb00a39402b347bc2e17b
11Source1: auth_mellon.conf
12Source3: mod_auth_mellon.tmpfiles
13Source4: mellon_create_metadata.sh
14URL: https://code.google.com/p/modmellon/
15BuildRequires: %{apxs}
16BuildRequires: apache-devel >= 2.2
17BuildRequires: curl-devel
18BuildRequires: glib2-devel
19BuildRequires: lasso-devel
20BuildRequires: openssl-devel
21BuildRequires: rpmbuild(macros) >= 1.268
22BuildRequires: xmlsec1-devel
23Requires: apache(modules-api) = %apache_modules_api
24Requires: lasso >= 2.3.6
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
28%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
29
30%description
31The mod_auth_mellon module is an authentication service that
32implements the SAML 2.0 federation protocol. It grants access based on
33the attributes received in assertions generated by a IdP server.
34
35%prep
36%setup -q -n mod_%{mod_name}-%{version}
37
38%build
39%configure \
40 APXS=%{apxs}
41%{__make}
42
43%install
44rm -rf $RPM_BUILD_ROOT
45install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir},%{systemdtmpfilesdir},%{_libdir}/%{name},/var/run/mod_%{mod_name}}
46
47install -p .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
48cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_%{mod_name}.conf
49cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
50cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%files
56%defattr(644,root,root,755)
57%doc README COPYING
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
This page took 0.440062 seconds and 4 git commands to generate.