summaryrefslogtreecommitdiffstats
path: root/php-pecl-mailparse.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-mailparse.spec')
-rw-r--r--php-pecl-mailparse.spec13
1 files changed, 10 insertions, 3 deletions
diff --git a/php-pecl-mailparse.spec b/php-pecl-mailparse.spec
index 9cb3b1b..ad6d566 100644
--- a/php-pecl-mailparse.spec
+++ b/php-pecl-mailparse.spec
@@ -3,7 +3,7 @@
#
# Fedora spec file for php-pecl-mailparse
#
-# Copyright (c) 2008-2022 Remi Collet
+# Copyright (c) 2008-2023 Remi Collet
# Copyright (c) 2004-2007 Matthias Saou
#
# License: MIT
@@ -26,11 +26,13 @@
Summary: PHP PECL package for parsing and working with email messages
Name: %{?scl_prefix}php-pecl-mailparse
Version: 3.1.4
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
-License: PHP
+Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+License: PHP-3.01
URL: https://pecl.php.net/package/mailparse
Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+Patch0: %{pecl_name}-php83.patch
+
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 7.3
@@ -71,6 +73,8 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd NTS
+%patch -P0 -p1 -b.php83
+
extver=$(sed -n '/#define PHP_MAILPARSE_VERSION/{s/.* "//;s/".*$//;p}' php_mailparse.h)
if test "x${extver}" != "x%{version}"; then
: Error: Upstream version is ${extver}, expecting %{version}.
@@ -200,6 +204,9 @@ fi
%changelog
+* Tue Jun 6 2023 Remi Collet <remi@remirepo.net> - 3.1.4-2
+- add upstream patches for PHP 8.3
+
* Thu Sep 15 2022 Remi Collet <remi@remirepo.net> - 3.1.4-1
- update to 3.1.4