summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-08-26 10:54:59 +0200
committerRemi Collet <fedora@famillecollet.com>2014-08-26 10:54:59 +0200
commitbb4e1a92d5c5fe690c48db368a91f170f31aeee2 (patch)
treefe7a2cb2f5214f07fc4cfd4ffb9fe8380602cb75
parent448400d64063ec8148cbd07080ad4bf13b9c1e21 (diff)
php-pecl-* improve SCL build for 5.6 (done)
-rw-r--r--php-pecl-weakref.spec22
1 files changed, 13 insertions, 9 deletions
diff --git a/php-pecl-weakref.spec b/php-pecl-weakref.spec
index af5e641..61c70df 100644
--- a/php-pecl-weakref.spec
+++ b/php-pecl-weakref.spec
@@ -25,7 +25,7 @@
Summary: Implementation of weak references
Name: %{?scl_prefix}php-pecl-weakref
Version: 0.2.4
-Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
License: PHP
Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
@@ -47,18 +47,19 @@ Provides: %{?scl_prefix}php-%{ext_name}%{?_isa} = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
-%if "%{?vendor}" == "Remi Collet"
+%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1}
# Other third party repo stuff
-%if "%{php_version}" > "5.4"
-Obsoletes: php53-pecl-%{ext_name}
-Obsoletes: php53u-pecl-%{ext_name}
-Obsoletes: php54-pecl-%{ext_name}
-%endif
+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-%{ext_name}
+Obsoletes: php55u-pecl-%{pecl_name} <= %{version}
+Obsoletes: php55w-pecl-%{pecl_name} <= %{version}
%endif
%if "%{php_version}" > "5.6"
-Obsoletes: php56u-pecl-%{ext_name}
+Obsoletes: php56u-pecl-%{pecl_name} <= %{version}
+Obsoletes: php56w-pecl-%{pecl_name} <= %{version}
%endif
%endif
@@ -186,6 +187,9 @@ rm -rf %{buildroot}
%changelog
+* Tue Aug 26 2014 Remi Collet <rcollet@redhat.com> - 0.2.4-2
+- improve SCL build
+
* Mon May 05 2014 Remi Collet <remi@fedoraproject.org> - 0.2.4-1
- Update to 0.2.4 (beta)