Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php7
:
EL7
:
7.0.26
:
extensions
>
php-pecl-xdebug
> php-pecl-xdebug.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php-pecl-xdebug.spec of Package php-pecl-xdebug
%global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1) %global __pecl %{_bindir}/pecl %global basepkg php %global pecl_name xdebug %global with_zts 0%{?__ztsphp:1} Name: %{basepkg}-pecl-xdebug Version: 2.6.0 Release: 1%{?rcver:.%{rcver}}%{?dist} 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}%{?rcver}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: automake %{basepkg}-devel %{basepkg}-pear >= 1:1.4.9-1.2 %if 0%{?fedora} %define config_flags --with-libedit BuildRequires: libedit-devel %else %define config_flags --without-libedit %endif 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 %if 0%{?fedora} < 20 && 0%{?rhel} < 7 # Filter private shared %{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} %{?filter_setup} %endif %description The Xdebug extension helps you debugging your script by providing a lot of valuable debug information. %prep %setup -qc [ -f package2.xml ] || mv package.xml package2.xml mv package2.xml %{pecl_name}.xml %if %{with_zts} cp -r %{pecl_name}-%{version}%{?rcver} %{pecl_name}-%{version}%{?rcver}-zts %endif %build pushd %{pecl_name}-%{version}%{?rcver} phpize %configure --enable-xdebug --with-php-config=%{_bindir}/php-config CFLAGS="$RPM_OPT_FLAGS" make # Build debugclient pushd debugclient cp %{_datadir}/automake-1.?*/depcomp . chmod +x configure %configure %{config_flags} CFLAGS="$RPM_OPT_FLAGS" make popd popd %if %{with_zts} pushd %{pecl_name}-%{version}%{?rcver}-zts zts-phpize %configure --enable-xdebug --with-php-config=%{_bindir}/zts-php-config CFLAGS="$RPM_OPT_FLAGS" make popd %endif %install rm -rf $RPM_BUILD_ROOT pushd %{pecl_name}-%{version}%{?rcver} # install NZTS extension 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%{php_inidir} cat > $RPM_BUILD_ROOT%{php_inidir}/%{pecl_name}.ini << 'EOF' ; Enable xdebug extension module zend_extension=%{php_extdir}/%{pecl_name}.so EOF popd %if %{with_zts} pushd %{pecl_name}-%{version}%{?rcver}-zts # install ZTS extension make install INSTALL_ROOT=$RPM_BUILD_ROOT # install config file install -d $RPM_BUILD_ROOT%{php_ztsinidir} cat > $RPM_BUILD_ROOT%{php_ztsinidir}/%{pecl_name}.ini << 'EOF' ; Enable xdebug extension module zend_extension=%{php_ztsextdir}/%{pecl_name}.so EOF popd %endif # Install XML package description install -d $RPM_BUILD_ROOT%{pecl_xmldir} install -pm 644 %{pecl_name}.xml $RPM_BUILD_ROOT%{pecl_xmldir}/%{pecl_name}.xml %if 0%{?pecl_install:1} %post %{pecl_install} %{pecl_xmldir}/%{pecl_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 %{pecl_name}-%{version}%{?rcver}/{CREDITS,LICENSE,README.rst} %config(noreplace) %{php_inidir}/%{pecl_name}.ini %{php_extdir}/%{pecl_name}.so %{_bindir}/debugclient %{pecl_xmldir}/%{pecl_name}.xml %if %{with_zts} %config(noreplace) %{php_ztsinidir}/%{pecl_name}.ini %{php_ztsextdir}/%{pecl_name}.so %endif %changelog * Sun Mar 20 2016 Andy Thompson <andy@webtatic.com> 2.4.0-1 - update to 2.4.0 * Sun Nov 08 2015 Andy Thompson <andy@webtatic.com> 2.4.0-0.3.RC3 - update to 2.4.0RC3 * Sun Nov 08 2015 Andy Thompson <andy@webtatic.com> 2.4.0-0.2.RC2 - update to 2.4.0RC2 * Sun Nov 08 2015 Andy Thompson <andy@webtatic.com> 2.4.0-0.1.beta1 - update to 2.4.0beta1 * Sat Apr 18 2015 Andy Thompson <andy@webtatic.com> 2.3.2-1 - update to 2.3.2 * Thu Nov 27 2014 Andy Thompson <andy@webtatic.com> 2.2.6-1 - update to 2.2.6 * Thu Aug 28 2014 Andy Thompson <andy@webtatic.com> 2.2.5-1 - branch from php55w-pecl-xdebug