]> git.pld-linux.org Git - packages/apache-mod_vhost_limit.git/blame - apache-mod_vhost_limit.spec
- cleanup from some template?
[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
8c358bba 15Requires: apache(modules-api) = %apache_modules_api
8c358bba
AM
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
19%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
20
21%description
22Restrict the number of simultaneous connections per vhost.
23
24%prep
25%setup -q -n mod_vhost_limit-%{version}
26
27%build
28%{apxs} -c mod_vhost_limit.c
29
30%install
31rm -rf $RPM_BUILD_ROOT
32install -d $RPM_BUILD_ROOT%{_pkglibdir}
33
710bb851
ER
34libtool install mod_vhost_limit.la $RPM_BUILD_ROOT%{_pkglibdir}
35rm -f $RPM_BUILD_ROOT%{_pkglibdir}/*.{l,}a
8c358bba
AM
36
37%clean
38rm -rf $RPM_BUILD_ROOT
39
40%files
41%defattr(644,root,root,755)
42%attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.129365 seconds and 4 git commands to generate.