diff options
| author | Remi Collet <fedora@famillecollet.com> | 2015-06-24 09:20:54 +0200 | 
|---|---|---|
| committer | Remi Collet <fedora@famillecollet.com> | 2015-06-24 09:20:54 +0200 | 
| commit | cf4bb439c35c4aff4256e90c0573470f59ff30af (patch) | |
| tree | bf2b9ca34e7912451289efafdf99b0ca5ceb34f7 | |
| parent | b963542629f1074ac97bd754859f8ef09df97537 (diff) | |
php-pecl-hrtime: allow build against rh-php56 (as more-php56)
| -rw-r--r-- | php-pecl-hrtime.spec | 21 | 
1 files 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 <remi@fedoraproject.org> - 0.5.1-2 +- allow build against rh-php56 (as more-php56) +- rebuild for "rh_layout" (php70) +  * Mon Feb 09 2015 Remi Collet <remi@fedoraproject.org> - 0.5.1-1  - Update to 0.5.1 (stable)  | 
