From f6a0a363352dbbfa0d9550b77a3b1ac4db13bf11 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 26 Oct 2013 21:44:15 +0300 Subject: [PATCH] fix extension version --- php-pecl-solr.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/php-pecl-solr.spec b/php-pecl-solr.spec index d33c66a..fd95afd 100644 --- a/php-pecl-solr.spec +++ b/php-pecl-solr.spec @@ -78,9 +78,19 @@ find -newer TODO -o -print | xargs touch --reference %{SOURCE0} %patch0 -p1 +# Fix version +sed -i -e '/PHP_SOLR_DOTTED_VERSION/s/1.0.1/1.0.2/' php_solr_version.h + %build packagexml2cl package.xml > ChangeLog +# Check version +extver=$(sed -n '/#define PHP_SOLR_DOTTED_VERSION/{s/.* "//;s/".*$//;p}' php_solr_version.h) +if test "x${extver}" != "x%{version}"; then + : Error: Upstream version is ${extver}, expecting %{version}. + exit 1 +fi + phpize %configure %{__make} -- 2.43.0