summaryrefslogtreecommitdiffstats
path: root/php-pecl-mysqlnd-azure.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-mysqlnd-azure.spec')
-rw-r--r--php-pecl-mysqlnd-azure.spec20
1 files changed, 13 insertions, 7 deletions
diff --git a/php-pecl-mysqlnd-azure.spec b/php-pecl-mysqlnd-azure.spec
index d705085..d3a01f8 100644
--- a/php-pecl-mysqlnd-azure.spec
+++ b/php-pecl-mysqlnd-azure.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-mysqlnd-azure
#
-# Copyright (c) 2019 Remi Collet
+# Copyright (c) 2020 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -22,14 +22,17 @@
# After 20-json, 20-mysqlnd
%global ini_name 40-%{pecl_name}.ini
+%global upstream_version 1.0.3
+%global upstream_prever RC
+
Summary: Redirection plugin for mysqlnd
Name: %{?sub_prefix}php-pecl-mysqlnd-azure
-Version: 1.0.2
+Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: PHP
-URL: http://pecl.php.net/package/%{pecl_name}
-Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz
+URL: https://pecl.php.net/package/%{pecl_name}
+Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel > 7.2.15
@@ -84,7 +87,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -qc
-mv %{pecl_name}-%{version} NTS
+mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS
# Don't install/register tests
sed -e 's/role="test"/role="src"/' \
@@ -95,8 +98,8 @@ cd NTS
# Check version as upstream often forget to update this
extver=$(sed -n '/#define EXT_MYSQLND_AZURE_VERSION/{s/.* "//;s/".*$//;p}' php_mysqlnd_azure.h)
-if test "x${extver}" != "x%{version}%{?prever}%{?gh_date:-dev}"; then
- : Error: Upstream YAC version is ${extver}, expecting %{version}%{?prever}%{?gh_date:-dev}.
+if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}%{?gh_date:-dev}"; then
+ : Error: Upstream YAC version is ${extver}, expecting %{upstream_version}%{?upstream_prever}%{?gh_date:-dev}.
exit 1
fi
cd ..
@@ -268,6 +271,9 @@ fi
%changelog
+* Thu Jan 16 2020 Remi Collet <remi@remirepo.net> - 1.0.3~RC-1
+- update to 1.0.3RC
+
* Wed Nov 20 2019 Remi Collet <remi@remirepo.net> - 1.0.2-1
- update to 1.0.2