1 %define _modname xdebug
4 Summary: %{_modname} - provides functions for functions traces and profiling
5 Summary(pl): %{_modname} - funkcje do ¶ledzenia i profilowania funkcji
6 Name: php-pecl-%{_modname}
10 Group: Development/Languages/PHP
11 Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
12 # Source0-md5: 942bc3ea3e0951dc37c08ada3a3c9029
13 URL: http://pecl.php.net/package/xdebug/
14 BuildRequires: libtool
15 BuildRequires: php-devel
17 Obsoletes: php-pear-%{_modname}
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _sysconfdir /etc/php
21 %define extensionsdir %{_libdir}/php
24 The Xdebug extension helps you debugging your script by providing a
25 lot of valuable debug information. The debug information that Xdebug
26 can provide includes the following:
28 - stack and function traces in error messages with:
29 - full parameter display for user defined functions
30 - function name, file name and line indications
31 - support for member functions
33 - protection for infinite recursions
37 - profiling information for PHP scripts
38 - script execution analysis
39 - capabilities to debug your scripts interactively with a debug client
41 In PECL status of this package is: %{_status}.
44 Rozszerzenie Xdebug pomaga przy odpluskwianiu skryptu dostarczaj±c
45 du¿o warto¶ciowych informacji. Informacje przydatne do ¶ledzenia,
46 które mo¿e zapewniæ Xdebug, obejmuj±:
48 - ¶ledzenie stosu i funkcji w komunikatach b³êdów wraz z:
49 - pe³nym wy¶wietlaniem parametrów dla funkcji zdefiniowanych przez
51 - nazwami funkcji, nazwami plików i numerami linii
53 - przydzielanie pamiêci
54 - zabezpieczenie przed nieskoñczon± rekurencj±
56 Xdebug dostarcza tak¿e:
58 - informacje do profilowania skryptów PHP
59 - analizê wywo³añ skryptu
60 - mo¿liwo¶æ ¶ledzenia skryptów interaktywnie przy pomocy klienta
63 To rozszerzenie ma w PECL status: %{_status}.
69 cd %{_modname}-%{version}
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT%{extensionsdir}
78 install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
81 rm -rf $RPM_BUILD_ROOT
84 %{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cgi.ini
87 if [ "$1" = "0" ]; then
88 %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php-cgi.ini
92 %defattr(644,root,root,755)
93 %doc %{_modname}-%{version}/{README,NEWS,Changelog,CREDITS}
94 %attr(755,root,root) %{extensionsdir}/%{_modname}.so