File apache2-mod_limitipconn.spec of Package apache2-mod_limitipconn

#
# spec file for package apache2-mod_limitipconn
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

%define apxs /usr/sbin/apxs2
%define apache apache2
%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)
%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR)
%define apache_includedir %(%{apxs} -q INCLUDEDIR)
%define apache_serverroot %(%{apxs} -q PREFIX)
%define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR)
%define apache_mmn        %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)
Name:           apache2-mod_limitipconn
Summary:	An Apache web server module limiting simultaneous connections per IP
BuildRequires:  apache2-devel apache2-prefork 
Version:        0.22
Release:        7
URL:		http://dominia.org/djao/limitipconn.html
Source0:	http://dominia.org/djao/limit/mod_limitipconn-%{version}.tar.gz
License:        GPL
Group:          Productivity/Networking/Web/Servers
Requires:       apache2 %{apache_mmn} 
Autoreqprov:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
mod_limitipconn is a DSO module for the apache web server to
limit the maximum number of simultaneous connections per IP
address. Allows inclusion and exclusion of files based on MIME
type.

%prep
%setup -q -n mod_limitipconn-%{version}

%build
%{apxs} -c -Wc,"-Wall -g" mod_limitipconn.c


%install
mkdir -p $RPM_BUILD_ROOT/%{apache_libexecdir}
cp -p .libs/mod_limitipconn.so $RPM_BUILD_ROOT/%{apache_libexecdir}


%files
%defattr(-,root,root)
%{apache_libexecdir}/*.so
%doc ChangeLog INSTALL README
#%doc mod_limitipconn/*.conf

%changelog -n apache2-mod_limitipconn
openSUSE Build Service is sponsored by