rpms/php-pecl-xdebug/F-7 php-pecl-xdebug.spec,1.10,1.11

Christopher Stone (xulchris) fedora-extras-commits at redhat.com
Sun Mar 2 19:58:12 UTC 2008


Author: xulchris

Update of /cvs/extras/rpms/php-pecl-xdebug/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1971/F-7

Modified Files:
	php-pecl-xdebug.spec 
Log Message:
make spec compatible with el5


Index: php-pecl-xdebug.spec
===================================================================
RCS file: /cvs/extras/rpms/php-pecl-xdebug/F-7/php-pecl-xdebug.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- php-pecl-xdebug.spec	2 Mar 2008 19:32:32 -0000	1.10
+++ php-pecl-xdebug.spec	2 Mar 2008 19:57:33 -0000	1.11
@@ -15,17 +15,21 @@
 Source0:        http://pecl.php.net/get/xdebug-%{version}.tgz
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires:  php-devel php-pear >= 1:1.4.9-1.2
-BuildRequires:  libedit-devel automake
+BuildRequires:  automake php-devel php-pear >= 1:1.4.9-1.2
+%if 0%{?fedora}
+BuildRequires:  libedit-devel
+%endif
 Requires(post): %{__pecl}
 Requires(postun): %{__pecl}
 Provides:       php-pecl(Xdebug) = %{version}
 
-%if %{?php_zend_api}0
+%if 0%{?php_zend_api}
+%define config_flags --with-libedit
 Requires:       php(zend-abi) = %{php_zend_api}
 Requires:       php(api) = %{php_core_api}
 %else
 # for EL-5
+%define config_flags --without-libedit
 Requires:       php-api = %{php_apiver}
 %endif
 
@@ -49,10 +53,12 @@
 phpize
 %configure --enable-xdebug
 CFLAGS="$RPM_OPT_FLAGS" make
+
+# Build debugclient
 pushd debugclient
 cp %{_datadir}/automake*/depcomp .
 chmod +x configure
-%configure --with-libedit
+%configure %{config_flags}
 CFLAGS="$RPM_OPT_FLAGS" make
 popd
 




More information about the fedora-extras-commits mailing list