diff options
-rw-r--r-- | php-pecl-geoip.spec | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/php-pecl-geoip.spec b/php-pecl-geoip.spec index ae9154f..d332600 100644 --- a/php-pecl-geoip.spec +++ b/php-pecl-geoip.spec @@ -1,3 +1,4 @@ +%{?scl: %scl_package php-pecl-geoip} %{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} %{!?__pecl: %global __pecl %{_bindir}/pecl} %{!?__php: %global __php %{_bindir}/php} @@ -5,9 +6,9 @@ %define pecl_name geoip %global with_zts 0%{?__ztsphp:1} -Name: php-pecl-geoip +Name: %{?scl_prefix}php-pecl-geoip Version: 1.0.8 -Release: 6%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 7%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} Summary: Extension to map IP addresses to geographic places Group: Development/Languages License: PHP @@ -23,19 +24,20 @@ Source1: http://www.php.net/license/3_01.txt BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: GeoIP-devel -BuildRequires: php-devel -BuildRequires: php-pear +BuildRequires: %{?scl_prefix}php-devel +BuildRequires: %{?scl_prefix}php-pear -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 0%{!?scl:1} # Other third party repo stuff Obsoletes: php53-pecl-%{pecl_name} Obsoletes: php53u-pecl-%{pecl_name} @@ -48,6 +50,7 @@ Obsoletes: php55u-pecl-%{pecl_name} %if "%{php_version}" > "5.6" Obsoletes: php56u-pecl-%{pecl_name} %endif +%endif %if 0%{?fedora} < 20 && 0%{?rhel} < 7 # Filter shared private @@ -178,6 +181,9 @@ fi %changelog +* Wed Mar 19 2014 Remi Collet <remi@fedoraproject.org> - 1.0.8-7 +- allow SCL build + * Sun Mar 2 2014 Remi Collet <remi@fedoraproject.org> - 1.0.8-6 - cleaups - install doc in pecl_docdir |