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/
#


%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
Url:            http://modauthkerb.sourceforge.net/install.html
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
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
%else
BuildRequires:  krb5-devel
%endif # sles_version

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




Authors:
--------
    Daniel Kouril <kouril@users.sourceforge.net>

%if 0%{?!__debug_package}
%endif
%prep
%setup -q -n "mod_auth_kerb-%{version}"
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6

%build
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
%__install -D -m0755 src/.libs/mod_auth_kerb.so "%{buildroot}/%{apache_libexecdir}/mod_auth_kerb.so"

%clean
%__rm -rf "%{buildroot}"

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

%changelog
openSUSE Build Service is sponsored by