From cf4bb439c35c4aff4256e90c0573470f59ff30af Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 24 Jun 2015 09:20:54 +0200 Subject: php-pecl-hrtime: allow build against rh-php56 (as more-php56) --- php-pecl-hrtime.spec | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/php-pecl-hrtime.spec b/php-pecl-hrtime.spec index cf9cd3a..29cf411 100644 --- a/php-pecl-hrtime.spec +++ b/php-pecl-hrtime.spec @@ -1,4 +1,4 @@ -# spec file for php-pecl-hrtime +# remirepo spec file for php-pecl-hrtime # # Copyright (c) 2014-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-hrtime} %{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} %{!?__pecl: %global __pecl %{_bindir}/pecl} @@ -20,9 +28,9 @@ %endif Summary: High resolution timing -Name: %{?scl_prefix}php-pecl-%{pecl_name} +Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 0.5.1 -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: BSD Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} @@ -70,6 +78,8 @@ It uses the the best possible APIs on different platforms. It also makes possible to implement a custom stopwatch using low level ticks delivered by the underlaying APIs. +Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl})}. + %prep %setup -q -c @@ -200,6 +210,7 @@ rm -rf %{buildroot} %{?_licensedir:%license NTS/LICENSE} %doc %{pecl_docdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml + %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so @@ -210,6 +221,10 @@ rm -rf %{buildroot} %changelog +* Wed Jun 24 2015 Remi Collet - 0.5.1-2 +- allow build against rh-php56 (as more-php56) +- rebuild for "rh_layout" (php70) + * Mon Feb 09 2015 Remi Collet - 0.5.1-1 - Update to 0.5.1 (stable) -- cgit