]>
Commit | Line | Data |
---|---|---|
3a8fe259 | 1 | %define mod_name auth_kerb |
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} |
ef395627 | 6 | Version: 5.3 |
6f2097b8 | 7 | Release: 4 |
3a8fe259 | 8 | Epoch: 1 |
9 | License: GPL | |
1e14559f | 10 | Group: Networking/Daemons/HTTP |
ef395627 JR |
11 | Source0: http://dl.sourceforge.net/modauthkerb/mod_%{mod_name}-%{version}.tar.gz |
12 | # Source0-md5: a363588578050b3d320a2ceccf3ed666 | |
3a8fe259 | 13 | Source1: %{name}.conf |
14 | URL: http://modauthkerb.sourceforge.net/ | |
d286a0b7 ER |
15 | BuildRequires: %{apxs} |
16 | BuildRequires: apache-devel >= 2.0 | |
3a8fe259 | 17 | BuildRequires: gdbm-devel |
97e8002d | 18 | BuildRequires: heimdal-devel |
993543eb | 19 | BuildRequires: rpmbuild(macros) >= 1.268 |
f56eec7f ER |
20 | BuildRequires: sed >= 4.0 |
21 | Requires: apache(modules-api) = %apache_modules_api | |
3a8fe259 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
f4686fec ER |
24 | %define apacheconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d |
25 | %define apachelibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
3a8fe259 | 26 | |
27 | %description | |
28 | This is an authentication module for Apache that allows you to | |
cb733775 | 29 | authenticate HTTP clients using user entries in an Kerberos directory. |
3a8fe259 | 30 | |
ace66492 JR |
31 | %description -l pl.UTF-8 |
32 | To jest moduł uwierzytelnienia dla Apache pozwalający na | |
33 | uwierzytelnianie klientów HTTP z użyciem wpisów w katalogu Kerberosa. | |
3a8fe259 | 34 | |
35 | %prep | |
ef395627 | 36 | %setup -q -n mod_%{mod_name}-%{version} |
3a8fe259 | 37 | |
38 | %build | |
ef395627 | 39 | %configure \ |
97e8002d | 40 | --without-krb4 \ |
ef395627 JR |
41 | --with-apache=%{_prefix} |
42 | ||
f56eec7f | 43 | %{__sed} -i -e 's/-pthread/-lpthread/' Makefile |
cb733775 | 44 | %{__make} |
3a8fe259 | 45 | |
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
f4686fec | 48 | install -d $RPM_BUILD_ROOT{%{apachelibdir},%{apacheconfdir}} |
3a8fe259 | 49 | |
f4686fec ER |
50 | install src/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{apachelibdir} |
51 | install %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/20_mod_%{mod_name}.conf | |
3a8fe259 | 52 | |
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %post | |
993543eb | 57 | %service -q httpd restart |
3a8fe259 | 58 | |
09f415c0 | 59 | %postun |
3a8fe259 | 60 | if [ "$1" = "0" ]; then |
993543eb | 61 | %service -q httpd restart |
3a8fe259 | 62 | fi |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
66 | %doc README | |
f4686fec ER |
67 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_%{mod_name}.conf |
68 | %attr(755,root,root) %{apachelibdir}/*.so |