1 %define mod_name fastcgi
2 %define apxs /usr/sbin/apxs
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: apache-mod_%{mod_name}
8 # NOTE: remember about apache1-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: %{name}-apr1.patch
16 Patch1: %{name}-allow-uid-gid.patch
17 Patch2: %{name}-socketdir.patch
19 URL: http://www.FastCGI.com/
20 BuildRequires: %{apxs}
21 BuildRequires: apache-devel >= 2.2
22 BuildRequires: libtool
23 Requires(post,preun): %{apxs}
24 Requires: apache(modules-api) = %apache_modules_api
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _sysconfdir %(%{apxs} -q SYSCONFDIR)
28 %define _pkglibdir %(%{apxs} -q LIBEXECDIR)
29 %define _socketdir /var/run/httpd/fastcgi
32 This 3rd party module provides support for the FastCGI protocol.
33 FastCGI is a language independent, scalable, open extension to CGI
34 that provides high performance and persistence without the limitations
35 of server specific APIs.
38 To jest modu³ apache dodaj±cy obs³ugê protoko³u FastCGI. FastCGI jest
39 niezale¿nym od jêzyka, skalowalnym, otwartym rozszerzeniem CGI daj±cym
40 du¿± wydajno¶æ bez ograniczania API specyficznego dla serwera.
43 FastCGI - ÒÁÓÛÉÒÅÎÉÅ CGI, ËÏÔÏÒÏÅ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ×ÏÚÍÏÖÎÏÓÔØ ÓÏÚÄÁ×ÁÔØ
44 ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÅ Internet-ÐÒÉÌÏÖÅÎÉÑ ÂÅÚ ÎÅÏÂÈÏÄÉÍÏÓÔÉ
45 ÉÓÐÏÌØÚÏ×ÁÔØ ÓÐÅÃÉÆÉÞÅÓËÉÅ ÄÌÑ ËÁÖÄÏÇÏ web-ÓÅÒ×ÅÒÁ API.
47 óËÏÒÏÓÔØ API web-ÓÅÒ×ÅÒÏ× ÓÏ ×ÓÅÍÉ ÐÒÅÉÍÕÝÅÓÔ×ÁÍÉ CGI.
50 FastCGI - ÒÏÚÛÉÒÅÎÎÑ CGI, ÑËÅ ÎÁÄÁ¤ ÍÏÖÌÉצÓÔØ ÓÔ×ÏÒÀ×ÁÔÉ
51 ×ÉÓÏËÏÐÒÏÄÕËÔÉ×Φ Internet-ÐÒÏÇÒÁÍÉ ÂÅÚ ÎÅÏÂȦÄÎÏÓÔ¦ ×ÉËÏÒÉÓÔÁÎÎÑ
52 ÓÐÅÃÉƦÞÎÉÈ ÄÌÑ ËÏÖÎÏÇÏ web-ÓÅÒ×ÅÒÕ API.
54 û×ÉÄ˦ÓÔØ API web-ÓÅÒ×ÅÒ¦× Ú¦ ×Ó¦ÍÁ ÐÅÒÅ×ÁÇÁÍÉ CGI.
57 %setup -q -n mod_%{mod_name}-%{version}
63 %{__make} -f Makefile.AP2 \
64 top_dir=%{_pkglibdir} \
65 INCLUDES="-I%(%{apxs} -q INCLUDEDIR)"
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf,%{_socketdir}/dynamic}
71 install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
72 install %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/httpd.conf/
75 rm -rf $RPM_BUILD_ROOT
78 if [ -f /var/lock/subsys/httpd ]; then
79 /etc/rc.d/init.d/httpd restart 1>&2
81 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
85 if [ "$1" = "0" ]; then
86 if [ -f /var/lock/subsys/httpd ]; then
87 /etc/rc.d/init.d/httpd restart 1>&2
92 %defattr(644,root,root,755)
93 %doc docs/LICENSE.TERMS CHANGES docs/*.html
94 %attr(755,root,root) %{_pkglibdir}/*.so
95 %config %{_sysconfdir}/httpd.conf/*.conf
96 %dir %attr(770,root,http) %{_socketdir}
97 %dir %attr(770,root,http) %{_socketdir}/dynamic