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: 0.%{_snap}.%{_rel}
13 Group: Development/Languages/PHP
14 Source0: http://pecl.php.net/get/%{_modname}-%{version}%{_snap}.tgz
15 # Source0-md5: 3aa38da6a75923bd9560c69b63faa37d
16 Patch0: %{name}-gcc4.patch
17 URL: http://pecl.php.net/package/xdebug/
18 BuildRequires: libedit-devel
19 BuildRequires: libtool
20 BuildRequires: php-devel >= 3:5.0.0
21 BuildRequires: rpmbuild(macros) >= 1.254
22 Requires: %{_sysconfdir}/conf.d
23 %{?requires_zend_extension}
24 Conflicts: ZendOptimizer
25 Obsoletes: php-pear-%{_modname}
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 The Xdebug extension helps you debugging your script by providing a
30 lot of valuable debug information. The debug information that Xdebug
31 can provide includes the following:
33 - stack and function traces in error messages with:
34 - full parameter display for user defined functions
35 - function name, file name and line indications
36 - support for member functions memory allocation
37 - protection for infinite recursions
41 - profiling information for PHP scripts
42 - script execution analysis
43 - capabilities to debug your scripts interactively with a debug client
45 In PECL status of this package is: %{_status}.
48 Rozszerzenie Xdebug pomaga przy odpluskwianiu skryptu dostarczaj±c
49 du¿o warto¶ciowych informacji. Informacje przydatne do ¶ledzenia,
50 które mo¿e zapewniæ Xdebug, obejmuj±:
52 - ¶ledzenie stosu i funkcji w komunikatach b³êdów wraz z:
53 - pe³nym wy¶wietlaniem parametrów dla funkcji zdefiniowanych przez
55 - nazwami funkcji, nazwami plików i numerami linii
57 - przydzielanie pamiêci
58 - zabezpieczenie przed nieskoñczon± rekurencj±
60 Xdebug dostarcza tak¿e:
62 - informacje do profilowania skryptów PHP
63 - analizê wywo³añ skryptu
64 - mo¿liwo¶æ ¶ledzenia skryptów interaktywnie przy pomocy klienta
67 To rozszerzenie ma w PECL status: %{_status}.
72 chmod +x %{_modname}-%{version}%{_snap}/debugclient/configure
75 cd %{_modname}-%{version}%{_snap}
80 install /usr/share/automake/config.* .
89 rm -rf $RPM_BUILD_ROOT
90 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/conf.d,%{extensionsdir}}
92 install %{_modname}-*/debugclient/debugclient $RPM_BUILD_ROOT%{_bindir}/%{_modname}-debugclient
93 install %{_modname}-*/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
94 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
95 ; Enable %{_modname} extension module
96 zend_extension%{?zend_zts:_ts}=%{extensionsdir}/%{_modname}.so
100 rm -rf $RPM_BUILD_ROOT
103 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
104 [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
107 if [ "$1" = 0 ]; then
108 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
109 [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
113 %defattr(644,root,root,755)
114 %doc %{_modname}-*/{README,NEWS,Changelog,CREDITS,xt.vim}
115 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/%{_modname}.ini
116 %attr(755,root,root) %{extensionsdir}/%{_modname}.so
117 %attr(755,root,root) %{_bindir}/*