File apache2-mod_auth_kerb.spec of Package apache2-mod_auth_kerb

# spec file for package apache2-mod_auth_kerb
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%define apxs /usr/sbin/apxs2
%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)

Name:           apache2-mod_auth_kerb
Version:        5.4
Release:        0
Summary:        Kerberos Module for Apache
License:        BSD-3-Clause
Group:          Productivity/Networking/Web/Servers
Patch1:         mod_auth_kerb-5.1-defproblem.dif
Patch2:         mod_auth_kerb-fix_warnings.patch
Patch3:         mod_auth_kerb-5.4-configure.patch
Patch4:         mod_auth_kerb-cache_auth.patch
Patch5:         mod_auth_kerb.apache22+.patch
Patch6:         mod_auth_kerb-api_changes_apache24.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  apache-rpm-macros
BuildRequires:  apache2-devel
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc
BuildRequires:  glibc-devel
BuildRequires:  libtool
Requires:       %{apache_suse_maintenance_mmn}
%if 0%{?sles_version} == 9
BuildRequires:  heimdal-devel
BuildRequires:  openssl-devel
BuildRequires:  krb5-devel
%endif # sles_version

Mod_auth_kerb is an Apache module designed to provide Kerberos authentication to
the Apache web server. Using the Basic Auth mechanism, it retrieves a
username/password pair from the browser and checks them against a Kerberos
server as set up by your particular organization. The module also supports the
Negotiate authentication method, which performs full Kerberos authentication
based on ticket exchanges, and does not require users to insert their passwords
to the browser. 

    Daniel Kouril <>

%if 0%{?!__debug_package}
%setup -q -n "mod_auth_kerb-%{version}"

autoreconf -fiv

# help SLES9 a bit to find krb5:
export PATH="/usr/lib/mit/bin:$PATH"
# Necessary when building with apr 1.2.x instead of the apr that comes with httpd
export CPPFLAGS="-I/usr/include/apr-1"
%configure --with-krb4=no \
           --with-krb5 \
           --with-apache="%{_usr}" || { cat "config.log"; exit 1; }

%__make %{?jobs:-j%jobs}

%__install -D -m0755 src/.libs/ "%{buildroot}/%{apache_libexecdir}/"

%__rm -rf "%{buildroot}"

%dir %{apache_libexecdir}

openSUSE Build Service is sponsored by