From: Elan Ruusamäe Date: Sat, 26 Oct 2013 18:44:15 +0000 (+0300) Subject: fix extension version X-Git-Tag: auto/th/php-pecl-solr-2.1.0-1~5 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fphp-pecl-solr.git;a=commitdiff_plain;h=f6a0a363352dbbfa0d9550b77a3b1ac4db13bf11 fix extension version --- 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}