]>
Commit | Line | Data |
---|---|---|
ef395627 JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with krb4 # build with Kerberos V4 support | |
4 | # | |
3a8fe259 | 5 | %define mod_name auth_kerb |
6 | %define apxs /usr/sbin/apxs | |
cb733775 | 7 | Summary: This is the Kerberos authentication module for Apache |
54902bb8 | 8 | Summary(pl.UTF-8): Moduł uwierzytelnienia Kerberos dla Apache |
3a8fe259 | 9 | Name: apache-mod_%{mod_name} |
ef395627 | 10 | Version: 5.3 |
96dafc22 | 11 | Release: 2 |
3a8fe259 | 12 | Epoch: 1 |
13 | License: GPL | |
14 | Group: Networking/Daemons | |
ef395627 JR |
15 | Source0: http://dl.sourceforge.net/modauthkerb/mod_%{mod_name}-%{version}.tar.gz |
16 | # Source0-md5: a363588578050b3d320a2ceccf3ed666 | |
3a8fe259 | 17 | Source1: %{name}.conf |
18 | URL: http://modauthkerb.sourceforge.net/ | |
d286a0b7 ER |
19 | BuildRequires: %{apxs} |
20 | BuildRequires: apache-devel >= 2.0 | |
3a8fe259 | 21 | BuildRequires: gdbm-devel |
044bcc0f | 22 | BuildRequires: krb5-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 | ||
96dafc22 ER |
28 | %define pkgconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d |
29 | %define pkglibdir %(%{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} |
3a8fe259 | 41 | |
42 | %build | |
ef395627 JR |
43 | %configure \ |
44 | %{?with_krb4:--with-krb4} \ | |
45 | %{!?with_krb4:--without-krb4} \ | |
46 | --with-apache=%{_prefix} | |
47 | ||
f56eec7f | 48 | %{__sed} -i -e 's/-pthread/-lpthread/' Makefile |
cb733775 | 49 | %{__make} |
3a8fe259 | 50 | |
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
96dafc22 | 53 | install -d $RPM_BUILD_ROOT{%{pkglibdir},%{pkgconfdir}} |
3a8fe259 | 54 | |
96dafc22 ER |
55 | install src/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{pkglibdir} |
56 | install %{SOURCE1} $RPM_BUILD_ROOT%{pkgconfdir}/20_mod_%{mod_name}.conf | |
3a8fe259 | 57 | |
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %post | |
993543eb | 62 | %service -q httpd restart |
3a8fe259 | 63 | |
09f415c0 | 64 | %postun |
3a8fe259 | 65 | if [ "$1" = "0" ]; then |
993543eb | 66 | %service -q httpd restart |
3a8fe259 | 67 | fi |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
71 | %doc README | |
96dafc22 ER |
72 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{pkgconfdir}/*_mod_%{mod_name}.conf |
73 | %attr(755,root,root) %{pkglibdir}/*.so |