diff options
| -rw-r--r-- | php-pecl-solr2.spec | 30 | 
1 files changed, 17 insertions, 13 deletions
diff --git a/php-pecl-solr2.spec b/php-pecl-solr2.spec index 906e0ed..7605a8d 100644 --- a/php-pecl-solr2.spec +++ b/php-pecl-solr2.spec @@ -7,6 +7,7 @@  #  # Please, preserve the changelog entries  # +%{?scl:          %scl_package         php-pecl-solr2}  %{!?php_inidir:  %global php_inidir   %{_sysconfdir}/php.d}  %{!?__pecl:      %global __pecl       %{_bindir}/pecl}  %{!?__php:       %global __php        %{_bindir}/php} @@ -17,9 +18,9 @@  Summary:        Object oriented API to Apache Solr  Summary(fr):    API orientée objet pour Apache Solr -Name:           php-pecl-solr2 +Name:           %{?scl_prefix}php-pecl-solr2  Version:        2.0.0 -Release:        0.1.beta%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release:        0.2.beta%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}  License:        PHP  Group:          Development/Languages  URL:            http://pecl.php.net/package/solr @@ -27,17 +28,17 @@ URL:            http://pecl.php.net/package/solr  Source0:        http://pecl.php.net/get/%{pecl_name}-%{version}%{prever}.tgz  BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires:  php-devel -BuildRequires:  php-pear -BuildRequires:  php-curl -BuildRequires:  php-json +BuildRequires:  %{?scl_prefix}php-devel +BuildRequires:  %{?scl_prefix}php-pear +BuildRequires:  %{?scl_prefix}php-curl +BuildRequires:  %{?scl_prefix}php-json  BuildRequires:  curl-devel  BuildRequires:  libxml2-devel  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}  %if "%{php_version}" < "5.4"  # php 5.3.3 in EL-6 don't use arched virtual provides  # so only requires real packages instead @@ -47,12 +48,12 @@ Requires:       %{?scl_prefix}php-curl%{?_isa}  Requires:       %{?scl_prefix}php-json%{?_isa}  %endif -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}  # Only one version of the extension -Conflicts:      php-pecl-solr < 2 +Conflicts:      %{?scl_prefix}php-pecl-solr < 2  # Other third party repo stuff  %if "%{php_version}" > "5.4" @@ -243,6 +244,9 @@ rm -rf %{buildroot}  %changelog +* Tue Mar 25 2014 Remi Collet <remi@fedoraproject.org> - 2.0.0-0.2.beta +- allow SCL build +  * Sat Mar  8 2014 Remi Collet <remi@fedoraproject.org> - 2.0.0-0.1.beta  - update to 2.0.0b (beta)  - install doc in pecl_docdir  | 
