From b082e14f7315d633636943fb42edd338a8cb19aa Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 27 Sep 2013 19:41:26 +0200 Subject: php-pecl-fann: fix segfault --- php-pecl-fann.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'php-pecl-fann.spec') diff --git a/php-pecl-fann.spec b/php-pecl-fann.spec index 5369532..32fc0a8 100644 --- a/php-pecl-fann.spec +++ b/php-pecl-fann.spec @@ -16,7 +16,7 @@ Summary: Wrapper for FANN Library Name: php-pecl-%{pecl_name} Version: 1.0.2 -Release: 1%{?dist} +Release: 1%{?dist}.1 License: BSD Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} @@ -25,6 +25,9 @@ Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz # https://github.com/bukka/php-fann/issues/4 Source1: https://github.com/bukka/php-fann/archive/%{version}.tar.gz +# https://github.com/bukka/php-fann/pull/5 +Patch0: fann-types.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: fann-devel > 2.1 BuildRequires: php-devel > 5.2 @@ -54,6 +57,10 @@ This package provides a PHP binding for FANN mv php-fann-%{version}/tests %{pecl_name}-%{version}/tests mv %{pecl_name}-%{version} NTS +cd NTS +%patch0 -p 1 +cd .. + %if %{with_zts} # Duplicate source tree for NTS / ZTS build cp -pr NTS ZTS @@ -162,3 +169,4 @@ rm -rf %{buildroot} %changelog * Fri Sep 27 2013 Remi Collet - 1.0.2-1 - initial package +- open https://github.com/bukka/php-fann/pull/5 -- cgit