summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-08-26 10:06:01 +0200
committerRemi Collet <fedora@famillecollet.com>2014-08-26 10:06:01 +0200
commitd2d2eceb4530f47f39b02446919f7f73ad1c07fd (patch)
treebd7b30748500d5a8995fe41506953a95e067c3fe
parent1a0cd1faa09d676fabd49104a5e867ececd480bc (diff)
php-pecl-* improve SCL build for 5.6 (wip)
-rw-r--r--php-suhosin.spec20
1 files changed, 13 insertions, 7 deletions
diff --git a/php-suhosin.spec b/php-suhosin.spec
index 011b43d..fa976ad 100644
--- a/php-suhosin.spec
+++ b/php-suhosin.spec
@@ -23,7 +23,7 @@
Name: %{?scl_prefix}php-suhosin
Version: 0.9.36
-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;')}
Summary: Suhosin is an advanced protection system for PHP installations
Group: Development/Languages
@@ -37,16 +37,19 @@ 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"
+%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1}
# Other third party repo stuff
-Obsoletes: php53-%{ext_name}
-Obsoletes: php53u-%{ext_name}
-Obsoletes: php54-%{ext_name}
+Obsoletes: php53-%{ext_name} <= %{version}
+Obsoletes: php53u-%{ext_name} <= %{version}
+Obsoletes: php54-%{ext_name} <= %{version}
+Obsoletes: php54w-%{ext_name} <= %{version}
%if "%{php_version}" > "5.5"
-Obsoletes: php55u-%{ext_name}
+Obsoletes: php55u-%{ext_name} <= %{version}
+Obsoletes: php55w-%{ext_name} <= %{version}
%endif
%if "%{php_version}" > "5.6"
-Obsoletes: php56u-%{ext_name}
+Obsoletes: php56u-%{ext_name} <= %{version}
+Obsoletes: php56w-%{ext_name} <= %{version}
%endif
%endif
@@ -162,6 +165,9 @@ rm -rf %{buildroot}
%changelog
+* Tue Aug 26 2014 Remi Collet <rcollet@redhat.com> - 0.9.36-2
+- improve SCL build
+
* Wed Jun 11 2014 Remi Collet <remi@fedoraproject.org> - 0.9.36-1
- update to 0.9.35