]>
Commit | Line | Data |
---|---|---|
3a8fe259 | 1 | %define mod_name auth_kerb |
96f58112 | 2 | %define apxs /usr/sbin/apxs |
cb733775 | 3 | Summary: This is the Kerberos authentication module for Apache |
54902bb8 | 4 | Summary(pl.UTF-8): Moduł uwierzytelnienia Kerberos dla Apache |
3a8fe259 | 5 | Name: apache-mod_%{mod_name} |
0de9d138 | 6 | Version: 5.4 |
96f58112 | 7 | Release: 8 |
3a8fe259 | 8 | Epoch: 1 |
9 | License: GPL | |
1e14559f | 10 | Group: Networking/Daemons/HTTP |
ef395627 | 11 | Source0: http://dl.sourceforge.net/modauthkerb/mod_%{mod_name}-%{version}.tar.gz |
0de9d138 | 12 | # Source0-md5: 642b81763ad3ca81dba359cb952da5e3 |
3a8fe259 | 13 | Source1: %{name}.conf |
9a8b3ed6 | 14 | Patch0: %{name}-heimdal.patch |
7e2f545e | 15 | Patch1: %{name}-basic-auth.patch |
96f58112 JR |
16 | Patch2: mod_auth_kerb-apache24.patch |
17 | Patch3: mod_auth_kerb-delegation.patch | |
3a8fe259 | 18 | URL: http://modauthkerb.sourceforge.net/ |
d286a0b7 ER |
19 | BuildRequires: %{apxs} |
20 | BuildRequires: apache-devel >= 2.0 | |
3a8fe259 | 21 | BuildRequires: gdbm-devel |
97e8002d | 22 | BuildRequires: heimdal-devel |
993543eb | 23 | BuildRequires: rpmbuild(macros) >= 1.268 |
f56eec7f ER |
24 | BuildRequires: sed >= 4.0 |
25 | Requires: apache(modules-api) = %apache_modules_api | |
3a8fe259 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
f4686fec ER |
28 | %define apacheconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d |
29 | %define apachelibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
3a8fe259 | 30 | |
31 | %description | |
32 | This is an authentication module for Apache that allows you to | |
cb733775 | 33 | authenticate HTTP clients using user entries in an Kerberos directory. |
3a8fe259 | 34 | |
ace66492 JR |
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. | |
3a8fe259 | 38 | |
39 | %prep | |
ef395627 | 40 | %setup -q -n mod_%{mod_name}-%{version} |
9a8b3ed6 | 41 | %patch0 -p1 |
7e2f545e | 42 | %patch1 -p1 |
96f58112 JR |
43 | %patch2 -p1 |
44 | %patch3 -p1 | |
3a8fe259 | 45 | |
46 | %build | |
ef395627 | 47 | %configure \ |
97e8002d | 48 | --without-krb4 \ |
ef395627 JR |
49 | --with-apache=%{_prefix} |
50 | ||
f56eec7f | 51 | %{__sed} -i -e 's/-pthread/-lpthread/' Makefile |
cb733775 | 52 | %{__make} |
3a8fe259 | 53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
f4686fec | 56 | install -d $RPM_BUILD_ROOT{%{apachelibdir},%{apacheconfdir}} |
3a8fe259 | 57 | |
f4686fec ER |
58 | install src/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{apachelibdir} |
59 | install %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/20_mod_%{mod_name}.conf | |
3a8fe259 | 60 | |
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %post | |
993543eb | 65 | %service -q httpd restart |
3a8fe259 | 66 | |
09f415c0 | 67 | %postun |
3a8fe259 | 68 | if [ "$1" = "0" ]; then |
993543eb | 69 | %service -q httpd restart |
3a8fe259 | 70 | fi |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
74 | %doc README | |
f4686fec ER |
75 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_%{mod_name}.conf |
76 | %attr(755,root,root) %{apachelibdir}/*.so |