diff options
-rw-r--r-- | php-pecl-mongo.spec | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/php-pecl-mongo.spec b/php-pecl-mongo.spec index 8a71b66..3eae4bb 100644 --- a/php-pecl-mongo.spec +++ b/php-pecl-mongo.spec @@ -1,3 +1,4 @@ +%{?scl: %scl_package php-pecl-mongo} %{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} %{!?__pecl: %global __pecl %{_bindir}/pecl} %{!?__php: %global __php %{_bindir}/php} @@ -19,9 +20,9 @@ %endif Summary: PHP MongoDB database driver -Name: php-pecl-mongo +Name: %{?scl_prefix}php-pecl-mongo Version: 1.5.5 -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: ASL 2.0 Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} @@ -31,35 +32,38 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/ Source1: %{pecl_name}.ini BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: php-devel >= 5.2.6 -BuildRequires: php-pear +BuildRequires: %{?scl_prefix}php-devel >= 5.2.6 +BuildRequires: %{?scl_prefix}php-pear BuildRequires: cyrus-sasl-devel %if %{with_tests} -BuildRequires: php-json +BuildRequires: %{?scl_prefix}php-json BuildRequires: mongodb BuildRequires: mongodb-server %endif Requires(post): %{__pecl} Requires(postun): %{__pecl} -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} -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" +%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} # Other third party repo stuff Obsoletes: php53-pecl-%{pecl_name} Obsoletes: php53u-pecl-%{pecl_name} Obsoletes: php54-pecl-%{pecl_name} +Obsoletes: php54w-pecl-%{pecl_name} %if "%{php_version}" > "5.5" Obsoletes: php55u-pecl-%{pecl_name} +Obsoletes: php55w-pecl-%{pecl_name} %endif %if "%{php_version}" > "5.6" Obsoletes: php56u-pecl-%{pecl_name} +Obsoletes: php56w-pecl-%{pecl_name} %endif %endif @@ -212,6 +216,9 @@ rm -rf data %changelog +* Mon Aug 25 2014 Remi Collet <rcollet@redhat.com> - 1.5.5-2 +- allow SCL build + * Wed Jul 30 2014 Remi Collet <remi@fedoraproject.org> - 1.5.5-1 - Update to 1.5.5 (stable) |