summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-03-25 18:13:07 +0100
committerRemi Collet <fedora@famillecollet.com>2014-03-25 18:13:07 +0100
commita4df5628c331141a50d8356cb16189dc3d3873c0 (patch)
treefe4c7b275b773dd3a3346b562d72ae3dfc1cfad5
parente33760009e06fc7e2941708d72427105367007c0 (diff)
php-pecl-qb: allow SCL build
-rw-r--r--php-pecl-qb.spec24
1 files changed, 14 insertions, 10 deletions
diff --git a/php-pecl-qb.spec b/php-pecl-qb.spec
index a4a9138..e46902b 100644
--- a/php-pecl-qb.spec
+++ b/php-pecl-qb.spec
@@ -6,6 +6,7 @@
#
# Please, preserve the changelog entries
#
+%{?scl: %scl_package php-pecl-qb}
%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d}
%{!?__pecl: %global __pecl %{_bindir}/pecl}
%{!?__php: %global __php %{_bindir}/php}
@@ -19,9 +20,9 @@
%global with_zts 0
Summary: Accelerator designed mainly for graphic work
-Name: php-pecl-%{pecl_name}
+Name: %{?scl_prefix}php-pecl-%{pecl_name}
Version: 2.1.1
-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: BSD
Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
@@ -30,18 +31,18 @@ URL: http://pecl.php.net/package/%{pecl_name}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: php-devel
-BuildRequires: php-pear
+BuildRequires: %{?scl_prefix}php-devel
+BuildRequires: %{?scl_prefix}php-pear
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
@@ -219,6 +220,9 @@ rm -rf %{buildroot}
%changelog
+* Tue Mar 25 2014 Remi Collet <remi@fedoraproject.org> - 2.1.1-2
+- allow SCL build
+
* Mon Mar 17 2014 Remi Collet <remi@fedoraproject.org> - 2.1.1-1
- initial package, version 2.1.1 (stable)
- https://github.com/chung-leong/qb/issues/23 - Bad archive