diff options
Diffstat (limited to 'php-pecl-ev.spec')
-rw-r--r-- | php-pecl-ev.spec | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/php-pecl-ev.spec b/php-pecl-ev.spec index 3083e00..cb3d16d 100644 --- a/php-pecl-ev.spec +++ b/php-pecl-ev.spec @@ -23,15 +23,18 @@ # After 20-sockets %global ini_name 40-%{pecl_name}.ini %endif -#global prever RC9 + +%global upstream_version 1.1.1 +#global upstream_prever RC3 +%global upstream_postver r1 Summary: Provides interface to libev library Name: %{?sub_prefix}php-pecl-%{pecl_name} -Version: 1.1.1 +Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}%{?upstream_postver:+%{upstream_postver}} Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: PHP URL: https://pecl.php.net/package/%{pecl_name} -Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}%{?upstream_postver}.tgz BuildRequires: make BuildRequires: %{?dtsprefix}gcc @@ -78,7 +81,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -q -c -mv %{pecl_name}-%{version}%{?prever} NTS +mv %{pecl_name}-%{upstream_version}%{?upstream_prever}%{?upstream_postver} NTS # Don't register test files on install sed -e 's/role="test"/role="src"/' \ @@ -88,8 +91,8 @@ sed -e 's/role="test"/role="src"/' \ cd NTS # Sanity check, really often broken extver=$(sed -n '/define PHP_EV_VERSION/{s/.* "//;s/".*$//;p}' php%(%{__php} -r 'echo PHP_MAJOR_VERSION;')/php_ev.h) -if test "x${extver}" != "x%{version}%{?prever}"; then - : Error: Upstream extension version is ${extver}, expecting %{version}%{?prever}. +if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}%{?upstream_postver}"; then + : Error: Upstream extension version is ${extver}, expecting %{upstream_version}%{?upstream_prever}%{?upstream_postver}. exit 1 fi cd .. @@ -225,6 +228,9 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Tue Feb 16 2021 Remi Collet <remi@remirepo.net> - 1.1.1+r1-1 +- update to 1.1.1r1 (stable) + * Thu Feb 4 2021 Remi Collet <remi@remirepo.net> - 1.1.1-1 - update to 1.1.1 |