summaryrefslogtreecommitdiffstats
path: root/php-pecl-solr2.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-solr2.spec')
-rw-r--r--php-pecl-solr2.spec13
1 files changed, 6 insertions, 7 deletions
diff --git a/php-pecl-solr2.spec b/php-pecl-solr2.spec
index e068a3f..dbd1523 100644
--- a/php-pecl-solr2.spec
+++ b/php-pecl-solr2.spec
@@ -30,7 +30,7 @@ Summary: Object oriented API to Apache Solr
Summary(fr): API orientée objet pour Apache Solr
Name: %{?sub_prefix}php-pecl-solr2
Version: 2.5.1
-Release: 0%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: PHP
Group: Development/Languages
URL: https://pecl.php.net/package/solr
@@ -117,13 +117,9 @@ sed -e 's/role="test"/role="src"/' \
mv %{pecl_name}-%{version}%{?prever} NTS
cd NTS
-# Check version
-if [ $(%{__php} -r 'echo PHP_MAJOR_VERSION;') < 7 ]; then
- DIR=src/php5
-else
- DIR=src/php7
-fi
+: Check version
+DIR=src/php7
extver=$(sed -n '/#define PHP_SOLR_VERSION /{s/.* "//;s/".*$//;p}' $DIR/php_solr_version.h)
if test "x${extver}" != "x%{version}%{?prever}"; then
: Error: Upstream version is ${extver}, expecting %{version}%{?prever}.
@@ -260,6 +256,9 @@ TEST_PHP_EXECUTABLE=%{__ztsphp} \
%changelog
+* Wed Sep 9 2020 Remi Collet <remi@remirepo.net> - 2.5.1-1
+- update to 2.5.1
+
* Wed Sep 9 2020 Remi Collet <remi@remirepo.net> - 2.5.1-0
- test build for upcoming 2.5.1