]>
Commit | Line | Data |
---|---|---|
8c358bba AM |
1 | %define mod_name vhost_limit |
2 | %define apxs /usr/sbin/apxs | |
3 | Summary: Apache module: clients restriction per vhost | |
1f472ffc | 4 | Summary(pl.UTF-8): Moduł Apache'a - ograniczanie klientów dla vhosta |
8c358bba | 5 | Name: apache-mod_%{mod_name} |
2e87db6d | 6 | Version: 0.2 |
8c358bba AM |
7 | Release: 1 |
8 | License: Apache | |
9 | Group: Networking/Daemons | |
10 | Source0: http://apache.ivn.cl/files/source/mod_vhost_limit-%{version}.tgz | |
2e87db6d | 11 | # Source0-md5: 7379520e078d26503f8323e7f36302fb |
8c358bba | 12 | URL: http://apache.ivn.cl/#vhostlimit |
857b687c | 13 | BuildRequires: %{apxs} |
8c358bba AM |
14 | BuildRequires: apache-devel >= 2.0.0 |
15 | BuildRequires: rpmbuild(macros) >= 1.268 | |
8c358bba | 16 | Requires: apache(modules-api) = %apache_modules_api |
8c358bba AM |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
20 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) | |
21 | ||
22 | %description | |
23 | Restrict the number of simultaneous connections per vhost. | |
24 | ||
7b380b03 JR |
25 | %description -l pl.UTF-8 |
26 | Moduł ograniczający liczbę jednoczesnych połączeń dla vhosta. | |
e848bc3d | 27 | |
8c358bba AM |
28 | %prep |
29 | %setup -q -n mod_vhost_limit-%{version} | |
30 | ||
31 | %build | |
32 | %{apxs} -c mod_vhost_limit.c | |
33 | ||
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | install -d $RPM_BUILD_ROOT%{_pkglibdir} | |
37 | ||
710bb851 ER |
38 | libtool install mod_vhost_limit.la $RPM_BUILD_ROOT%{_pkglibdir} |
39 | rm -f $RPM_BUILD_ROOT%{_pkglibdir}/*.{l,}a | |
8c358bba AM |
40 | |
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
46 | %attr(755,root,root) %{_pkglibdir}/*.so |