diff options
| -rw-r--r-- | php-pecl-propro-dev.spec | 32 | 
1 files changed, 23 insertions, 9 deletions
diff --git a/php-pecl-propro-dev.spec b/php-pecl-propro-dev.spec index 6345643..59566b5 100644 --- a/php-pecl-propro-dev.spec +++ b/php-pecl-propro-dev.spec @@ -2,7 +2,7 @@  #  # Copyright (c) 2013-2015 Remi Collet  # License: CC-BY-SA -# http://creativecommons.org/licenses/by-sa/3.0/ +# http://creativecommons.org/licenses/by-sa/4.0/  #  # Please, preserve the changelog entries  # @@ -20,10 +20,14 @@  %global ini_name  40-%{pecl_name}.ini  %endif +# PHP 7 package from phpng branch +# git clone git@git.php.net:/pecl/php/propro.git +# cd propro; git checkout phpng; pecl package +  Summary:        Property proxy  Name:           %{?scl_prefix}php-pecl-%{pecl_name} -Version:        1.0.0 -Release:        4%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}.1 +Version:        1.0.1 +Release:        0.1%{?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 +37,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 +72,7 @@ Obsoletes:     php56w-pecl-%{pecl_name}  %description  A reusable split-off of pecl_http's property proxy API. +  %package devel  Summary:       %{name} developer files (header)  Group:         Development/Libraries @@ -89,7 +92,7 @@ cd NTS  extver=$(sed -n '/#define PHP_PROPRO_VERSION/{s/.* "//;s/".*$//;p}' php_propro.h)  if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then     : Error: Upstream extension version is ${extver}, expecting %{version}%{?prever:-%{prever}}. -   exit 1 +   #exit 1  fi  cd .. @@ -146,12 +149,19 @@ do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i  done -%post -%{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : +%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 +225,10 @@ rm -rf %{buildroot}  %changelog +* Thu Mar 26 2015 Remi Collet <remi@fedoraproject.org> - 1.0.1-0.1 +- git snapshot for PHP 7 +- drop runtime dependency on pear, new scriptlets +  * Wed Dec 24 2014 Remi Collet <remi@fedoraproject.org> - 1.0.0-4.1  - Fedora 21 SCL mass rebuild  | 
