]> git.pld-linux.org Git - packages/php.git/commitdiff
ext-enchant version matches php version now auto/th/php70-7.0.26-1
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 28 Oct 2017 13:56:36 +0000 (16:56 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Mon, 27 Nov 2017 23:27:42 +0000 (01:27 +0200)
php.spec

index 872baacc97f7407036d4a0c5cdb5023cb80db43b..949ae885bab7fb238f5b438920b91ab08f7e4411 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -306,7 +306,7 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # Extension versions
 %define                bz2ver          1.0
-%define                enchantver      1.1.0
+%define                enchantver      %{version}
 %define                fileinfover     1.0.5
 %define                hashver         1.0
 %define                intlver         1.1.0
@@ -2178,10 +2178,8 @@ if test "$ver" != "%{bz2ver}"; then
        : Update the bz2ver macro and rebuild.
        exit 1
 fi
-ver=$(sed -n '/#define PHP_ENCHANT_VERSION /{s/.* "//;s/".*$//;p}' ext/enchant/php_enchant.h)
-if test "$ver" != "%{enchantver}"; then
-       : Error: Upstream Enchant version is now ${ver}, expecting %{enchantver}.
-       : Update the enchantver macro and rebuild.
+ver=$(awk '/#define PHP_ENCHANT_VERSION/ {print $3}' ext/enchant/php_enchant.h | xargs)
+if test "$ver" != "PHP_VERSION"; then
        exit 1
 fi
 ver=$(awk '/#define PHP_HASH_VERSION/ {print $3}' ext/hash/php_hash.h | xargs)
This page took 0.654652 seconds and 4 git commands to generate.