Advertisement
Guest User

php-pecl-xdebug-2.1.2-1.el5.src.rpm

a guest
Jun 20th, 2013
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %global php_apiver  %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)
  2. %{!?__pecl:     %{expand: %%global __pecl     %{_bindir}/pecl}}
  3. %{!?php_extdir: %{expand: %%global php_extdir %(php-config --extension-dir)}}
  4.  
  5. %define pecl_name xdebug
  6.  
  7. Name:           php-pecl-xdebug
  8. Version:        2.1.2
  9. Release:        1%{?dist}
  10. Summary:        PECL package for debugging PHP scripts
  11.  
  12. License:        BSD
  13. Group:          Development/Languages
  14. URL:            http://pecl.php.net/package/xdebug
  15. Source0:        http://pecl.php.net/get/xdebug-%{version}.tgz
  16.  
  17. BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  18. BuildRequires:  automake php-devel php-pear >= 1:1.4.9-1.2
  19.  
  20. %if 0%{?fedora}
  21. %define config_flags --with-libedit
  22. BuildRequires:  libedit-devel
  23. %else
  24. %define config_flags --without-libedit
  25. %endif
  26.  
  27. Requires(post): %{__pecl}
  28. Requires(postun): %{__pecl}
  29. Provides:       php-pecl(Xdebug) = %{version}
  30.  
  31. %if 0%{?php_zend_api}
  32. Requires:       php(zend-abi) = %{php_zend_api}
  33. Requires:       php(api) = %{php_core_api}
  34. %else
  35. Requires:       php-api = %{php_apiver}
  36. %endif
  37.  
  38. %description
  39. The Xdebug extension helps you debugging your script by providing a lot
  40. of valuable debug information.
  41.  
  42.  
  43. %prep
  44. %setup -qc
  45. [ -f package2.xml ] || mv package.xml package2.xml
  46. mv package2.xml %{pecl_name}-%{version}/%{pecl_name}.xml
  47. cd xdebug-%{version}
  48.  
  49. # fix rpmlint warnings
  50. iconv -f iso8859-1 -t utf-8 Changelog > Changelog.conv && mv -f Changelog.conv Changelog
  51. chmod -x *.[ch]
  52.  
  53.  
  54. %build
  55. cd xdebug-%{version}
  56. phpize
  57. %configure --enable-xdebug
  58. %{__make} %{?_smp_mflags}
  59.  
  60. # Build debugclient
  61. pushd debugclient
  62. #cp %{_datadir}/automake-1.??/depcomp .
  63. %configure %{config_flags}
  64. %{__make} %{?_smp_mflags}
  65. popd
  66.  
  67.  
  68. %install
  69. cd xdebug-%{version}
  70. rm -rf $RPM_BUILD_ROOT
  71. make install INSTALL_ROOT=$RPM_BUILD_ROOT
  72.  
  73. # install debugclient
  74. install -d $RPM_BUILD_ROOT%{_bindir}
  75. install -pm 755 debugclient/debugclient $RPM_BUILD_ROOT%{_bindir}
  76.  
  77. # install config file
  78. install -d $RPM_BUILD_ROOT%{_sysconfdir}/php.d
  79. cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/xdebug.ini << 'EOF'
  80. ; Enable xdebug extension module
  81. zend_extension=%{php_extdir}/xdebug.so
  82. EOF
  83.  
  84. # install doc files
  85. install -d docs
  86. install -pm 644 Changelog CREDITS LICENSE NEWS README docs
  87.  
  88. # Install XML package description
  89. install -d $RPM_BUILD_ROOT%{pecl_xmldir}
  90. install -pm 644 %{pecl_name}.xml $RPM_BUILD_ROOT%{pecl_xmldir}/%{name}.xml
  91.  
  92.  
  93. %if 0%{?pecl_install:1}
  94. %post
  95. %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
  96. %endif
  97.  
  98.  
  99. %if 0%{?pecl_uninstall:1}
  100. %postun
  101. if [ $1 -eq 0 ] ; then
  102.     %{pecl_uninstall} %{pecl_name} >/dev/null || :
  103. fi
  104. %endif
  105.  
  106.  
  107. %clean
  108. rm -rf $RPM_BUILD_ROOT
  109.  
  110.  
  111. %files
  112. %defattr(-,root,root,-)
  113. %doc xdebug-%{version}/docs/*
  114. %config(noreplace) %{_sysconfdir}/php.d/xdebug.ini
  115. %{php_extdir}/xdebug.so
  116. %{_bindir}/debugclient
  117. %{pecl_xmldir}/%{name}.xml
  118.  
  119.  
  120. %changelog
  121. * Wed Nov 16 2011 Denis Frolov <d.frolov81@mail.ru> - 2.1.2-1
  122. - update to 2.1.2
  123.  
  124. * Tue Jun 29 2010 Remi Collet <Fedora@FamilleCollet.com> - 2.1.0-1
  125. - update to 2.1.0
  126.  
  127. * Mon Sep 14 2009 Christopher Stone <chris.stone@gmail.com> 2.0.5-1
  128. - Upstream sync
  129.  
  130. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-2
  131. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  132.  
  133. * Sun Jul 12 2009 Remi Collet <Fedora@FamilleCollet.com> - 2.0.4-1
  134. - update to 2.0.4 (bugfix + Basic PHP 5.3 support)
  135.  
  136. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-5
  137. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  138.  
  139. * Thu Oct 09 2008 Christopher Stone <chris.stone@gmail.com> 2.0.3-4
  140. - Add code coverage patch (bz #460348)
  141. - http://bugs.xdebug.org/bug_view_page.php?bug_id=0000344
  142.  
  143. * Thu Oct 09 2008 Christopher Stone <chris.stone@gmail.com> 2.0.3-3
  144. - Revert last change
  145.  
  146. * Thu Oct 09 2008 Christopher Stone <chris.stone@gmail.com> 2.0.3-2
  147. - Add php-xml to Requires (bz #464758)
  148.  
  149. * Thu May 22 2008 Christopher Stone <chris.stone@gmail.com> 2.0.3-1
  150. - Upstream sync
  151. - Clean up libedit usage
  152. - Minor rpmlint fix
  153.  
  154. * Sun Mar 02 2008 Christopher Stone <chris.stone@gmail.com> 2.0.2-4
  155. - Add %%{__pecl} to post/postun Requires
  156.  
  157. * Fri Feb 22 2008 Christopher Stone <chris.stone@gmail.com> 2.0.2-3
  158. - %%define %%pecl_name to properly register package
  159. - Install xml package description
  160. - Add debugclient
  161. - Many thanks to Edward Rudd (eddie@omegaware.com) (bz #432681)
  162.  
  163. * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.2-2
  164. - Autorebuild for GCC 4.3
  165.  
  166. * Sun Nov 25 2007 Christopher Stone <chris.stone@gmail.com> 2.0.2-1
  167. - Upstream sync
  168.  
  169. * Sun Sep 30 2007 Christopher Stone <chris.stone@gmail.com> 2.0.0-2
  170. - Update to latest standards
  171. - Fix encoding on Changelog
  172.  
  173. * Sat Sep 08 2007 Christopher Stone <chris.stone@gmail.com> 2.0.0-1
  174. - Upstream sync
  175. - Remove %%{?beta} tags
  176.  
  177. * Sun Mar 11 2007 Christopher Stone <chris.stone@gmail.com> 2.0.0-0.5.RC2
  178. - Create directory to untar sources
  179. - Use new ABI check for FC6
  180. - Remove %%{release} from Provides
  181.  
  182. * Mon Jan 29 2007 Christopher Stone <chris.stone@gmail.com> 2.0.0-0.4.RC2
  183. - Compile with $RPM_OPT_FLAGS
  184. - Use $RPM_BUILD_ROOT instead of %%{buildroot}
  185. - Fix license tag
  186.  
  187. * Mon Jan 15 2007 Christopher Stone <chris.stone@gmail.com> 2.0.0-0.3.RC2
  188. - Upstream sync
  189.  
  190. * Sun Oct 29 2006 Christopher Stone <chris.stone@gmail.com> 2.0.0-0.2.RC1
  191. - Upstream sync
  192.  
  193. * Wed Sep 06 2006 Christopher Stone <chris.stone@gmail.com> 2.0.0-0.1.beta6
  194. - Remove Provides php-xdebug
  195. - Fix Release
  196. - Remove prior changelog due to Release number change
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement