-#
-# Conditional build:
-%bcond_with krb4 # build with Kerberos V4 support
-#
%define mod_name auth_kerb
-%define apxs /usr/sbin/apxs
+%define apxs /usr/sbin/apxs
Summary: This is the Kerberos authentication module for Apache
Summary(pl.UTF-8): Moduł uwierzytelnienia Kerberos dla Apache
Name: apache-mod_%{mod_name}
-Version: 5.3
-Release: 2
+Version: 5.4
+Release: 8
Epoch: 1
License: GPL
-Group: Networking/Daemons
+Group: Networking/Daemons/HTTP
Source0: http://dl.sourceforge.net/modauthkerb/mod_%{mod_name}-%{version}.tar.gz
-# Source0-md5: a363588578050b3d320a2ceccf3ed666
+# Source0-md5: 642b81763ad3ca81dba359cb952da5e3
Source1: %{name}.conf
+Patch0: %{name}-heimdal.patch
+Patch1: %{name}-basic-auth.patch
+Patch2: mod_auth_kerb-apache24.patch
+Patch3: mod_auth_kerb-delegation.patch
URL: http://modauthkerb.sourceforge.net/
BuildRequires: %{apxs}
BuildRequires: apache-devel >= 2.0
BuildRequires: gdbm-devel
-BuildRequires: krb5-devel
+BuildRequires: heimdal-devel
BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: sed >= 4.0
Requires: apache(modules-api) = %apache_modules_api
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define pkgconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
-%define pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define apacheconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
+%define apachelibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
%description
This is an authentication module for Apache that allows you to
%prep
%setup -q -n mod_%{mod_name}-%{version}
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
%build
%configure \
- %{?with_krb4:--with-krb4} \
- %{!?with_krb4:--without-krb4} \
+ --without-krb4 \
--with-apache=%{_prefix}
%{__sed} -i -e 's/-pthread/-lpthread/' Makefile
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{pkglibdir},%{pkgconfdir}}
+install -d $RPM_BUILD_ROOT{%{apachelibdir},%{apacheconfdir}}
-install src/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{pkglibdir}
-install %{SOURCE1} $RPM_BUILD_ROOT%{pkgconfdir}/20_mod_%{mod_name}.conf
+install src/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{apachelibdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/20_mod_%{mod_name}.conf
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{pkgconfdir}/*_mod_%{mod_name}.conf
-%attr(755,root,root) %{pkglibdir}/*.so
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_%{mod_name}.conf
+%attr(755,root,root) %{apachelibdir}/*.so