File apache2-mod_authnz_external.spec of Package apache2-mod_authnz_external

#
# spec file for package apache2-mod_authnz_external
#
# Copyright (c) 2014 SUSE LINUX Products 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 mod_name mod_authnz_external
#
Name:           apache2-mod_authnz_external
Version:        3.3.2
Release:        0
#
Summary:        Apache External Authentication Modules
License:        Apache-2.0
#
Group:          Productivity/Networking/Web/Servers
#
Url:            https://github.com/haegar/mod-auth-external
Source:         http://mod-auth-external.googlecode.com/files/%{mod_name}-%{version}.tar.gz
BuildRequires:  apache2-devel
BuildRequires:  apache-rpm-macros
Requires:       %{apache_mmn}
Requires:       %{apache_suse_maintenance_mmn}
Requires:       apache2 >= 2.3
# imho pwauth is not strictly needed?
#Requires:       pwauth
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The Apache HTTP Daemon can be configured to require users to supply logins and
passwords before accessing pages in some directories. Authentication is the
process of checking if the password given is correct for a user. Apache has
standard modules for authenticating out of several different kinds of
databases. These external authentication modules provide a flexible tool for
creating authentication systems based on other databases.

%prep
%setup -q -n %{mod_name}-%{version}
# it would introduce dependency on /usr/bin/php :-/
chmod -x test/test.pipe.php
rm -rf .libs/ .*.swp

%build
%{apache_apxs} -c %{mod_name}.c

%install
install -Dd -m 0755 %{buildroot}%{apache_libexecdir}
%{apache_apxs} -S LIBEXECDIR="%{buildroot}%{apache_libexecdir}" -i -n %{mod_name} %{mod_name}.la

%files
%defattr(-,root,root,-)
%{apache_libexecdir}/%{mod_name}.so
%doc test/
%doc AUTHENTICATORS CHANGES INSTALL* README TODO UPGRADE

openSUSE Build Service is sponsored by