summaryrefslogtreecommitdiffstats
path: root/php-pecl-radius.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-03-19 14:36:41 +0100
committerRemi Collet <fedora@famillecollet.com>2014-03-19 14:36:41 +0100
commitb649b62db59cf506bf7102195a2c45e42aa9b848 (patch)
tree6dd10a89de2782eb78381ea3ffd8d96e53826709 /php-pecl-radius.spec
parent1859c1f3d32e12fe134115127f20b8d2a0d28b78 (diff)
php-pecl-radius: allow SCL build
Diffstat (limited to 'php-pecl-radius.spec')
-rw-r--r--php-pecl-radius.spec32
1 files changed, 18 insertions, 14 deletions
diff --git a/php-pecl-radius.spec b/php-pecl-radius.spec
index bb12063..7087c44 100644
--- a/php-pecl-radius.spec
+++ b/php-pecl-radius.spec
@@ -8,7 +8,7 @@
#
# Please, preserve the changelog entries
#
-
+%{?scl: %scl_package php-pecl-radius}
%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d}
%{!?__pecl: %global __pecl %{_bindir}/pecl}
%{!?__php: %global __php %{_bindir}/php}
@@ -16,9 +16,9 @@
%global pecl_name radius
%global with_zts 0%{?__ztsphp:1}
-Name: php-pecl-radius
+Name: %{?scl_prefix}php-pecl-radius
Version: 1.2.7
-Release: 3%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Release: 4%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
Summary: Radius client library
License: BSD
@@ -31,20 +31,21 @@ Source0: http://pecl.php.net/get/radius-%{version}.tgz
Source1: LICENSE
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: php-devel
-BuildRequires: php-pear
-BuildRequires: php-posix
-BuildRequires: php-sockets
+BuildRequires: %{?scl_prefix}php-devel
+BuildRequires: %{?scl_prefix}php-pear
+# Used by test suite
+BuildRequires: %{?scl_prefix}php-posix
+BuildRequires: %{?scl_prefix}php-sockets
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"
# Other third party repo stuff
@@ -164,7 +165,7 @@ TEST_PHP_EXECUTABLE=%{_bindir}/php \
TEST_PHP_ARGS="-n $DEP -d extension=$PWD/modules/%{pecl_name}.so" \
NO_INTERACTION=1 \
REPORT_EXIT_STATUS=1 \
-%{_bindir}/php -n run-tests.php
+%{__php} -n run-tests.php
%if %{with_zts}
%{__ztsphp} --no-php-ini \
@@ -211,6 +212,9 @@ rm -rf %{buildroot}
%changelog
+* Wed Mar 19 2014 Remi Collet <rcollet@redhat.com> - 1.1.2-2
+- allow SCL build
+
* Sun Mar 16 2014 Remi Collet <remi@fedoraproject.org> - 1.2.7-2
- run upstream test suite
- install doc in pecl_docdir