]>
Commit | Line | Data |
---|---|---|
1 | %define mod_name fcgid | |
2 | %define apxs /usr/sbin/apxs | |
3 | Summary: A binary compatibility alternative to Apache module mod_fastcgi | |
4 | Summary(pl.UTF-8): Binarnie kompatybilna alternatywa dla modułu Apache'a mod_fastcgi | |
5 | Name: apache-mod_%{mod_name} | |
6 | Version: 2.2 | |
7 | Release: 3 | |
8 | License: GPL v2 | |
9 | Group: Networking/Daemons/HTTP | |
10 | Source0: http://dl.sourceforge.net/mod-fcgid/mod_%{mod_name}.%{version}.tar.gz | |
11 | # Source0-md5: ce7d7b16e69643dbd549d43d85025983 | |
12 | Source1: %{name}.conf | |
13 | Patch0: %{name}-suexec-path.patch | |
14 | URL: http://fastcgi.coremail.cn/ | |
15 | BuildRequires: %{apxs} | |
16 | BuildRequires: apache-devel >= 2.0.52-2 | |
17 | BuildRequires: libtool | |
18 | BuildRequires: rpmbuild(macros) >= 1.268 | |
19 | Requires: apache(modules-api) = %apache_modules_api | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
23 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d | |
24 | ||
25 | %description | |
26 | A binary compatibility alternative to Apache module mod_fastcgi. | |
27 | mod_fcgid has a new process management strategy, which concentrates on | |
28 | reducing the number of fastcgi server, and kick out the corrupt | |
29 | fastcgi server as soon as possible. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Binarnie kompatybilna alternatywa dla modułu Apache'a mod_fastcgi. | |
33 | mod_fcgid to nowa strategia zarządzania procesami, koncentrująca się | |
34 | na redukcji liczby serwerów fastcgi i usuwaniu uszkodzonych serwerów | |
35 | fastcgi najszybciej jak to możliwe. | |
36 | ||
37 | %prep | |
38 | %setup -q -n mod_%{mod_name}.%{version} | |
39 | %patch0 -p1 | |
40 | ||
41 | %build | |
42 | %{__make} \ | |
43 | top_dir=%{_pkglibdir} \ | |
44 | APXS=%{apxs} \ | |
45 | INCLUDES="-I%(%{apxs} -q INCLUDEDIR)" | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}} | |
50 | ||
51 | install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} | |
52 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/70_mod_%{mod_name}.conf | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %post | |
58 | %service -q httpd restart | |
59 | ||
60 | %postun | |
61 | if [ "$1" = "0" ]; then | |
62 | %service -q httpd restart | |
63 | fi | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc AUTHOR ChangeLog | |
68 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf | |
69 | %attr(755,root,root) %{_pkglibdir}/*.so |