diff options
| author | Remi Collet <fedora@famillecollet.com> | 2015-05-04 18:22:29 +0200 | 
|---|---|---|
| committer | Remi Collet <fedora@famillecollet.com> | 2015-05-04 18:22:29 +0200 | 
| commit | 6bb8de4f3be0aea343f202712ec6b953002cd35b (patch) | |
| tree | 4512e74c3ab4a28bb5120468841b19152d4dcb47 | |
| parent | 19697ba1e6b34c93c50d87a90989f17d1cf0057d (diff) | |
php-pecl-yaml: drop runtime dependency on pear, new scriptlets
| -rw-r--r-- | php-pecl-yaml.spec | 44 | 
1 files changed, 30 insertions, 14 deletions
diff --git a/php-pecl-yaml.spec b/php-pecl-yaml.spec index 637af7f..8027594 100644 --- a/php-pecl-yaml.spec +++ b/php-pecl-yaml.spec @@ -25,7 +25,7 @@  Summary:       PHP Bindings for yaml  Name:          %{?scl_prefix}php-pecl-yaml  Version:       1.1.1 -Release:       5%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}.1 +Release:       6%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}  License:       MIT  Group:         Development/Languages  URL:           http://pecl.php.net/package/yaml @@ -37,8 +37,6 @@ BuildRequires: %{?scl_prefix}php-devel >= 5.2.0  BuildRequires: %{?scl_prefix}php-pear  BuildRequires: libyaml-devel -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}} @@ -50,17 +48,21 @@ Provides:      %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}  %if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1}  # Other third party repo stuff -Obsoletes:     php53-pecl-%{pecl_name} -Obsoletes:     php53u-pecl-%{pecl_name} -Obsoletes:     php54-pecl-%{pecl_name} -Obsoletes:     php54w-pecl-%{pecl_name} +Obsoletes:     php53-pecl-%{pecl_name}  <= %{version} +Obsoletes:     php53u-pecl-%{pecl_name} <= %{version} +Obsoletes:     php54-pecl-%{pecl_name}  <= %{version} +Obsoletes:     php54w-pecl-%{pecl_name} <= %{version}  %if "%{php_version}" > "5.5" -Obsoletes:     php55u-pecl-%{pecl_name} -Obsoletes:     php55w-pecl-%{pecl_name} +Obsoletes:     php55u-pecl-%{pecl_name} <= %{version} +Obsoletes:     php55w-pecl-%{pecl_name} <= %{version}  %endif  %if "%{php_version}" > "5.6" -Obsoletes:     php56u-pecl-%{pecl_name} -Obsoletes:     php56w-pecl-%{pecl_name} +Obsoletes:     php56u-pecl-%{pecl_name} <= %{version} +Obsoletes:     php56w-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "7.0" +Obsoletes:     php70u-pecl-%{pecl_name} <= %{version} +Obsoletes:     php70w-pecl-%{pecl_name} <= %{version}  %endif  %endif @@ -77,6 +79,8 @@ LibYAML library.  Documentation: http://php.net/yaml +Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection}. +  %prep  %setup -c -q @@ -200,18 +204,27 @@ REPORT_EXIT_STATUS=1 \  rm -rf %{buildroot} -%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  %files  %defattr(-, root, root, -) +%{?_licensedir:%license NTS/LICENSE}  %doc %{pecl_docdir}/%{pecl_name}  %{pecl_xmldir}/%{name}.xml @@ -225,6 +238,9 @@ fi  %changelog +* Mon May  4 2015 Remi Collet <remi@fedoraproject.org> - 1.1.1-6 +- drop runtime dependency on pear, new scriptlets +  * Wed Dec 24 2014 Remi Collet <remi@fedoraproject.org> - 1.1.1-5.1  - Fedora 21 SCL mass rebuild  | 
