File php5-xdebug.spec of Package php5-xdebug

# norootforbuild
%define pkg_name    xdebug
%define extra_ver   %{nil}
#
Name: php5-xdebug
Version: 2.1.1
Release: 4.10
#
License: BSD
Group: Productivity/Networking/Web/Servers
#
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build
BuildRequires: php5-devel
#
URL: http://www.xdebug.org/
Source: http://pecl.php.net/package/Xdebug/%{pkg_name}-%{version}%{extra_ver}.tgz
Source1: xdebug.ini
Summary: Extended PHP debugger
%if %{?php_zend_api}0
Requires:     php(zend-abi) = %{php_zend_api}
Requires:     php(api) = %{php_core_api}
%else
%requires_eq php5
%endif

%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:
o full parameter display for user defined functions
o function name, file name and line indications
o 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

Authors:
---------
    Derick Rethans derick@php.net

%prep
%setup -q -n %{pkg_name}-%{version}%{extra_ver}
%{__mkdir} %{name}

%build
/usr/bin/phpize
pushd %{name}
export CFLAGS="%optflags"
../configure --enable-xdebug
%{__make} %{?jobs:-j%jobs}
popd

%install

%makeinstall -C %{name} INSTALL_ROOT=%{buildroot}
%{__mkdir_p} %{buildroot}%{_sysconfdir}/php5/conf.d
%{__install} -m 644 %{S:1} %{buildroot}%{_sysconfdir}/php5/conf.d/xdebug.ini
%{__sed} -i -e "s|@extension_dir@|`php-config --extension-dir`|g" %{buildroot}%{_sysconfdir}/php5/conf.d/xdebug.ini
%clean

%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_libdir}/php5/extensions/xdebug.so
%config(noreplace) %{_sysconfdir}/php5/conf.d/xdebug.ini

%doc README LICENSE Changelog NEWS CREDITS

%changelog
* Tue Mar 29 2011 crrodriguez@opensuse.org
- Update to 2.1.1 final
* Fri Mar 25 2011 crrodriguez@opensuse.org
- Update to 2.1.1 RC1
* Fri Dec 24 2010 cristian.rodriguez@opensuse.org
- add a service
* Fri Dec 24 2010 cristian.rodriguez@opensuse.org
- Update to version 2.1.0 final
* Tue Apr  6 2010 crrodriguez@opensuse.org
- fix build in older products
* Fri Apr  2 2010 crrodriguez@opensuse.org
- update to version 2.1.0beta3
* Sun Sep 27 2009 crrodriguez@suse.de
- workaround for http://bugs.php.net/bug.php?id=49677
* Mon Nov 12 2007 crrodriguez@suse.de
- version 2.0.2
- Fixed bug #325: DBGP: "detach" stops further sessions being established
  from Apache.
- Fixed bug #321: Code coverage crashes on empty PHP files.
- Fixed bug #318: Segmentation Fault in code coverage analysis.
- Fixed bug #315: Xdebug crashes when including a file that doesn't exist.
- Fixed bug #314: PHP CLI Error Logging thwarted when XDebug Loaded.
- Fixed bug #300: Direction of var_dump().
- Always set the transaction_id and command. (Related to bug #313).
* Mon Oct 22 2007 crrodriguez@suse.de
- update to version 2.0.1
- Improved code coverage performance dramatically.
- PHP 5.3 compatibility (no namespaces yet though).
- Fixed bug #300: Xdebug does not force LTR rendering for its tables.
- Fixed bug #299: Computerized traces don't have a newline for return
  entries if memory limit is not enabled.
- Fixed bug #298: xdebug_var_dump() doesn't handle entity replacements
  correctly concerning string length.
- Fixed a memory free error related to remote debugging conditions.
* Thu May 17 2007 judas_iscariote@shorewall.net
- update snapshot to RC5-dev
* Sun Apr 29 2007 judas_iscariote@shorewall.net
- update to RC4 snapshot to fix some annoying crashes and bugs.
openSUSE Build Service is sponsored by