]> git.pld-linux.org Git - SPECS.git/blob - apache-mod_auth_mellon.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / apache-mod_auth_mellon.spec
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}
5 Version:        0.7.0
6 Release:        1
7 License:        GPL v2+
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)
26
27 %define         _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
28 %define         _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
29
30 %description
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.
34
35 %prep
36 %setup -q -n mod_%{mod_name}-%{version}
37
38 %build
39 %configure \
40         APXS=%{apxs}
41 %{__make}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir},%{systemdtmpfilesdir},%{_libdir}/%{name},/var/run/mod_%{mod_name}}
46
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}
51
52 %clean
53 rm -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.746108 seconds and 3 git commands to generate.