File apache2-mod_auth_memcookie.spec of Package apache2-mod_auth_memcookie

#
# spec file for package apache2-mod_auth_memcookie
#
# 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/
#


Name:           apache2-mod_auth_memcookie
Version:        1.1.3
Release:        0
Summary:        Apache authentification and authorization module
License:        Apache-2.0
Group:          Productivity/Networking/Web/Servers
Url:            https://github.com/openSUSE/apache2-mod_auth_memcookie
Source:         %{name}-%{version}.tar.bz2
Source1:        mod_auth_memcookie.conf
BuildRequires:  apache2-devel
BuildRequires:  libmemcached-devel
Requires:       apache2
Requires:       memcached
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define         apxs %{_bindir}/apxs
%define         apache_libexecdir %(%{apxs} -q LIBEXECDIR)
%define         apache_sysconfdir %(%{apxs} -q SYSCONFDIR)

%description
Auth MemCookie" are an Apache v2 authentification and authorization modules are
based on "cookie" authentification mechanism.

The module does not do authentification by it self, but verify if
authentification "the cookie" are valid for each url protected by the module.
The module validate also if the "authentificated user" have authorisation to
acces an url.

Authentification are made externaly by an authentification form page and all
authentification information nessary to the module a stored in memcached
indentified by the cookie value "authentification session id" by this login
page.

%prep
%setup -q
sed -i "s|APXS=/usr/sbin/apxs2|APXS=%{apxs}|g" Makefile

%build
make %{?_smp_mflags}

%install
install -Dm644 .libs/mod_auth_memcookie.so %{buildroot}/%{apache_libexecdir}/mod_auth_memcookie.so
install -Dm644 %{SOURCE1} %{buildroot}/%{apache_sysconfdir}/conf.d/mod_auth_memcookie.conf.in

%files
%defattr(-,root,root)
%doc ChangeLog README.md docs samples
%{apache_libexecdir}/*.so
%config %{apache_sysconfdir}/conf.d/mod_auth_memcookie.conf.in

%changelog
openSUSE Build Service is sponsored by