1 %define _modname xdebug
3 %define _sysconfdir /etc/php
4 %define extensionsdir %(php-config --extension-dir 2>/dev/null)
5 Summary: %{_modname} - provides functions for functions traces and profiling
6 Summary(pl): %{_modname} - funkcje do ¶ledzenia i profilowania funkcji
7 Name: php-pecl-%{_modname}
11 Release: 1.%{_snap}.%{_rel}
13 Group: Development/Languages/PHP
14 Source0: http://pecl.php.net/get/%{_modname}-%{version}%{_snap}.tgz
15 # Source0-md5: 2abef81227a5d60af45ad0792e2fd996
16 URL: http://pecl.php.net/package/xdebug/
17 BuildRequires: libedit-devel
18 BuildRequires: libtool
19 BuildRequires: php-devel >= 3:5.0.0
20 BuildRequires: rpmbuild(macros) >= 1.344
21 Requires: %{_sysconfdir}/conf.d
22 %{?requires_zend_extension}
23 Conflicts: ZendOptimizer
24 Obsoletes: php-pear-%{_modname}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 The Xdebug extension helps you debugging your script by providing a
29 lot of valuable debug information. The debug information that Xdebug
30 can provide includes the following:
32 - stack and function traces in error messages with:
33 - full parameter display for user defined functions
34 - function name, file name and line indications
35 - support for member functions memory allocation
36 - protection for infinite recursions
40 - profiling information for PHP scripts
41 - script execution analysis
42 - capabilities to debug your scripts interactively with a debug client
44 In PECL status of this package is: %{_status}.
47 Rozszerzenie Xdebug pomaga przy odpluskwianiu skryptu dostarczaj±c
48 du¿o warto¶ciowych informacji. Informacje przydatne do ¶ledzenia,
49 które mo¿e zapewniæ Xdebug, obejmuj±:
51 - ¶ledzenie stosu i funkcji w komunikatach b³êdów wraz z:
52 - pe³nym wy¶wietlaniem parametrów dla funkcji zdefiniowanych przez
54 - nazwami funkcji, nazwami plików i numerami linii
56 - przydzielanie pamiêci
57 - zabezpieczenie przed nieskoñczon± rekurencj±
59 Xdebug dostarcza tak¿e:
61 - informacje do profilowania skryptów PHP
62 - analizê wywo³añ skryptu
63 - mo¿liwo¶æ ¶ledzenia skryptów interaktywnie przy pomocy klienta
66 To rozszerzenie ma w PECL status: %{_status}.
70 chmod +x %{_modname}-%{version}%{_snap}/debugclient/configure
73 cd %{_modname}-%{version}%{_snap}
78 install /usr/share/automake/config.* .
87 rm -rf $RPM_BUILD_ROOT
88 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/conf.d,%{extensionsdir}}
90 install %{_modname}-*/debugclient/debugclient $RPM_BUILD_ROOT%{_bindir}/%{_modname}-debugclient
91 install %{_modname}-*/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
92 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
93 ; Enable %{_modname} extension module
94 zend_extension%{?zend_zts:_ts}=%{extensionsdir}/%{_modname}.so
98 rm -rf $RPM_BUILD_ROOT
101 %php_webserver_restart
104 if [ "$1" = 0 ]; then
105 %php_webserver_restart
109 %defattr(644,root,root,755)
110 %doc %{_modname}-*/{README,NEWS,Changelog,CREDITS,xt.vim}
111 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/%{_modname}.ini
112 %attr(755,root,root) %{extensionsdir}/%{_modname}.so
113 %attr(755,root,root) %{_bindir}/*