]>
Commit | Line | Data |
---|---|---|
9212a2fd | 1 | # NOTE |
9212a2fd | 2 | # - Can't find what Free Download means (http://www.zend.com/free_download/list) |
d465c43d ER |
3 | # - dummy.php should be placed to document root |
4 | ||
5 | # Unusable in PLD Linux as our PHP is compiled with ZTS, while this extension is not | |
6 | %define _zend_zts 0 | |
7 | ||
8a8e4f08 JB |
8 | Summary: The Zend Debug Server enabling remote debugging of PHP applications |
9 | Summary(pl.UTF-8): Zend Debug Server pozwalający na zdalne śledzenie aplikacji PHP | |
9212a2fd | 10 | Name: ZendDebugger |
d465c43d ER |
11 | Version: 20100729 |
12 | Release: 0.1 | |
9212a2fd ER |
13 | License: Free Download |
14 | Group: Development/Languages/PHP | |
d465c43d ER |
15 | Source0: http://downloads.zend.com/studio_debugger/20100729/%{name}-%{version}-linux-glibc23-i386.tar.gz |
16 | # NoSource0-md5: 6112762c697af055d65e77f4b5705c17 | |
9212a2fd | 17 | NoSource: 0 |
d465c43d ER |
18 | Source1: http://downloads.zend.com/studio_debugger/20100729/%{name}-%{version}-linux-glibc23-x86_64.tar.gz |
19 | # NoSource1-md5: 5423c72de2e4715663186ea5c6cc0ab0 | |
9212a2fd ER |
20 | NoSource: 1 |
21 | URL: http://www.zend.com/store/software/zend_studio | |
d465c43d ER |
22 | BuildRequires: php-devel |
23 | BuildRequires: rpmbuild(macros) >= 1.553 | |
9212a2fd | 24 | BuildRequires: tar >= 1:1.15.1 |
d465c43d ER |
25 | Obsoletes: php-ZendDebugger |
26 | Obsoletes: php4-ZendDebugger | |
27 | Conflicts: ZendStudioServer <= 5.2.0 | |
28 | %{?requires_php_extension} | |
9212a2fd ER |
29 | ExclusiveArch: %{ix86} %{x8664} |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
d465c43d ER |
32 | # No debuginfo to be stored |
33 | %define _enable_debug_packages 0 | |
9212a2fd ER |
34 | |
35 | %description | |
36 | The Zend Debug Server enables remote debugging of PHP applications. It | |
37 | plugs into a PHP server and allows the Zend Development Environment to | |
38 | control the execution of PHP applications on the server. | |
39 | ||
40 | The Debug Server is designed be deployed safely on production servers. | |
41 | It does not affect server performance and features access-list based | |
42 | security for protecting the server from unauthorized access. | |
43 | ||
8a8e4f08 JB |
44 | %description -l pl.UTF-8 |
45 | Zend Debug Server pozwala na zdalne śledzenie aplikacji PHP. Podłącza | |
46 | się do serwera PHP i pozwala środowisku Zend Development Environment | |
47 | sterować wykonywaniem aplikacji PHP na serwerze. | |
48 | ||
49 | Debug server jest zaprojektowany z myślą o bezpiecznym wdrożeniu na | |
50 | serwerach produkcyjnych. Nie wpływa na wydajność serwera i cechuje się | |
51 | bezpieczeństwem opartym na listach dostępu. | |
52 | ||
9212a2fd ER |
53 | %prep |
54 | %setup -qcT | |
55 | %ifarch %{x8664} | |
d465c43d | 56 | %{__tar} --strip-components=1 -xzf %{SOURCE1} |
9212a2fd | 57 | %else |
d465c43d | 58 | %{__tar} --strip-components=1 -xzf %{SOURCE0} |
9212a2fd ER |
59 | %endif |
60 | ||
d465c43d ER |
61 | %undos dummy.php README |
62 | ||
9212a2fd ER |
63 | cat > zend.ini <<EOF |
64 | [Zend] | |
65 | zend_debugger.allow_hosts=127.0.0.1 | |
66 | zend_debugger.expose_remotely=always | |
67 | EOF | |
68 | ||
d465c43d | 69 | cat <<'EOF' > pack.ini |
9212a2fd ER |
70 | ; %{name} package settings. Overwritten with each upgrade. |
71 | ; if you need to add options, edit %{name}.ini instead | |
72 | [Zend] | |
d465c43d | 73 | zend_extension=%{php_extensiondir}/ZendDebugger.so |
9212a2fd ER |
74 | EOF |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
d465c43d ER |
78 | install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}} |
79 | install -p %{php_major_version}_%{php_minor_version}_x_comp/ZendDebugger.so $RPM_BUILD_ROOT%{php_extensiondir} | |
80 | cp -a zend.ini $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{name}.ini | |
81 | cp -a pack.ini $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{name}_pack.ini | |
9212a2fd ER |
82 | |
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
d465c43d ER |
86 | %post |
87 | %php_webserver_restart | |
9212a2fd | 88 | |
d465c43d | 89 | %postun |
9212a2fd ER |
90 | if [ "$1" = "0" ]; then |
91 | %php_webserver_restart | |
92 | fi | |
93 | ||
d465c43d | 94 | %files |
9212a2fd | 95 | %defattr(644,root,root,755) |
d465c43d ER |
96 | %doc README dummy.php |
97 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{name}.ini | |
98 | %config %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{name}_pack.ini | |
99 | %attr(755,root,root) %{php_extensiondir}/ZendDebugger.so |