From e9f3661b5091810d4de6984c22e725854f78092b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 27 Nov 2016 07:30:15 +0100 Subject: php-pecl-sync: 1.1.0 --- php-pecl-sync.spec | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'php-pecl-sync.spec') diff --git a/php-pecl-sync.spec b/php-pecl-sync.spec index ad191dd..4e26fd2 100644 --- a/php-pecl-sync.spec +++ b/php-pecl-sync.spec @@ -6,7 +6,10 @@ # # Please, preserve the changelog entries # -%{?scl: %scl_package php-pecl-sync} +%if 0%{?scl:1} +%global sub_prefix %{scl_prefix} +%scl_package php-pecl-sync +%endif %global with_zts 0%{?__ztsphp:1} %global pecl_name sync @@ -17,9 +20,9 @@ %endif Summary: Named and unnamed synchronization objects -Name: %{?scl_prefix}php-pecl-%{pecl_name} -Version: 1.0.1 -Release: 3%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Name: %{?sub_prefix}php-pecl-%{pecl_name} +Version: 1.1.0 +Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: MIT Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} @@ -37,8 +40,10 @@ Provides: %{?scl_prefix}php-%{pecl_name} = %{version} Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} +%if "%{?scl_prefix}" != "%{?sub_prefix}" Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} +%endif %if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} # Other third party repo stuff @@ -54,6 +59,14 @@ Obsoletes: php55w-pecl-%{pecl_name} <= %{version} 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 +%if "%{php_version}" > "7.1" +Obsoletes: php71u-pecl-%{pecl_name} <= %{version} +Obsoletes: php71w-pecl-%{pecl_name} <= %{version} +%endif %endif %if 0%{?fedora} < 20 && 0%{?rhel} < 7 @@ -211,6 +224,9 @@ rm -rf %{buildroot} %changelog +* Sun Nov 27 2016 Remi Collet - 1.1.0-1 +- Update to 1.1.0 + * Tue Mar 8 2016 Remi Collet - 1.0.1-3 - adapt for F24 - drop runtime dependency on pear, new scriptlets -- cgit