[-]
[+]
|
Deleted |
php-pecl-xdebug.spec
|
@@ -1,121 +0,0 @@
-%global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)
-%{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}}
-%{!?php_extdir: %{expand: %%global php_extdir %(php-config --extension-dir)}}
-
-%define pecl_name xdebug
-
-Name: php-pecl-xdebug
-Version: 2.0.5
-Release: 1
-Summary: PECL package for debugging PHP scripts
-
-License: BSD
-Group: Development/Languages
-URL: http://pecl.php.net/package/xdebug
-Source0: http://pecl.php.net/get/xdebug-%{version}.tgz
-Patch0: %{pecl_name}-2.0.3-codecoverage.patch
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: automake php-devel php-pear >= 1:1.4.9-1.2
-
-#BuildRequires: libedit-devel
-%define config_flags --without-libedit
-
-Requires(post): %{__pecl}
-Requires(postun): %{__pecl}
-Provides: php-pecl(Xdebug) = %{version}
-
-%if 0%{?php_zend_api}
-Requires: php(zend-abi) = %{php_zend_api}
-Requires: php(api) = %{php_core_api}
-%else
-Requires: php-api = %{php_apiver}
-%endif
-
-%description
-The Xdebug extension helps you debugging your script by providing a lot
-of valuable debug information.
-
-
-%prep
-%setup -qcn xdebug-%{version}
-[ -f package2.xml ] || mv package.xml package2.xml
-mv package2.xml %{pecl_name}-%{version}/%{pecl_name}.xml
-cd xdebug-%{version}
-%patch0 -p1 -b .codecoverage~
-
-# fix rpmlint warnings
-iconv -f iso8859-1 -t utf-8 Changelog > Changelog.conv && mv -f Changelog.conv Changelog
-chmod -x *.[ch]
-
-
-%build
-cd xdebug-%{version}
-phpize
-%configure --enable-xdebug
-CFLAGS="$RPM_OPT_FLAGS" make
-
-# Build debugclient
-pushd debugclient
-cp %{_datadir}/automake*/depcomp .
-chmod +x configure
-%configure %{config_flags}
-CFLAGS="$RPM_OPT_FLAGS" make
-popd
-
-
-%install
-cd xdebug-%{version}
-rm -rf $RPM_BUILD_ROOT
-make install INSTALL_ROOT=$RPM_BUILD_ROOT
-
-# install debugclient
-install -d $RPM_BUILD_ROOT%{_bindir}
-install -pm 755 debugclient/debugclient $RPM_BUILD_ROOT%{_bindir}
-
-# install config file
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/php.d
-cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/xdebug.ini << 'EOF'
-; Enable xdebug extension module
-zend_extension=%{php_extdir}/xdebug.so
-EOF
-
-# install doc files
-install -d docs
-install -pm 644 Changelog CREDITS LICENSE NEWS README docs
-
-# Install XML package description
-install -d $RPM_BUILD_ROOT%{pecl_xmldir}
-install -pm 644 %{pecl_name}.xml $RPM_BUILD_ROOT%{pecl_xmldir}/%{name}.xml
-
-
-%if 0%{?pecl_install:1}
-%post
-%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
-%endif
-
-
-%if 0%{?pecl_uninstall:1}
-%postun
-if [ $1 -eq 0 ] ; then
- %{pecl_uninstall} %{pecl_name} >/dev/null || :
-fi
-%endif
-
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
-%files
-%defattr(-,root,root,-)
-%doc xdebug-%{version}/docs/*
-%config(noreplace) %{_sysconfdir}/php.d/xdebug.ini
-%{php_extdir}/xdebug.so
-%{_bindir}/debugclient
-%{pecl_xmldir}/%{name}.xml
-
-
-%changelog
-* Wed Nov 25 2009 Nov Juergen Gotteswinter <jg@internetx.de> 2.0.5-1
-- initial bs import
\ No newline at end of file
|
[-]
[+]
|
Added |
php-pecl-xhprof.spec
^
|
|
[-]
[+]
|
Deleted |
xdebug-2.0.3-codecoverage.patch
^
|
@@ -1,29 +0,0 @@
-diff -u xdebug-2.0.3-orig/xdebug_code_coverage.c xdebug-2.0.3/xdebug_code_coverage.c
---- xdebug-2.0.3-orig/xdebug_code_coverage.c 2008-04-09 10:52:03.000000000 -0400
-+++ xdebug-2.0.3/xdebug_code_coverage.c 2008-08-27 13:18:54.000000000 -0400
-@@ -133,7 +133,12 @@
- ) {
- *jmp1 = position + 1;
- #ifdef ZEND_ENGINE_2
-- *jmp2 = ((long) opcode.op2.u.jmp_addr - (long) base_address) / sizeof(zend_op);
-+ /* if opline_num is smaller than base_address, use it directly */
-+ if ((long) opcode.op2.u.opline_num < (long) base_address) {
-+ *jmp2 = opcode.op2.u.opline_num;
-+ } else {
-+ *jmp2 = ((long) opcode.op2.u.jmp_addr - (long) base_address) / sizeof(zend_op);
-+ }
- #else
- *jmp2 = opcode.op1.u.opline_num;
- #endif
-@@ -163,6 +168,11 @@
- long jump_pos1 = -1;
- long jump_pos2 = -1;
-
-+ /* Cancel if position is bigger than the actual size */
-+ if (position > opa->size) {
-+ return;
-+ }
-+
- /*(fprintf(stderr, "Branch analysis from position: %d\n", position);)*/
- /* First we see if the branch has been visited, if so we bail out. */
- if (xdebug_set_in(set, position)) {
|
|
Deleted |
xdebug-2.0.5.tgz
^
|
|
Added |
xhprof-0.9.2.tgz
^
|