From 1658693069ed28cc4883ea705553f514281d5978 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 16 Nov 2015 14:05:21 +0100 Subject: php-pecl-crypto: fix for rh-php56 build --- php-pecl-crypto.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/php-pecl-crypto.spec b/php-pecl-crypto.spec index 07def8f..dcf8f5e 100644 --- a/php-pecl-crypto.spec +++ b/php-pecl-crypto.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-crypto} %{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} %{!?__pecl: %global __pecl %{_bindir}/pecl} @@ -21,7 +29,7 @@ %endif Summary: Wrapper for OpenSSL Crypto Library -Name: %{?scl_prefix}php-pecl-%{pecl_name} +Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 0.2.1 Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: BSD @@ -235,6 +243,7 @@ rm -rf %{buildroot} - drop runtime dependency on pear, new scriptlets - improve skip check for CCM test when not available open https://github.com/bukka/php-crypto/pull/13 +- allow to build as more-php56 for rh-php56 * Wed Dec 24 2014 Remi Collet - 0.1.1-3.1 - Fedora 21 SCL mass rebuild -- cgit