diff options
| author | Remi Collet <fedora@famillecollet.com> | 2015-06-21 10:51:24 +0200 | 
|---|---|---|
| committer | Remi Collet <fedora@famillecollet.com> | 2015-06-21 10:51:24 +0200 | 
| commit | 1ffca72c68b7cf36342f5fad28c0549528f3b4fa (patch) | |
| tree | e0349badf599f64e24de53d171cdf6de66e6e5a6 | |
| parent | e5ff236bf06eda9ea5627f812153598775907c4d (diff) | |
php-pecl-propro: allow build against "rh-php56" (for more-php56)
| -rw-r--r-- | php-pecl-propro-dev.spec | 18 | ||||
| -rw-r--r-- | php-pecl-propro.spec | 39 | 
2 files changed, 46 insertions, 11 deletions
diff --git a/php-pecl-propro-dev.spec b/php-pecl-propro-dev.spec index 20453f1..f1ad826 100644 --- a/php-pecl-propro-dev.spec +++ b/php-pecl-propro-dev.spec @@ -1,4 +1,7 @@ -# spec file for php-pecl-propro +# remirepo spec file for php-pecl-propro +# with SCL stuff, from: +# +# Fedora spec file for php-pecl-propro  #  # 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} @@ -25,7 +36,7 @@  # cd propro; git checkout phpng; pecl package  Summary:        Property proxy -Name:           %{?scl_prefix}php-pecl-%{pecl_name} +Name:           %{?sub_prefix}php-pecl-%{pecl_name}  Version:        1.0.1  Release:        0.1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}  License:        BSD @@ -72,7 +83,7 @@ Obsoletes:     php56w-pecl-%{pecl_name}  %description  A reusable split-off of pecl_http's property proxy 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 @@ -151,6 +162,7 @@ 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 || : diff --git a/php-pecl-propro.spec b/php-pecl-propro.spec index 85d7820..4e753d0 100644 --- a/php-pecl-propro.spec +++ b/php-pecl-propro.spec @@ -1,4 +1,7 @@ -# spec file for php-pecl-propro +# remirepo spec file for php-pecl-propro +# with SCL stuff, from: +# +# Fedora spec file for php-pecl-propro  #  # 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} @@ -21,9 +32,9 @@  %endif  Summary:        Property proxy -Name:           %{?scl_prefix}php-pecl-%{pecl_name} +Name:           %{?sub_prefix}php-pecl-%{pecl_name}  Version:        1.0.0 -Release:        4%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}.1 +Release:        5%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}  License:        BSD  Group:          Development/Languages  URL:            http://pecl.php.net/package/%{pecl_name} @@ -33,8 +44,6 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)  BuildRequires:  %{?scl_prefix}php-devel > 5.3  BuildRequires:  %{?scl_prefix}php-pear -Requires(post): %{__pecl} -Requires(postun): %{__pecl}  Requires:       %{?scl_prefix}php(zend-abi) = %{php_zend_api}  Requires:       %{?scl_prefix}php(api) = %{php_core_api}  %{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} @@ -70,6 +79,9 @@ Obsoletes:     php56w-pecl-%{pecl_name}  %description  A reusable split-off of pecl_http's property proxy API. +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)  Group:         Development/Libraries @@ -146,12 +158,20 @@ do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i  done -%post -%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : +# 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 +    %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : +fi  %postun -if [ $1 -eq 0 ] ; then +if [ $1 -eq 0 -a -x %{__pecl} ] ; then      %{pecl_uninstall} %{pecl_name} >/dev/null || :  fi @@ -215,6 +235,9 @@ rm -rf %{buildroot}  %changelog +* Sun Jun 21 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-5 +- allow build against rh-php56 (as more-php56) +  * Wed Dec 24 2014 Remi Collet <remi@fedoraproject.org> - 1.0.0-4.1  - Fedora 21 SCL mass rebuild  | 
