Changes of Revision 2
[-] | Added | php5-xdebug.spec |
x 1
2 +# norootforbuild 3 +%define pkg_name xdebug 4 +# 5 +Name: php5-xdebug 6 +Version: 2.0.2 7 +Release: 0 8 +# 9 +License: BSD 10 +Group: Productivity/Networking/Web/Servers 11 +# 12 +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build 13 +BuildRequires: php5-devel 14 +# 15 +URL: http://www.xdebug.org/ 16 +Source: http://pecl.php.net/package/Xdebug/%{pkg_name}-%{version}.tgz 17 +Source1: xdebug.ini 18 +Summary: Extended PHP debugger 19 +%requires_eq php5 20 + 21 +%description 22 + 23 +The Xdebug extension helps you debugging your script by providing a lot of 24 +valuable debug information. The debug information that Xdebug can provide 25 +includes the following: 26 + 27 +* stack and function traces in error messages with: 28 +o full parameter display for user defined functions 29 +o function name, file name and line indications 30 +o support for member functions 31 +* memory allocation 32 +* protection for infinite recursions 33 + 34 +Xdebug also provides: 35 + 36 +* profiling information for PHP scripts 37 +* script execution analysis 38 +* capabilities to debug your scripts interactively with a debug client 39 + 40 +Authors: 41 +--------- 42 + Derick Rethans derick@php.net 43 + 44 +%prep 45 +%setup -q -n %{pkg_name}-%{version} 46 + 47 + 48 +%{__mkdir} %{name} 49 + 50 +%build 51 +/usr/bin/phpize 52 +pushd %{name} 53 +#Important : gcc optimization levels miscompile (ed) this package 54 +#problem was observed in 10.0 not sure if still exists.. 55 +CFLAGS=`echo "$RPM_OPT_FLAGS" | sed -e 's/-O[0-9]*//g'` 56 +CFLAGS="$CFLAGS -fno-strict-aliasing" 57 + 58 +%if 0%{?suse_version} > 1000 59 +CFLAGS="$CFLAGS -fstack-protector" 60 +%endif 61 + 62 +export CFLAGS 63 + 64 +../configure --enable-xdebug 65 + 66 +%{__make} %{?jobs:-j%jobs} 67 +popd 68 + 69 +%install 70 + 71 +%makeinstall -C %{name} INSTALL_ROOT=%{buildroot} 72 +%{__mkdir_p} %{buildroot}%{_sysconfdir}/php5/conf.d 73 +%{__install} -m 644 %{S:1} %{buildroot}%{_sysconfdir}/php5/conf.d/xdebug.ini 74 + 75 +%clean 76 + 77 +%{__rm} -rf %{buildroot} 78 + 79 +%files 80 +%defattr(-,root,root,-) 81 +%{_libdir}/php5/extensions/xdebug.so 82 +%config(noreplace) %{_sysconfdir}/php5/conf.d/xdebug.ini 83 + 84 +%doc README LICENSE Changelog NEWS CREDITS 85 + 86 +%changelog -n php5-xdebug 87 +* Wed Jan 31 2007 - judas_iscariote@shorewall.net 88 +- update to RC3 89 +* Sun Dec 24 2006 - judas_iscariote@shorewall.net 90 +- Update to RC2 91 +- add complete ini file 92 +* Sun Oct 08 2006 - soporte@onfocus.cl 93 +- Update to RC1 restoring php 5.2.0 compatibility 94 +* Fri Jun 30 2006 - soporte@onfocus.cl 95 +- very first build 96 |