1 %define mod_name fastcgi
2 %define apxs /usr/sbin/apxs1
3 Summary: Support for the FastCGI protocol for apache webserver
4 Summary(pl): Obs³uga protoko³u FastCGI dla serwera apache
5 Summary(ru): FastCGI - ÂÏÌÅÅ ÂÙÓÔÒÁÑ ×ÅÒÓÉÑ CGI
6 Summary(uk): FastCGI - ¦ÌØÛ Û×ÉÄËÁ ×ÅÒÓ¦Ñ CGI
7 Name: apache1-mod_%{mod_name}
8 # NOTE: remember about apache-mod_fastcgi.spec when messing here
11 License: distributable
12 Group: Networking/Daemons
13 Source0: http://www.FastCGI.com/dist/mod_%{mod_name}-%{version}.tar.gz
14 # Source0-md5: e994414304b535cb99e10b7d1cad1d1e
15 Patch0: apache-mod_%{mod_name}-allow-uid-gid.patch
16 URL: http://www.FastCGI.com/
17 BuildRequires: %{apxs}
18 BuildRequires: apache1-devel >= 1.3.1
19 BuildRequires: libtool
20 Requires(post,preun): %{apxs}
21 Requires: apache1 >= 1.3.1
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _sysconfdir %(%{apxs} -q SYSCONFDIR)
25 %define _pkglibdir %(%{apxs} -q LIBEXECDIR)
28 This 3rd party module provides support for the FastCGI protocol.
29 FastCGI is a language independent, scalable, open extension to CGI
30 that provides high performance and persistence without the limitations
31 of server specific APIs.
34 To jest modu³ apache dodaj±cy obs³ugê protoko³u FastCGI. FastCGI jest
35 niezale¿nym od jêzyka, skalowalnym, otwartym rozszerzeniem CGI daj±cym
36 du¿± wydajno¶æ bez ograniczania API specyficznego dla serwera.
39 FastCGI - ÒÁÓÛÉÒÅÎÉÅ CGI, ËÏÔÏÒÏÅ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ×ÏÚÍÏÖÎÏÓÔØ ÓÏÚÄÁ×ÁÔØ
40 ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÅ Internet-ÐÒÉÌÏÖÅÎÉÑ ÂÅÚ ÎÅÏÂÈÏÄÉÍÏÓÔÉ
41 ÉÓÐÏÌØÚÏ×ÁÔØ ÓÐÅÃÉÆÉÞÅÓËÉÅ ÄÌÑ ËÁÖÄÏÇÏ web-ÓÅÒ×ÅÒÁ API.
43 óËÏÒÏÓÔØ API web-ÓÅÒ×ÅÒÏ× ÓÏ ×ÓÅÍÉ ÐÒÅÉÍÕÝÅÓÔ×ÁÍÉ CGI.
46 FastCGI - ÒÏÚÛÉÒÅÎÎÑ CGI, ÑËÅ ÎÁÄÁ¤ ÍÏÖÌÉצÓÔØ ÓÔ×ÏÒÀ×ÁÔÉ
47 ×ÉÓÏËÏÐÒÏÄÕËÔÉ×Φ Internet-ÐÒÏÇÒÁÍÉ ÂÅÚ ÎÅÏÂȦÄÎÏÓÔ¦ ×ÉËÏÒÉÓÔÁÎÎÑ
48 ÓÐÅÃÉƦÞÎÉÈ ÄÌÑ ËÏÖÎÏÇÏ web-ÓÅÒ×ÅÒÕ API.
50 û×ÉÄ˦ÓÔØ API web-ÓÅÒ×ÅÒ¦× Ú¦ ×Ó¦ÍÁ ÐÅÒÅ×ÁÇÁÍÉ CGI.
53 %setup -q -n mod_%{mod_name}-%{version}
57 %{apxs} -o mod_%{mod_name}.so -c *.c
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT{%{_pkglibdir},}
63 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
66 rm -rf $RPM_BUILD_ROOT
69 %{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
70 if [ -f /var/lock/subsys/apache ]; then
71 /etc/rc.d/init.d/apache restart 1>&2
73 echo "Run \"/etc/rc.d/init.d/apache start\" to start apache http daemon."
77 if [ "$1" = "0" ]; then
78 %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
79 if [ -f /var/lock/subsys/apache ]; then
80 /etc/rc.d/init.d/apache restart 1>&2
85 %defattr(644,root,root,755)
86 %doc docs/LICENSE.TERMS CHANGES docs/*.html
87 %attr(755,root,root) %{_pkglibdir}/*.so