diff options
-rw-r--r-- | php-pecl-yaml.spec | 17 |
1 files 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 <remi@fedoraproject.org> - 1.2.0-2 +- allow build against rh-php56 (as more-php56) + * Mon May 18 2015 Remi Collet <remi@fedoraproject.org> - 1.2.0-1 - Update to 1.2.0 (stable) |