]>
Commit | Line | Data |
---|---|---|
0e7e3506 | 1 | %define apxs /usr/sbin/apxs |
0854e400 | 2 | Summary: Support for the PHP via FastCGI protocol for Apache webserver |
0e7e3506 ER |
3 | Name: apache-php-fcgi |
4 | Version: 5.6 | |
69c891fa | 5 | Release: 2 |
0854e400 ER |
6 | License: GPL |
7 | Group: Applications/WWW | |
52ab9b62 | 8 | Source0: apache.conf |
0e7e3506 | 9 | BuildRequires: apache-devel >= 1.3.39 |
0854e400 | 10 | BuildRequires: rpmbuild(macros) >= 1.268 |
69c891fa | 11 | Requires: apache-mod_actions |
0e7e3506 ER |
12 | Requires: apache-mod_fastcgi |
13 | Requires: php(fcgi) | |
251b38e1 | 14 | Suggests: php-fcgi-init |
0854e400 ER |
15 | Provides: webserver(php) = %{version} |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) | |
0854e400 ER |
20 | |
21 | %description | |
22 | This virtual package provides support for the PHP via FastCGI | |
23 | protocol. | |
24 | ||
25 | %prep | |
26 | %setup -qcT | |
27 | ||
0854e400 ER |
28 | %install |
29 | rm -rf $RPM_BUILD_ROOT | |
30 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d | |
52ab9b62 | 31 | cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_php-fcgi.conf |
0854e400 ER |
32 | |
33 | %clean | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | ||
36 | %post | |
0e7e3506 | 37 | %service -q httpd restart |
0854e400 ER |
38 | |
39 | %postun | |
40 | if [ "$1" = "0" ]; then | |
0e7e3506 | 41 | %service -q httpd restart |
0854e400 ER |
42 | fi |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
46 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_php-fcgi.conf |