summaryrefslogtreecommitdiffstats
path: root/php-pecl-seaslog.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-seaslog.spec')
-rw-r--r--php-pecl-seaslog.spec13
1 files changed, 10 insertions, 3 deletions
diff --git a/php-pecl-seaslog.spec b/php-pecl-seaslog.spec
index 21d390c..84159c9 100644
--- a/php-pecl-seaslog.spec
+++ b/php-pecl-seaslog.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-seaslog
#
-# Copyright (c) 2015-2023 Remi Collet
+# Copyright (c) 2015-2024 Remi Collet
# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -24,11 +24,14 @@
Summary: An effective, fast, stable log extension for PHP
Name: %{?scl_prefix}php-pecl-%{pecl_name}
Version: 2.2.0
-Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: PHP-3.0.1
URL: https://pecl.php.net/package/%{proj_name}
Source0: https://pecl.php.net/get/%{sources}.tgz
+# upstream patch + https://github.com/SeasX/SeasLog/pull/322
+Patch0: %{pecl_name}-php81.patch
+
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel
@@ -71,7 +74,7 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd %{sources}
-#sed -e 's/ifndef ulong/if 0/' -i include/php7_wrapper.h
+%patch -P0 -p1
: Sanity check, really often broken
extver=$(sed -n '/#define SEASLOG_VERSION /{s/.* "//;s/".*$//;p}' include/SeasLog.h)
@@ -223,6 +226,10 @@ fi
%changelog
+* Mon Feb 19 2024 Remi Collet <remi@remirepo.net> - 2.2.0-3
+- fix for PHP 8.1 using patch from
+ https://github.com/SeasX/SeasLog/pull/322
+
* Fri Sep 1 2023 Remi Collet <remi@remirepo.net> - 2.2.0-2
- build out of sources tree