From 9bdb6140566f12622ed667183d3f2f0c65b9fcde 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-yaml.spec | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/php-pecl-yaml.spec b/php-pecl-yaml.spec index 856ad51..5ea2fd3 100644 --- a/php-pecl-yaml.spec +++ b/php-pecl-yaml.spec @@ -16,11 +16,16 @@ %global with_zts 0%{?__ztsphp:1} %global pecl_name yaml +%if "%{php_version}" < "5.6" +%global ini_name %{pecl_name}.ini +%else +%global ini_name 40-%{pecl_name}.ini +%endif Summary: PHP Bindings for yaml Name: %{?scl_prefix}php-pecl-yaml Version: 1.1.1 -Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 3%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: MIT Group: Development/Languages URL: http://pecl.php.net/package/yaml @@ -86,7 +91,7 @@ if test "x${extver}" != "x%{version}"; then fi cd .. -cat << 'EOF' | tee %{pecl_name}.ini +cat << 'EOF' | tee %{ini_name} ; Enable %{summary} extension module extension=%{pecl_name}.so @@ -139,11 +144,11 @@ make -C NTS install INSTALL_ROOT=%{buildroot} install -Dpm 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml # install config file -install -Dpm644 %{pecl_name}.ini %{buildroot}%{php_inidir}/%{pecl_name}.ini +install -Dpm644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} %if %{with_zts} make -C ZTS install INSTALL_ROOT=%{buildroot} -install -Dpm644 %{pecl_name}.ini %{buildroot}%{php_ztsinidir}/%{pecl_name}.ini +install -Dpm644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif # Test & Documentation @@ -207,16 +212,19 @@ fi %doc %{pecl_testdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml -%config(noreplace) %{php_inidir}/%{pecl_name}.ini +%config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so %if %{with_zts} -%config(noreplace) %{php_ztsinidir}/%{pecl_name}.ini +%config(noreplace) %{php_ztsinidir}/%{ini_name} %{php_ztsextdir}/%{pecl_name}.so %endif %changelog +* Thu Apr 17 2014 Remi Collet - 1.1.1-3 +- add numerical prefix to extension configuration file (php 5.6) + * Wed Mar 19 2014 Remi Collet - 1.1.1-2 - allow SCL build -- cgit