1 %define apxs /usr/sbin/apxs
2 Summary: Support for the FastCGI protocol for apache webserver
3 Summary(pl): Obs³uga protoko³u FastCGI dla serwera apache
4 Summary(ru): FastCGI - ÂÏÌÅÅ ÂÙÓÔÒÁÑ ×ÅÒÓÉÑ CGI
5 Summary(uk): FastCGI - ¦ÌØÛ Û×ÉÄËÁ ×ÅÒÓ¦Ñ CGI
6 Name: apache-mod_fastcgi
10 Group: Networking/Daemons
11 Source0: http://www.FastCGI.com/dist/mod_fastcgi-%{version}.tar.gz
12 URL: http://www.FastCGI.com/
13 BuildRequires: apache-devel
14 BuildRequires: %{apxs}
15 Prereq: %{_sbindir}/apxs
16 Requires: apache >= 1.3.1
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _libexecdir %{_libdir}/apache
20 %define _htmldocdir /home/httpd/manual/mod
23 This 3rd party module provides support for the FastCGI protocol.
24 FastCGI is a language independent, scalable, open extension to CGI
25 that provides high performance and persistence without the limitations
26 of server specific APIs.
29 To jest modu³ apache dodaj±cy obs³ugê protoko³u FastCGI. FastCGI jest
30 niezale¿nym od jêzyka, skalowalnym, otwartym rozszerzeniem CGI daj±cym
31 du¿± wydajno¶æ bez ograniczania API specificznego dla serwera.
34 FastCGI - ÒÁÓÛÉÒÅÎÉÅ CGI, ËÏÔÏÒÏÅ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ×ÏÚÍÏÖÎÏÓÔØ ÓÏÚÄÁ×ÁÔØ
35 ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÅ Internet-ÐÒÉÌÏÖÅÎÉÑ ÂÅÚ ÎÅÏÂÈÏÄÉÍÏÓÔÉ
36 ÉÓÐÏÌØÚÏ×ÁÔØ ÓÐÅÃÉÆÉÞÅÓËÉÅ ÄÌÑ ËÁÖÄÏÇÏ web-ÓÅÒ×ÅÒÁ API.
38 óËÏÒÏÓÔØ API web-ÓÅÒ×ÅÒÏ× ÓÏ ×ÓÅÍÉ ÐÒÅÉÍÕÝÅÓÔ×ÁÍÉ CGI.
41 FastCGI - ÒÏÚÛÉÒÅÎÎÑ CGI, ÑËÅ ÎÁÄÁ¤ ÍÏÖÌÉצÓÔØ ÓÔ×ÏÒÀ×ÁÔÉ
42 ×ÉÓÏËÏÐÒÏÄÕËÔÉ×Φ Internet-ÐÒÏÇÒÁÍÉ ÂÅÚ ÎÅÏÂȦÄÎÏÓÔ¦ ×ÉËÏÒÉÓÔÁÎÎÑ
43 ÓÐÅÃÉƦÞÎÉÈ ÄÌÑ ËÏÖÎÏÇÏ web-ÓÅÒ×ÅÒÕ API.
45 û×ÉÄ˦ÓÔØ API web-ÓÅÒ×ÅÒ¦× Ú¦ ×Ó¦ÍÁ ÐÅÒÅ×ÁÇÁÍÉ CGI.
48 %setup -q -n mod_fastcgi-%{version}
51 %{apxs} -D SUEXEC_BIN="\"\\\"%{_sbindir}/suexec\\\"\"" -o mod_fastcgi.so -c *.c
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT{%{_libexecdir},%{_htmldocdir}}
57 install mod_fastcgi.so $RPM_BUILD_ROOT%{_libexecdir}
59 install docs/*.html $RPM_BUILD_ROOT%{_htmldocdir}
61 gzip -9nf docs/LICENSE.TERMS CHANGES
64 %{_sbindir}/apxs -e -a -n fastcgi %{_libexecdir}/mod_fastcgi.so 1>&2
65 if [ -f /var/lock/subsys/httpd ]; then
66 /etc/rc.d/init.d/httpd restart 1>&2
68 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
72 if [ "$1" = "0" ]; then
73 %{_sbindir}/apxs -e -A -n fastcgi %{_libexecdir}/mod_fastcgi.so 1>&2
74 if [ -f /var/lock/subsys/httpd ]; then
75 /etc/rc.d/init.d/httpd restart 1>&2
80 rm -rf $RPM_BUILD_ROOT
83 %defattr(644,root,root,755)
86 %attr(755,root,root) %{_libexecdir}/*