]> git.pld-linux.org Git - packages/apache-mod_vhost_limit.git/blob - apache-mod_vhost_limit.spec
- cleanup from some template?
[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 Requires:       apache(modules-api) = %apache_modules_api
16 BuildRoot:      %{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
22 Restrict 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
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT%{_pkglibdir}
33
34 libtool install mod_vhost_limit.la $RPM_BUILD_ROOT%{_pkglibdir}
35 rm -f $RPM_BUILD_ROOT%{_pkglibdir}/*.{l,}a
36
37 %clean
38 rm -rf $RPM_BUILD_ROOT
39
40 %files
41 %defattr(644,root,root,755)
42 %attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.058559 seconds and 3 git commands to generate.