summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-phurple.spec19
1 files changed, 18 insertions, 1 deletions
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 <rcollet@redhat.com> - 0.6.0-3
+- improve SCL build
+
* Wed Apr 16 2014 Remi Collet <remi@fedoraproject.org> - 0.6.0-2
- add numerical prefix to extension configuration file (php 5.6)