summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-09-03 09:22:46 +0200
committerRemi Collet <fedora@famillecollet.com>2015-09-03 09:22:46 +0200
commit7b45a5b5b3d920a99431aee733a1fa2d3106a044 (patch)
tree44ba68f4fe22ad2dadbbf841442830db97969af8
parentff9302d5c39f8f53e8c2417dbea7cc7d1d86da82 (diff)
php-pecl-swoole: allow build as more-php56
-rw-r--r--php-pecl-swoole.spec17
1 files changed, 14 insertions, 3 deletions
diff --git a/php-pecl-swoole.spec b/php-pecl-swoole.spec
index cb80367..94b13a8 100644
--- a/php-pecl-swoole.spec
+++ b/php-pecl-swoole.spec
@@ -6,6 +6,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-swoole}
%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d}
%{!?__pecl: %global __pecl %{_bindir}/pecl}
@@ -22,9 +30,9 @@
%endif
Summary: PHP's asynchronous concurrent distributed networking framework
-Name: %{?scl_prefix}php-pecl-%{pecl_name}
+Name: %{?sub_prefix}php-pecl-%{pecl_name}
Version: 1.7.19
-Release: 1%{?dist}%{!?scl:%{!?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: BSD
Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
@@ -94,7 +102,7 @@ Asynchronous and concurrent and distributed networking framework for PHP.
- support IPv4/IPv6/UnixSocket/TCP/UDP
- SSL/TLS encrypted transmission
-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
@@ -245,6 +253,9 @@ rm -rf %{buildroot}
%changelog
+* Thu Sep 3 2015 Remi Collet <remi@fedoraproject.org> - 1.7.19-2
+- allow build against rh-php56 (as more-php56)
+
* Mon Aug 31 2015 Remi Collet <remi@fedoraproject.org> - 1.7.19-1
- Update to 1.7.19