diff options
Diffstat (limited to 'php-pecl-opencensus.spec')
-rw-r--r-- | php-pecl-opencensus.spec | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/php-pecl-opencensus.spec b/php-pecl-opencensus.spec index aac50f7..b6db1dd 100644 --- a/php-pecl-opencensus.spec +++ b/php-pecl-opencensus.spec @@ -20,14 +20,17 @@ %global ini_name 40-%{pecl_name}.ini %endif +%global upstream_version 0.1.0 +%global upstream_prever RC2 + Summary: A stats collection and distributed tracing framework Name: %{?sub_prefix}php-pecl-opencensus -Version: 0.0.4 +Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: ASL 2.0 Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} -Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz +Source0: http://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz BuildRequires: %{?scl_prefix}php-devel > 7 BuildRequires: %{?scl_prefix}php-pear @@ -81,7 +84,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"/' \ @@ -92,8 +95,8 @@ cd NTS # Sanity check, really often broken extver=$(sed -n '/#define PHP_OPENCENSUS_VERSION/{s/.* "//;s/".*$//;p}' php_opencensus.h) -if test "x${extver}" != "x%{version}"; then - : Error: Upstream extension version is ${extver}, expecting %{version}. +if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then + : Error: Upstream extension version is ${extver}, expecting %{upstream_version}%{?upstream_prever}. exit 1 fi cd .. @@ -224,6 +227,9 @@ fi %changelog +* Tue Dec 12 2017 Remi Collet <remi@remirepo.net> - 0.1.0~RC2-1 +- Update to 0.1.0RC2 (devel) + * Sat Oct 21 2017 Remi Collet <remi@remirepo.net> - 0.0.4-1 - Update to 0.0.4 (devel) |