]>
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} |
6 | Version: 5.0 | |
8dbb5915 | 7 | %define pre rc6 |
044bcc0f | 8 | Release: 0.%{pre}.2 |
3a8fe259 | 9 | Epoch: 1 |
10 | License: GPL | |
11 | Group: Networking/Daemons | |
12 | Source0: http://dl.sourceforge.net/modauthkerb/mod_%{mod_name}-%{version}-%{pre}.tar.gz | |
8dbb5915 | 13 | # Source0-md5: 274edfb950af20ce6ef0ddcb7c20263a |
3a8fe259 | 14 | Source1: %{name}.conf |
f56eec7f | 15 | Patch1: %{name}-aprfix.patch |
3a8fe259 | 16 | URL: http://modauthkerb.sourceforge.net/ |
17 | BuildRequires: %{apxs} | |
18 | BuildRequires: apache-devel | |
19 | BuildRequires: gdbm-devel | |
044bcc0f | 20 | BuildRequires: krb5-devel |
993543eb | 21 | BuildRequires: rpmbuild(macros) >= 1.268 |
f56eec7f ER |
22 | BuildRequires: sed >= 4.0 |
23 | Requires: apache(modules-api) = %apache_modules_api | |
3a8fe259 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
f56eec7f ER |
26 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) |
27 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) | |
3a8fe259 | 28 | |
29 | %description | |
30 | This is an authentication module for Apache that allows you to | |
cb733775 | 31 | authenticate HTTP clients using user entries in an Kerberos directory. |
3a8fe259 | 32 | |
ace66492 JR |
33 | %description -l pl.UTF-8 |
34 | To jest moduł uwierzytelnienia dla Apache pozwalający na | |
35 | uwierzytelnianie klientów HTTP z użyciem wpisów w katalogu Kerberosa. | |
3a8fe259 | 36 | |
37 | %prep | |
38 | %setup -q -n mod_%{mod_name}-%{version}-%{pre} | |
8dbb5915 | 39 | %patch1 -p1 |
3a8fe259 | 40 | |
41 | %build | |
42 | %configure | |
f56eec7f | 43 | %{__sed} -i -e 's/-pthread/-lpthread/' Makefile |
cb733775 | 44 | %{__make} |
3a8fe259 | 45 | |
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
f56eec7f | 48 | install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf} |
3a8fe259 | 49 | |
50 | install src/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} | |
f56eec7f | 51 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/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 | |
f56eec7f | 67 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf |
c602842c | 68 | %attr(755,root,root) %{_pkglibdir}/*.so |