%define _modname xdebug %define _status stable Summary: %{_modname} - provides functions for functions traces and profiling Summary(pl): %{_modname} - funkcje do śledzenia i profilowania funkcji Name: php-pecl-%{_modname} Version: 1.3.2 Release: 1 License: BSD style Group: Development/Languages/PHP Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz # Source0-md5: bf76f41de570da77ab6db67d2c8cbffe URL: http://pecl.php.net/package/xdebug/ BuildRequires: libtool BuildRequires: php-devel Requires: php-common Obsoletes: php-pear-%{_modname} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _sysconfdir /etc/php %define extensionsdir %{_libdir}/php %description The Xdebug extension helps you debugging your script by providing a lot of valuable debug information. The debug information that Xdebug can provide includes the following: - stack and function traces in error messages with: - full parameter display for user defined functions - function name, file name and line indications - support for member functions memory allocation - protection for infinite recursions Xdebug also provides: - profiling information for PHP scripts - script execution analysis - capabilities to debug your scripts interactively with a debug client In PECL status of this package is: %{_status}. %description -l pl Rozszerzenie Xdebug pomaga przy odpluskwianiu skryptu dostarczając dużo wartościowych informacji. Informacje przydatne do śledzenia, które może zapewnić Xdebug, obejmują: - śledzenie stosu i funkcji w komunikatach błędów wraz z: - pełnym wyświetlaniem parametrów dla funkcji zdefiniowanych przez użytkownika - nazwami funkcji, nazwami plików i numerami linii - obsługą metod klas - przydzielanie pamięci - zabezpieczenie przed nieskończoną rekurencją Xdebug dostarcza także: - informacje do profilowania skryptów PHP - analizę wywołań skryptu - możliwość śledzenia skryptów interaktywnie przy pomocy klienta odpluskwiacza To rozszerzenie ma w PECL status: %{_status}. %prep %setup -q -c %build cd %{_modname}-%{version} phpize %configure %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{extensionsdir} install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir} %clean rm -rf $RPM_BUILD_ROOT %post %{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cgi.ini %preun if [ "$1" = "0" ]; then %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php-cgi.ini fi %files %defattr(644,root,root,755) %doc %{_modname}-%{version}/{README,NEWS,Changelog,CREDITS} %attr(755,root,root) %{extensionsdir}/%{_modname}.so