From 5767c3480507aa38b78745c6cabcb89cbb2d4aee Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 20 Jun 2015 08:41:50 +0200 Subject: php-pecl-xmldiff: allow build against "rh-php56" (for more-php56) --- php-pecl-xmldiff.spec | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/php-pecl-xmldiff.spec b/php-pecl-xmldiff.spec index c08f7e4..b23f525 100644 --- a/php-pecl-xmldiff.spec +++ b/php-pecl-xmldiff.spec @@ -1,4 +1,4 @@ -# spec file for php-pecl-xmldiff +# remirepo spec file for php-pecl-xmldiff # # Copyright (c) 2013-2015 Remi Collet # License: CC-BY-SA @@ -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-xmldiff} %{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} %{!?php_incldir: %global php_incldir %{_includedir}/php} @@ -23,9 +31,9 @@ %endif Summary: XML diff and merge -Name: %{?scl_prefix}php-pecl-%{pecl_name} +Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 1.1.2 -Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: BSD Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} @@ -85,6 +93,8 @@ the difference to the source document. The diff is a XML document containing copy/insert/delete instruction nodes in human readable format. DOMDocument objects, local files and strings in memory can be processed. +Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl})}. + %package devel Summary: %{name} developer files (header) @@ -253,6 +263,9 @@ rm -rf %{buildroot} %changelog +* Fri Jun 19 2015 Remi Collet - 1.1.2-2 +- allow build against rh-php56 (as more-php56) + * Mon Feb 09 2015 Remi Collet - 1.1.2-1 - Update to 1.1.2 (stable) -- cgit