From b31ad73c1be2bd584b160a6538ef5d943d2b6567 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 26 Aug 2014 10:06:01 +0200 Subject: php-pecl-* improve SCL build for 5.6 (wip) --- php-phurple.spec | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/php-phurple.spec b/php-phurple.spec index 1f9d6ae..8c31e29 100644 --- a/php-phurple.spec +++ b/php-phurple.spec @@ -27,7 +27,7 @@ Name: %{?scl_prefix}php-%{gh_project} Summary: PHP bindings for libpurple Version: 0.6.0 -Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 3%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}.tar.gz @@ -43,6 +43,20 @@ BuildRequires: %{?scl_prefix}php-devel Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} +%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} +# Other third party repo stuff +Obsoletes: php54-%{gh_project} +Obsoletes: php54w-%{gh_project} +%if "%{php_version}" > "5.5" +Obsoletes: php55u-%{gh_project} +Obsoletes: php55w-%{gh_project} +%endif +%if "%{php_version}" > "5.6" +Obsoletes: php56u-%{gh_project} +Obsoletes: php56w-%{gh_project} +%endif +%endif + %if 0%{?fedora} < 20 && 0%{?rhel} < 7 # Filter private shared %{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} @@ -151,6 +165,9 @@ rm -rf %{buildroot} %changelog +* Tue Aug 26 2014 Remi Collet - 0.6.0-3 +- improve SCL build + * Wed Apr 16 2014 Remi Collet - 0.6.0-2 - add numerical prefix to extension configuration file (php 5.6) -- cgit