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
18 Patch3: %{name}-apache22.patch
20 URL: http://www.FastCGI.com/
21 BuildRequires: %{apxs}
22 BuildRequires: apache-devel >= 2.2
23 BuildRequires: libtool
24 Requires: apache(modules-api) = %apache_modules_api
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
28 %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
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}
64 %{__make} -f Makefile.AP2 \
65 top_dir=%{_pkglibdir} \
66 INCLUDES="-I%(%{apxs} -q INCLUDEDIR)" \
67 EXTRA_CFLAGS='-DAPACHE22'
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf,%{_socketdir}/dynamic}
73 install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
74 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/90_mod_%{mod_name}.conf
77 rm -rf $RPM_BUILD_ROOT
80 if [ -f /var/lock/subsys/httpd ]; then
81 /etc/rc.d/init.d/httpd restart 1>&2
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(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
95 %attr(755,root,root) %{_pkglibdir}/*.so
96 %dir %attr(770,root,http) %{_socketdir}
97 %dir %attr(770,root,http) %{_socketdir}/dynamic