From 515c3abf3b2ce54d98f333fa7563ddff06a374a6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 21 Jun 2015 11:02:32 +0200 Subject: php-pecl-raphf: allow build against "rh-php56" (for more-php56) --- php-pecl-raphf-dev.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'php-pecl-raphf-dev.spec') diff --git a/php-pecl-raphf-dev.spec b/php-pecl-raphf-dev.spec index 03377a7..3a6d6f7 100644 --- a/php-pecl-raphf-dev.spec +++ b/php-pecl-raphf-dev.spec @@ -1,4 +1,7 @@ -# spec file for php-pecl-raphf +# remirepo spec file for php-pecl-raphf +# with SCL stuff, from: +# +# Fedora spec file for php-pecl-raphf # # Copyright (c) 2013-2015 Remi Collet # License: CC-BY-SA @@ -6,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-raphf} %{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} %{!?php_incldir: %global php_incldir %{_includedir}/php} @@ -79,7 +90,7 @@ Obsoletes: php56w-pecl-%{pecl_name} A reusable split-off of pecl_http's persistent handle and resource factory API. -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})}. %package devel @@ -164,6 +175,12 @@ do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i done +# when pear installed alone, after us +%triggerin -- %{?scl_prefix}php-pear +if [ -x %{__pecl} ] ; then + %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : +fi + # posttrans as pear can be installed after us %posttrans if [ -x %{__pecl} ] ; then -- cgit