From 6cc21510c99b075614f64f73ba6c41f67fef80c5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 24 Dec 2014 08:58:36 +0100 Subject: php-pecl-jsond: new scriptlets --- php-pecl-jsond.spec | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/php-pecl-jsond.spec b/php-pecl-jsond.spec index 299b77f..65e2222 100644 --- a/php-pecl-jsond.spec +++ b/php-pecl-jsond.spec @@ -23,7 +23,7 @@ Summary: JavaScript Object Notation Name: %{?scl_prefix}php-pecl-%{pecl_name} Version: 1.3.0 -Release: 3%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 4%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: PHP Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} @@ -33,10 +33,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: %{?scl_prefix}php-devel > 5.2 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}} Provides: %{?scl_prefix}php-%{pecl_name} = %{version} Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} @@ -45,17 +44,17 @@ 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 %endif @@ -79,6 +78,8 @@ Requires: %{?scl_prefix}php-devel%{?_isa} %description devel These are the files needed to compile programs using JSOND serializer. +Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection}. + %prep %setup -q -c @@ -149,12 +150,12 @@ do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i done -%post +%triggerin -- php-pear %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : -%postun -if [ $1 -eq 0 ] ; then +%triggerun -- php-pear +if [ $1 -eq 0 -o $2 -eq 0 ] ; then %{pecl_uninstall} %{pecl_name} >/dev/null || : fi @@ -218,6 +219,9 @@ rm -rf %{buildroot} %changelog +* Wed Dec 24 2014 Remi Collet - 1.3.0-4 +- new scriptlets + * Tue Aug 26 2014 Remi Collet - 1.3.0-3 - improve SCL build -- cgit