From 0961069608a5cb71846569702ca2acf433e2fc95 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 11 Sep 2015 18:54:49 +0200 Subject: php-pecl-expect: fix EL-5 build --- php-pecl-expect.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/php-pecl-expect.spec b/php-pecl-expect.spec index 4e06a1e..7333d30 100644 --- a/php-pecl-expect.spec +++ b/php-pecl-expect.spec @@ -15,6 +15,7 @@ %endif %{?scl: %scl_package php-pecl-expect} +%{!?scl: %global _root_libdir %{_libdir}} %{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} %{!?__pecl: %global __pecl %{_bindir}/pecl} %{!?__php: %global __php %{_bindir}/php} @@ -31,10 +32,11 @@ Summary: PHP extension for expect library Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 0.3.2 -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: BSD Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} +# Manually generated from a SVN checkout (to include all my patches) Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -125,6 +127,7 @@ cd NTS %{_bindir}/phpize %configure \ --with-expect \ + --with-tcldir=%{_root_libdir} \ --with-libdir=%{_lib} \ --with-php-config=%{_bindir}/php-config make %{?_smp_mflags} @@ -134,6 +137,7 @@ cd ../ZTS %{_bindir}/zts-phpize %configure \ --with-expect \ + --with-tcldir=%{_root_libdir} \ --with-libdir=%{_lib} \ --with-php-config=%{_bindir}/zts-php-config make %{?_smp_mflags} @@ -238,5 +242,8 @@ rm -rf %{buildroot} %changelog +* Fri Sep 11 2015 Remi Collet - 0.3.2-2 +- fix EL-5 build + * Fri Sep 11 2015 Remi Collet - 0.3.2-1 - initial package, version 0.3.2 (stable) \ No newline at end of file -- cgit