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}
10 Group: Networking/Daemons/HTTP
11 Source0: http://dl.sourceforge.net/modauthkerb/mod_%{mod_name}-%{version}.tar.gz
12 # Source0-md5: 642b81763ad3ca81dba359cb952da5e3
14 Patch0: %{name}-heimdal.patch
15 URL: http://modauthkerb.sourceforge.net/
16 BuildRequires: %{apxs}
17 BuildRequires: apache-devel >= 2.0
18 BuildRequires: gdbm-devel
19 BuildRequires: heimdal-devel
20 BuildRequires: rpmbuild(macros) >= 1.268
21 BuildRequires: sed >= 4.0
22 Requires: apache(modules-api) = %apache_modules_api
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define apacheconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
26 %define apachelibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
29 This is an authentication module for Apache that allows you to
30 authenticate HTTP clients using user entries in an Kerberos directory.
32 %description -l pl.UTF-8
33 To jest moduł uwierzytelnienia dla Apache pozwalający na
34 uwierzytelnianie klientów HTTP z użyciem wpisów w katalogu Kerberosa.
37 %setup -q -n mod_%{mod_name}-%{version}
43 --with-apache=%{_prefix}
45 %{__sed} -i -e 's/-pthread/-lpthread/' Makefile
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{apachelibdir},%{apacheconfdir}}
52 install src/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{apachelibdir}
53 install %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/20_mod_%{mod_name}.conf
56 rm -rf $RPM_BUILD_ROOT
59 %service -q httpd restart
62 if [ "$1" = "0" ]; then
63 %service -q httpd restart
67 %defattr(644,root,root,755)
69 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_%{mod_name}.conf
70 %attr(755,root,root) %{apachelibdir}/*.so