120c34f9aa84aa9d4e1059acb47d0fd056696c41
[packages/apache-mod_vhost_limit.git] / apache-mod_vhost_limit.spec
1 %define         mod_name        vhost_limit
2 %define         apxs            /usr/sbin/apxs
3 Summary:        Apache module: clients restriction per vhost
4 Name:           apache-mod_%{mod_name}
5 Version:        0.1
6 Release:        1
7 License:        Apache
8 Group:          Networking/Daemons
9 Source0:        http://apache.ivn.cl/files/source/mod_vhost_limit-%{version}.tgz
10 # Source0-md5:  58e86dfe8f3813f693652ee6740c1c1b
11 URL:            http://apache.ivn.cl/#vhostlimit
12 BuildRequires:  %{apxs}
13 BuildRequires:  apache-devel >= 2.0.0
14 BuildRequires:  rpmbuild(macros) >= 1.268
15 BuildRequires:  sed >= 4.0
16 Requires:       apache(modules-api) = %apache_modules_api
17 Requires:       crondaemon
18 Requires:       procps
19 BuildRoot:      %{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
25 Restrict 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
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_pkglibdir}
36
37 libtool install mod_vhost_limit.la $RPM_BUILD_ROOT%{_pkglibdir}/
38 rm -rf $RPM_BUILD_ROOT%{_pkglibdir}/*.{l,}a
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %files
44 %defattr(644,root,root,755)
45 %attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.075938 seconds and 2 git commands to generate.