summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-03-19 15:34:47 +0100
committerRemi Collet <fedora@famillecollet.com>2014-03-19 15:34:47 +0100
commitf30c34587be5df1d6e97c7058ae247bdb85d0177 (patch)
treecbf1131d416231c9714e91add23a7b348b48c065
parentc46e14ebc53442f471f3e48500b4f22966de7b83 (diff)
php-pecl-gearman: allow SCL build
-rw-r--r--php-pecl-gearman.spec28
1 files changed, 16 insertions, 12 deletions
diff --git a/php-pecl-gearman.spec b/php-pecl-gearman.spec
index 6571470..12f08b6 100644
--- a/php-pecl-gearman.spec
+++ b/php-pecl-gearman.spec
@@ -8,6 +8,7 @@
#
# Please, preserve the changelog entries
#
+%{?scl: %scl_package php-pecl-gearman}
%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d}
%{!?__pecl: %global __pecl %{_bindir}/pecl}
%{!?__php: %global __php %{_bindir}/php}
@@ -29,9 +30,9 @@
%endif
-Name: php-pecl-gearman
+Name: %{?scl_prefix}php-pecl-gearman
Version: %{extver}
-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;')}
Summary: PHP wrapper to libgearman
Group: Development/Tools
@@ -42,33 +43,33 @@ Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libgearman-devel > %{libver}
-BuildRequires: php-devel
-BuildRequires: php-pear
+BuildRequires: %{?scl_prefix}php-devel
+BuildRequires: %{?scl_prefix}php-pear
# Required by phpize
BuildRequires: autoconf, automake, libtool
-Requires: php(zend-abi) = %{php_zend_api}
-Requires: php(api) = %{php_core_api}
+Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
+Requires: %{?scl_prefix}php(api) = %{php_core_api}
Requires(post): %{__pecl}
Requires(postun): %{__pecl}
-Provides: php-%{pecl_name} = %{version}
-Provides: php-%{pecl_name}%{?_isa} = %{version}
-Provides: php-pecl(%{pecl_name}) = %{version}
-Provides: php-pecl(%{pecl_name})%{?_isa} = %{version}
+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 "%{?vendor}" == "Remi Collet"
# Other third party repo stuff
Obsoletes: php53-pecl-%{pecl_name}
Obsoletes: php53u-pecl-%{pecl_name}
-%if "%{php_version}" > "5.4"
Obsoletes: php54-pecl-%{pecl_name}
-%endif
%if "%{php_version}" > "5.5"
Obsoletes: php55u-pecl-%{pecl_name}
%endif
%if "%{php_version}" > "5.6"
Obsoletes: php56u-pecl-%{pecl_name}
%endif
+%endif
%if 0%{?fedora} < 20 && 0%{?rhel} < 7
# Filter shared private
@@ -187,6 +188,9 @@ fi
%changelog
+* Wed Mar 19 2014 Remi Collet <rcollet@redhat.com> - 1.1.2-3
+- allow SCL build
+
* Mon Mar 3 2014 Remi Collet <remi@fedoraproject.org> - 1.1.2-2
- cleanups
- install documentation in pecl_docdir