summaryrefslogtreecommitdiffstats
path: root/php-pecl-event.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-event.spec')
-rw-r--r--php-pecl-event.spec17
1 files changed, 11 insertions, 6 deletions
diff --git a/php-pecl-event.spec b/php-pecl-event.spec
index 6a7b4b0..58f429b 100644
--- a/php-pecl-event.spec
+++ b/php-pecl-event.spec
@@ -3,7 +3,7 @@
#
# Fedora spec file for php-pecl-event
#
-# Copyright (c) 2013-2020 Remi Collet
+# Copyright (c) 2013-2021 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -33,15 +33,17 @@
%endif
%global upstream_version 3.0.2
#global upstream_prever RC3
+%global upstream_postver r1
Summary: Provides interface to libevent library
Name: %{?sub_prefix}php-pecl-%{pecl_name}
-Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
+Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}%{?upstream_postver:+%{upstream_postver}}
Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: PHP
URL: https://pecl.php.net/package/event
-Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
+Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}%{?upstream_postver}.tgz
+BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel
BuildRequires: %{?scl_prefix}php-pear
@@ -103,7 +105,7 @@ sed -e 's/role="test"/role="src"/' \
%{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \
-i package.xml
-mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS
+mv %{pecl_name}-%{upstream_version}%{?upstream_prever}%{?upstream_postver} NTS
cd NTS
# Sanity check, really often broken
@@ -111,8 +113,8 @@ DIR=$(%{__php} -r 'echo "php" . PHP_MAJOR_VERSION;')
sed -e '/PHP_EVENT_VERSION/s/2.4.2/2.4.3/' -i $DIR/php_event.h
extver=$(sed -n '/#define PHP_EVENT_VERSION/{s/.* "//;s/".*$//;p}' $DIR/php_event.h)
-if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then
- : Error: Upstream extension version is ${extver}, expecting %{upstream_version}%{?upstream_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 ..
@@ -260,6 +262,9 @@ fi
%changelog
+* Tue Feb 16 2021 Remi Collet <remi@remirepo.net> - 3.0.2+r1-1
+- update to 3.0.2r1 (stable)
+
* Mon Dec 7 2020 Remi Collet <remi@remirepo.net> - 3.0.2-1
- update to 3.0.2