]> git.pld-linux.org Git - packages/apache-mod_vhost_limit.git/blame - apache-mod_vhost_limit.spec
- allows limiting max clients on per vhost basis
[packages/apache-mod_vhost_limit.git] / apache-mod_vhost_limit.spec
CommitLineData
8c358bba
AM
1%define mod_name vhost_limit
2%define apxs /usr/sbin/apxs
3Summary: Apache module: clients restriction per vhost
4Name: apache-mod_%{mod_name}
5Version: 0.1
6Release: 1
7License: Apache
8Group: Networking/Daemons
9Source0: http://apache.ivn.cl/files/source/mod_vhost_limit-%{version}.tgz
10# Source0-md5: 58e86dfe8f3813f693652ee6740c1c1b
11URL: http://apache.ivn.cl/#vhostlimit
12BuildRequires: %{apxs}
13BuildRequires: apache-devel >= 2.0.0
14BuildRequires: rpmbuild(macros) >= 1.268
15BuildRequires: sed >= 4.0
16Requires: apache(modules-api) = %apache_modules_api
17Requires: crondaemon
18Requires: procps
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
22%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
23
24%description
25Restrict the number of simultaneous connections per vhost.
26
27%prep
28%setup -q -n mod_vhost_limit-%{version}
29
30%build
31%{apxs} -c mod_vhost_limit.c
32
33%install
34rm -rf $RPM_BUILD_ROOT
35install -d $RPM_BUILD_ROOT%{_pkglibdir}
36
37libtool install mod_vhost_limit.la $RPM_BUILD_ROOT%{_pkglibdir}/
38rm -rf $RPM_BUILD_ROOT%{_pkglibdir}/*.{l,}a
39
40%clean
41rm -rf $RPM_BUILD_ROOT
42
43%files
44%defattr(644,root,root,755)
45%attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.113051 seconds and 4 git commands to generate.