summaryrefslogtreecommitdiffstats
path: root/php-pecl-yaml.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-06-23 16:34:46 +0200
committerRemi Collet <fedora@famillecollet.com>2015-06-23 16:34:46 +0200
commitc580878b8b44c823e4bae727be68e6d1eaa11cbd (patch)
tree7bfdf086fdc71a1cba7561d42b3449bb943c9be1 /php-pecl-yaml.spec
parentb6f5ba5d095b5dd29a57206d3af63dab8189ee3f (diff)
php-pecl-yaml: allow build against rh-php56 (as more-php56)
Diffstat (limited to 'php-pecl-yaml.spec')
-rw-r--r--php-pecl-yaml.spec17
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)