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 http://bugs.opensuse.org/
#


Name:           apache2-mod_auth_kerb
Version:        5.4
Release:        0
Summary:        Kerberos Module for Apache
License:        BSD-3-Clause and MIT and Apache-2.0
Group:          Productivity/Networking/Web/Servers
Url:            http://modauthkerb.sourceforge.net/
Source:         http://prdownloads.sourceforge.net/modauthkerb/mod_auth_kerb-%{version}.tar.gz
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
Patch101:       0101-mod_auth_kerb-5.4-s4u2proxy.patch
Patch102:       0102-mod_auth_kerb-5.4-httpd24.patch
Patch103:       0103-mod_auth_kerb-5.4-delegation.patch
Patch104:       0104-mod_auth_kerb-5.4-longuser.patch
Patch105:       0105-mod_auth_kerb-5.4-handle-continue.patch
BuildRequires:  apache-rpm-macros
BuildRequires:  apache2-devel
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc
BuildRequires:  glibc-devel
BuildRequires:  krb5-devel
BuildRequires:  libtool
Requires:       %{apache_mmn}
Requires:       %{apache_suse_maintenance_mmn}

%description
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.

%prep
%setup -q -n "mod_auth_kerb-%{version}"
%patch1
%patch2
%patch3
%patch4
%patch5
%patch101 -p1
%patch102 -p1
%patch103 -p1
%patch104 -p1
%patch105 -p1

%build
autoreconf -fiv

# Necessary when building with apr 1.2.x instead of the apr that comes with httpd
export CPPFLAGS="-I%{_includedir}/apr-1"
%configure --with-krb4=no \
           --with-krb5 \
           --with-apache="%{_prefix}" || { cat "config.log"; exit 1; }

make %{?_smp_mflags}

%install
install -D -m0755 src/.libs/mod_auth_kerb.so "%{buildroot}/%{apache_libexecdir}/mod_auth_kerb.so"

%files
%defattr(-,root,root)
%doc LICENSE README
%dir %{apache_libexecdir}
%{apache_libexecdir}/mod_auth_kerb.so

%changelog
openSUSE Build Service is sponsored by