summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-10-17 06:38:44 +0200
committerRemi Collet <fedora@famillecollet.com>2013-10-17 06:38:44 +0200
commit802fe2b5d5bae5e5e9216b11f09124c54d9e8dd8 (patch)
treeac9df2397fdbee1d8f6560b7c71bb9a28da68b80
parent0f39716c8cb540d574c1295b0c4519849937ee31 (diff)
php-pecl-fann: 1.0.5
-rw-r--r--php-pecl-fann.spec14
1 files changed, 13 insertions, 1 deletions
diff --git a/php-pecl-fann.spec b/php-pecl-fann.spec
index 24c8c40..6715cbd 100644
--- a/php-pecl-fann.spec
+++ b/php-pecl-fann.spec
@@ -14,7 +14,7 @@
Summary: Wrapper for FANN Library
Name: php-pecl-%{pecl_name}
-Version: 1.0.4
+Version: 1.0.5
Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
License: BSD
Group: Development/Languages
@@ -50,6 +50,15 @@ This package provides a PHP binding for FANN
%setup -q -c
mv %{pecl_name}-%{version} NTS
+cd NTS
+# Sanity check, really often broken
+extver=$(sed -n '/#define PHP_FANN_VERSION/{s/.* "//;s/".*$//;p}' php_fann.h)
+if test "x${extver}" != "x%{version}"; then
+ : Error: Upstream extension version is ${extver}, expecting %{version}.
+ exit 1
+fi
+cd ..
+
%if %{with_zts}
# Duplicate source tree for NTS / ZTS build
cp -pr NTS ZTS
@@ -156,6 +165,9 @@ rm -rf %{buildroot}
%changelog
+* Thu Oct 17 2013 Remi Collet <remi@fedoraproject.org> - 1.0.5-1
+- Update to 1.0.5
+
* Sat Oct 12 2013 Remi Collet <remi@fedoraproject.org> - 1.0.4-1
- Update to 1.0.4 (stable)