[packages/php-pecl-solr] fix extension version
glen
glen at pld-linux.org
Thu May 14 15:10:27 CEST 2015
commit f6a0a363352dbbfa0d9550b77a3b1ac4db13bf11
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Oct 26 21:44:15 2013 +0300
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}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-solr.git/commitdiff/7a2204f2db8f4874ede0a80be21d4fb51dfd4d4c
More information about the pld-cvs-commit
mailing list