From 46a0f949752b5a9172e47c27efff627a86e675b0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 9 Sep 2020 17:21:11 +0200 Subject: update to 2.5.1 --- php-pecl-solr2.spec | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'php-pecl-solr2.spec') 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 - 2.5.1-1 +- update to 2.5.1 + * Wed Sep 9 2020 Remi Collet - 2.5.1-0 - test build for upcoming 2.5.1 -- cgit