Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
EL6
:
5.4.39
:
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) %{!?__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.4.0 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}.tar.bz2 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 %{defined 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} # 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 CREDITS LICENSE README.rst 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