]> git.pld-linux.org Git - packages/apache1-mod_fastcgi.git/blob - apache1-mod_fastcgi.spec
- release 1: use new %doc.
[packages/apache1-mod_fastcgi.git] / apache1-mod_fastcgi.spec
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
7 Version:        2.2.12
8 Release:        1
9 License:        Open Market
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)
18
19 %define         _libexecdir     %{_libdir}/apache
20 %define         _htmldocdir     /home/httpd/manual/mod
21
22 %description
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.
27
28 %description -l pl
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.
32
33 %description -l ru
34 FastCGI - ÒÁÓÛÉÒÅÎÉÅ CGI, ËÏÔÏÒÏÅ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ×ÏÚÍÏÖÎÏÓÔØ ÓÏÚÄÁ×ÁÔØ
35 ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÅ Internet-ÐÒÉÌÏÖÅÎÉÑ ÂÅÚ ÎÅÏÂÈÏÄÉÍÏÓÔÉ
36 ÉÓÐÏÌØÚÏ×ÁÔØ ÓÐÅÃÉÆÉÞÅÓËÉÅ ÄÌÑ ËÁÖÄÏÇÏ web-ÓÅÒ×ÅÒÁ API.
37
38 óËÏÒÏÓÔØ API web-ÓÅÒ×ÅÒÏ× ÓÏ ×ÓÅÍÉ ÐÒÅÉÍÕÝÅÓÔ×ÁÍÉ CGI.
39
40 %description -l uk
41 FastCGI - ÒÏÚÛÉÒÅÎÎÑ CGI, ÑËÅ ÎÁÄÁ¤ ÍÏÖÌÉצÓÔØ ÓÔ×ÏÒÀ×ÁÔÉ
42 ×ÉÓÏËÏÐÒÏÄÕËÔÉ×Φ Internet-ÐÒÏÇÒÁÍÉ ÂÅÚ ÎÅÏÂȦÄÎÏÓÔ¦ ×ÉËÏÒÉÓÔÁÎÎÑ
43 ÓÐÅÃÉƦÞÎÉÈ ÄÌÑ ËÏÖÎÏÇÏ web-ÓÅÒ×ÅÒÕ API.
44
45 û×ÉÄ˦ÓÔØ API web-ÓÅÒ×ÅҦנڦ ×Ó¦ÍÁ ÐÅÒÅ×ÁÇÁÍÉ CGI.
46
47 %prep
48 %setup -q -n mod_fastcgi-%{version}
49
50 %build
51 %{apxs} -D SUEXEC_BIN="\"\\\"%{_sbindir}/suexec\\\"\"" -o mod_fastcgi.so -c *.c
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT{%{_libexecdir},%{_htmldocdir}}
56
57 install mod_fastcgi.so $RPM_BUILD_ROOT%{_libexecdir}
58
59 install docs/*.html $RPM_BUILD_ROOT%{_htmldocdir}
60
61 %post
62 %{_sbindir}/apxs -e -a -n fastcgi %{_libexecdir}/mod_fastcgi.so 1>&2
63 if [ -f /var/lock/subsys/httpd ]; then
64         /etc/rc.d/init.d/httpd restart 1>&2
65 else
66         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
67 fi
68
69 %preun
70 if [ "$1" = "0" ]; then
71         %{_sbindir}/apxs -e -A -n fastcgi %{_libexecdir}/mod_fastcgi.so 1>&2
72         if [ -f /var/lock/subsys/httpd ]; then
73                 /etc/rc.d/init.d/httpd restart 1>&2
74         fi
75 fi
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %doc docs/LICENSE.TERMS CHANGES
83 %doc %{_htmldocdir}/*
84 %attr(755,root,root) %{_libexecdir}/*
This page took 0.078278 seconds and 3 git commands to generate.