From c580878b8b44c823e4bae727be68e6d1eaa11cbd Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 23 Jun 2015 16:34:46 +0200 Subject: php-pecl-yaml: allow build against rh-php56 (as more-php56) --- php-pecl-yaml.spec | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/php-pecl-yaml.spec b/php-pecl-yaml.spec index f71ef20..682d160 100644 --- a/php-pecl-yaml.spec +++ b/php-pecl-yaml.spec @@ -9,6 +9,14 @@ # # Please, preserve the changelog entries # +%if 0%{?scl:1} +%if "%{scl}" == "rh-php56" +%global sub_prefix more-php56- +%else +%global sub_prefix %{scl_prefix} +%endif +%endif + %{?scl: %scl_package php-pecl-yaml} %{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} %{!?__pecl: %global __pecl %{_bindir}/pecl} @@ -23,9 +31,9 @@ %endif Summary: PHP Bindings for yaml -Name: %{?scl_prefix}php-pecl-yaml +Name: %{?sub_prefix}php-pecl-yaml Version: 1.2.0 -Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: MIT Group: Development/Languages URL: http://pecl.php.net/package/yaml @@ -79,7 +87,7 @@ LibYAML library. Documentation: http://php.net/yaml -Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection}. +Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl})}. %prep @@ -241,6 +249,9 @@ fi %changelog +* Tue Jun 23 2015 Remi Collet - 1.2.0-2 +- allow build against rh-php56 (as more-php56) + * Mon May 18 2015 Remi Collet - 1.2.0-1 - Update to 1.2.0 (stable) -- cgit