summaryrefslogtreecommitdiffstats
path: root/php-pecl-haru.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-03-26 15:19:10 +0100
committerRemi Collet <fedora@famillecollet.com>2014-03-26 15:19:10 +0100
commit03ed6b109633fab6228e1d40fdadfb063f7a0f14 (patch)
tree2268041d1db0706f417f5725e2c68fb7edf1e9b8 /php-pecl-haru.spec
parentc82cadf63499f770fed60b2429b7304e7dbe94a2 (diff)
php-pecl-haru: allow SCL build
Diffstat (limited to 'php-pecl-haru.spec')
-rw-r--r--php-pecl-haru.spec24
1 files changed, 14 insertions, 10 deletions
diff --git a/php-pecl-haru.spec b/php-pecl-haru.spec
index 72efb22..092226b 100644
--- a/php-pecl-haru.spec
+++ b/php-pecl-haru.spec
@@ -6,6 +6,7 @@
#
# Please, preserve the changelog entries
#
+%{?scl: %scl_package php-pecl-haru}
%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d}
%{!?__pecl: %global __pecl %{_bindir}/pecl}
%{!?__php: %global __php %{_bindir}/php}
@@ -14,9 +15,9 @@
%global with_zts 0%{?__ztsphp:1}
Summary: Haru PDF functions
-Name: php-pecl-haru
+Name: %{?scl_prefix}php-pecl-haru
Version: 1.0.4
-Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Release: 3%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
License: PHP
Group: Development/Languages
@@ -25,8 +26,8 @@ URL: http://pecl.php.net/package/haru
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
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
BuildRequires: libharu-devel
BuildRequires: libpng-devel
BuildRequires: zlib-devel
@@ -34,13 +35,13 @@ BuildRequires: zlib-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}
-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
@@ -179,6 +180,9 @@ fi
%changelog
+* Wed Mar 26 2014 Remi Collet <remi@fedoraproject.org> - 1.0.4-3
+- allow SCL build
+
* Mon Mar 17 2014 Remi Collet <remi@fedoraproject.org> - 1.0.4-2
- cleanups
- install doc in pecl_docdir