summaryrefslogtreecommitdiffstats
path: root/php-pecl-fann.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-09-04 10:16:04 +0200
committerRemi Collet <remi@remirepo.net>2018-09-04 10:16:04 +0200
commit2b95092863287791238d1d27f73553018abb6a66 (patch)
treea60feba684f435adeb27540aadb7dc336c9df1db /php-pecl-fann.spec
parent46056001adbe22d3d727edc39dcb520aa44e37e6 (diff)
fix libraries load order, using patch from https://github.com/bukka/php-fann/pull/38
Diffstat (limited to 'php-pecl-fann.spec')
-rw-r--r--php-pecl-fann.spec10
1 files changed, 9 insertions, 1 deletions
diff --git a/php-pecl-fann.spec b/php-pecl-fann.spec
index e271006..76e6121 100644
--- a/php-pecl-fann.spec
+++ b/php-pecl-fann.spec
@@ -27,11 +27,13 @@
Summary: Wrapper for FANN Library
Name: %{?sub_prefix}php-pecl-%{pecl_name}
Version: 1.1.1
-Release: 6%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Release: 10%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
License: PHP
URL: http://pecl.php.net/package/%{pecl_name}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz
+Patch0: https://patch-diff.githubusercontent.com/raw/bukka/php-fann/pull/38.patch
+
BuildRequires: %{?dtsprefix}gcc
BuildRequires: fann-devel > 2.1
BuildRequires: %{?scl_prefix}php-devel > 5.2
@@ -108,6 +110,8 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd NTS
+%patch0 -p1 -b .pr38
+
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_FANN_VERSION/{s/.* "//;s/".*$//;p}' php_fann.h)
if test "x${extver}" != "x%{version}%{?prever}"; then
@@ -238,6 +242,10 @@ fi
%changelog
+* Tue Sep 4 2018 Remi Collet <remi@remirepo.net> - 1.1.1-10
+- fix libraries load order, using patch from
+ https://github.com/bukka/php-fann/pull/38
+
* Thu Aug 16 2018 Remi Collet <remi@remirepo.net> - 1.1.1-6
- rebuild for 7.3.0beta2 new ABI