- rel 8
[packages/apache-mod_auth_kerb.git] / apache-mod_auth_kerb.spec
1 %define         mod_name        auth_kerb
2 %define         apxs    /usr/sbin/apxs
3 Summary:        This is the Kerberos authentication module for Apache
4 Summary(pl.UTF-8):      Moduł uwierzytelnienia Kerberos dla Apache
5 Name:           apache-mod_%{mod_name}
6 Version:        5.4
7 Release:        8
8 Epoch:          1
9 License:        GPL
10 Group:          Networking/Daemons/HTTP
11 Source0:        http://dl.sourceforge.net/modauthkerb/mod_%{mod_name}-%{version}.tar.gz
12 # Source0-md5:  642b81763ad3ca81dba359cb952da5e3
13 Source1:        %{name}.conf
14 Patch0:         %{name}-heimdal.patch
15 Patch1:         %{name}-basic-auth.patch
16 Patch2:         mod_auth_kerb-apache24.patch
17 Patch3:         mod_auth_kerb-delegation.patch
18 URL:            http://modauthkerb.sourceforge.net/
19 BuildRequires:  %{apxs}
20 BuildRequires:  apache-devel >= 2.0
21 BuildRequires:  gdbm-devel
22 BuildRequires:  heimdal-devel
23 BuildRequires:  rpmbuild(macros) >= 1.268
24 BuildRequires:  sed >= 4.0
25 Requires:       apache(modules-api) = %apache_modules_api
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         apacheconfdir   %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
29 %define         apachelibdir    %(%{apxs} -q LIBEXECDIR 2>/dev/null)
30
31 %description
32 This is an authentication module for Apache that allows you to
33 authenticate HTTP clients using user entries in an Kerberos directory.
34
35 %description -l pl.UTF-8
36 To jest moduł uwierzytelnienia dla Apache pozwalający na
37 uwierzytelnianie klientów HTTP z użyciem wpisów w katalogu Kerberosa.
38
39 %prep
40 %setup -q -n mod_%{mod_name}-%{version}
41 %patch0 -p1
42 %patch1 -p1
43 %patch2 -p1
44 %patch3 -p1
45
46 %build
47 %configure \
48         --without-krb4 \
49         --with-apache=%{_prefix}
50
51 %{__sed} -i -e 's/-pthread/-lpthread/' Makefile
52 %{__make}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{apachelibdir},%{apacheconfdir}}
57
58 install src/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{apachelibdir}
59 install %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/20_mod_%{mod_name}.conf
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post
65 %service -q httpd restart
66
67 %postun
68 if [ "$1" = "0" ]; then
69         %service -q httpd restart
70 fi
71
72 %files
73 %defattr(644,root,root,755)
74 %doc README
75 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_%{mod_name}.conf
76 %attr(755,root,root) %{apachelibdir}/*.so
This page took 0.094659 seconds and 3 git commands to generate.