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