From 29b8f8f13bef68e37a5328f2bd1132b9321b50e1 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 17 Apr 2014 18:05:45 +0200 Subject: php-pecl: add numerical prefix to extension configuration file (all done !) --- php-pecl-xhprof.spec | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/php-pecl-xhprof.spec b/php-pecl-xhprof.spec index c2fead0..6a511b6 100644 --- a/php-pecl-xhprof.spec +++ b/php-pecl-xhprof.spec @@ -15,10 +15,15 @@ %global pecl_name xhprof %global with_zts 0%{?__ztsphp:1} +%if "%{php_version}" < "5.6" +%global ini_name %{pecl_name}.ini +%else +%global ini_name 40-%{pecl_name}.ini +%endif Name: %{?scl_prefix}php-pecl-xhprof Version: 0.9.4 -Release: 3%{?gitver:.git%{gitver}}%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 4%{?gitver:.git%{gitver}}%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} Summary: PHP extension for XHProf, a Hierarchical Profiler Group: Development/Languages @@ -109,7 +114,7 @@ Documentation: %{pecl_docdir}/%{pecl_name}/xhprof_html/docs/index.html sed -e 's/role="php"/role="src"/' -i package.xml # Extension configuration file -cat >%{pecl_name}.ini <%{ini_name} < - 0.9.4-4 +- add numerical prefix to extension configuration file (php 5.6) + * Wed Mar 19 2014 Remi Collet - 0.9.4-3 - allow SCL build -- cgit